mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
#2940 widened the compatibility workflow to build the native image for both published architectures and run all eight suites on both, sixteen suite jobs per PR. What the suites check is arch-neutral, and with several PRs in flight the jobs sat queued for the shared runner pools for longer than they take to run. The suites now run against the arm64 image only. Both native images are still built, so each published architecture is proven to link and package, and one amd64 suite stays: sdk-test-python now carries a Firehose compression delivery test, mirroring the Java one, that proves the x86_64 snappy JNI library survived the native build. That is the one resource registered per platform, and the proof moves from the slowest leg to the fastest. The two Snappy variants are container formats around raw Snappy blocks: the xerial snappy-java stream and Hadoop's block framing, neither of which has a Python reader without native system libraries. The test parses the framing itself, following Floci's writer, and decodes the raw blocks with cramjam, which ships wheels for both architectures. The results artifact carries the architecture in its name so the two Python uploads are distinguishable.
sdk-test-python
Compatibility tests for Floci using boto3 (1.37.1).
Services Covered
| Group | Description |
|---|---|
ssm |
Parameter Store — put, get, label, history, path, tags |
sqs |
Queues, send/receive/delete, DLQ, visibility |
sns |
Topics, subscriptions, publish, SQS delivery |
s3 |
Buckets, objects, tagging, copy, batch delete |
s3-cors |
CORS configuration |
s3-notifications |
S3 → SQS event notifications |
dynamodb |
Tables, CRUD, batch, TTL, tags |
lambda |
Create/invoke/update/delete functions |
iam |
Users, roles, policies, access keys |
sts |
GetCallerIdentity, AssumeRole, GetSessionToken |
secretsmanager |
Create/get/put/list/delete secrets, versioning, tags |
kms |
Keys, aliases, encrypt/decrypt, data keys, sign/verify |
kinesis |
Streams, shards, PutRecord/GetRecords |
cloudwatch-metrics |
PutMetricData, ListMetrics, GetMetricStatistics, alarms |
cloudformation-naming |
Auto physical name generation, explicit name precedence, cross-reference |
cognito |
User pools, clients, AdminCreateUser, InitiateAuth, GetUser |
Requirements
- Python 3.9+
- pip
Running
pip install -r requirements.txt
# All groups
pytest tests/ --junit-xml=test-results/junit.xml
# Specific tests
pytest tests/test_s3.py
# Via just (from compatibility-tests/)
just test-python
Configuration
| Variable | Default | Description |
|---|---|---|
FLOCI_ENDPOINT |
http://localhost:4566 |
Floci emulator endpoint |
AWS credentials are always test / test / us-east-1.
Docker
docker build -t floci-sdk-python .
docker run --rm --network host floci-sdk-python
# Custom endpoint (macOS/Windows)
docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-python