fix: return 400 when encoded s3 copy source is malformed (#244)

fix: replace silent exception swallowing and add per-test timeout in Python test suite

test: misc compatibility-tests cleanups

- Added sync comments to both main.tf files
- Created compatibility-tests/.dockerignore
- Cached CRC32 table in Node setup.ts
- Removed >/dev/null 2>&1 from 3 Dockerfiles

test: add missing .terraform.lock.hcl

chore: remove .terraform.lock.hcl
This commit is contained in:
Conor Heine authored and GitHub committed 2026-04-06 16:53:14 -05:00
1 parent d02a1d9a13
commit f4f1752b0d
17 files changed
+84 -51

No files matched your search

@@ -5,9 +5,14 @@ import uuid
import io
import zipfile
import logging
import boto3
import pytest
from botocore.config import Config
from botocore.exceptions import ClientError
logger = logging.getLogger(__name__)
@pytest.fixture(scope="session")
@@ -176,8 +181,8 @@ def test_bucket(s3_client, unique_name):
for obj in page["Contents"]:
s3_client.delete_object(Bucket=bucket_name, Key=obj["Key"])
s3_client.delete_bucket(Bucket=bucket_name)
except Exception:
pass
except ClientError as e:
logger.warning("Failed to clean up S3 bucket %s: %s", bucket_name, e)
@pytest.fixture
@@ -192,8 +197,8 @@ def test_queue(sqs_client, unique_name):
# Cleanup
try:
sqs_client.delete_queue(QueueUrl=queue_url)
except Exception:
pass
except ClientError as e:
logger.warning("Failed to clean up SQS queue %s: %s", queue_url, e)
@pytest.fixture
@@ -208,8 +213,8 @@ def test_topic(sns_client, unique_name):
# Cleanup
try:
sns_client.delete_topic(TopicArn=topic_arn)
except Exception:
pass
except ClientError as e:
logger.warning("Failed to clean up SNS topic %s: %s", topic_arn, e)
@pytest.fixture
@@ -232,5 +237,5 @@ def test_table(dynamodb_client, unique_name):
# Cleanup
try:
dynamodb_client.delete_table(TableName=table_name)
except Exception:
pass
except ClientError as e:
logger.warning("Failed to clean up DynamoDB table %s: %s", table_name, e)
@@ -3,3 +3,4 @@ testpaths = tests
python_files = test_*.py
python_functions = test_*
addopts = -v --tb=short --junit-xml=test-results/junit.xml
timeout = 120
@@ -1,3 +1,4 @@
boto3==1.37.1
botocore==1.37.1
pytest>=8.0.0
pytest-timeout>=2.3.0