Files
mtusi2026lab4/evidence/final-regression.json
qrtx dc46ac213d feat(storage): add RustFS attachments and presigned uploads
Add two API replicas, safe object reconciliation, upload validation, regression tests and documented load experiments.
2026-11-12 10:16:39 +03:00

395 lines
11 KiB
JSON

{
"status": "passed",
"startedAt": "2026-11-11T21:03:10.320137+00:00",
"sourceSha256": "12af1c58afaa9c1600a9c95edbb083757447ee1d2ecca11948f6968ad80c3c8c",
"steps": [
{
"name": "offline_contract",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"scripts/check_contract.py"
],
"status": "passed",
"output": [
"PASS: offline skeleton structure, local refs and Python syntax; application NOT tested."
],
"exitCode": 0,
"elapsedSeconds": 16.179012099979445
},
{
"name": "unit",
"command": [
"cmd.exe",
"/d",
"/c",
"pnpm.cmd",
"test",
"--runInBand"
],
"status": "passed",
"output": [
"Test Suites: 9 passed, 9 total",
"Tests: 47 passed, 47 total"
],
"exitCode": 0,
"elapsedSeconds": 32.84614499998861
},
{
"name": "lint",
"command": [
"cmd.exe",
"/d",
"/c",
"pnpm.cmd",
"lint"
],
"status": "passed",
"output": [],
"exitCode": 0,
"elapsedSeconds": 7.732036200002767
},
{
"name": "public_smoke_before",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"tests/smoke.py",
"--base-url",
"http://127.0.0.1:8080"
],
"status": "passed",
"output": [
"PASS: lab4 public API scenario; infrastructure and grading evidence remain separate."
],
"exitCode": 0,
"elapsedSeconds": 4.509277600009227
},
{
"name": "oversized_upload_transport",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"test/oversized-uploads.py"
],
"status": "passed",
"output": [
"PASS: 16 oversized Content-Length/chunked uploads through Nginx returned canonical 413; both APIs covered; subsequent upload/download verified"
],
"exitCode": 0,
"elapsedSeconds": 15.628907100006472
},
{
"name": "attachments_s3_outage_persistence",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"test/attachments.py",
"--base-url",
"http://127.0.0.1:8080",
"--lifecycle"
],
"status": "passed",
"output": [
"PASS: attachments, validation, ACL, idempotency, private S3, outage and persistence"
],
"exitCode": 0,
"elapsedSeconds": 92.00613980001071
},
{
"name": "reconciliation_crash_and_database_outage",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"test/run-reconcile.py"
],
"status": "passed",
"output": [
"PASS: real writer crash, DB outage, dry-run, orphan deletion, active/fresh/referenced protection, repeat run and missing-object reporting."
],
"exitCode": 0,
"elapsedSeconds": 14.79472619999433
},
{
"name": "public_persistence_and_each_api_failover",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"test/hooks.py"
],
"status": "passed",
"output": [
"PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.",
"PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.",
"PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.",
"PASS: public persistence/failover hooks; all stores restarted; each API stopped separately; replicas restored"
],
"exitCode": 0,
"elapsedSeconds": 123.80009560001781
},
{
"name": "swagger_and_attachment_failover",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"test/replicas.py",
"--base-url",
"http://127.0.0.1:8080"
],
"status": "passed",
"output": [
"PASS: two replicas, canonical Swagger and attachment/idempotency failover."
],
"exitCode": 0,
"elapsedSeconds": 17.544774399982998
},
{
"name": "interrupted_upload_and_receive_deadline",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"test/upload-interruption.py"
],
"status": "passed",
"output": [
"PASS: ce0434d224ba: both client aborts leave no bytes/metadata; slow upload gets 408; next upload/download succeeds",
"PASS: 752f50d7b664: both client aborts leave no bytes/metadata; slow upload gets 408; next upload/download succeeds",
"PASS: nginx: both client aborts leave no bytes/metadata; slow upload gets 408; next upload/download succeeds",
"PASS: upload interruption and receive deadline; targets=all; fixtures removed"
],
"exitCode": 0,
"elapsedSeconds": 58.85686539998278
},
{
"name": "presigned_positive_and_negative",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"test/direct-uploads.py"
],
"status": "passed",
"output": [
"PASS: grant ACL, strict input validation, owner-only complete and missing-upload handling",
"PASS: unsigned/tampered requests denied; wrong payload checksum rejected by RustFS",
"PASS: create-only PUT, publication, byte integrity, message binding and replay-safe immutable original",
"PASS: JPEG publication preserves the exact original bytes",
"PASS: simultaneous complete publishes one stable attachment across replicas",
"PASS: corrupt image and MIME spoof rejected without ready metadata",
"PASS: 40-million-pixel limit enforced before full decoding",
"PASS: real URL expiry, expired-intent cleanup and published-object protection",
"PASS: mandatory proxy upload remains compatible"
],
"exitCode": 0,
"elapsedSeconds": 14.73761030001333
},
{
"name": "s3_restricted_roles",
"command": [
"docker",
"compose",
"run",
"--rm",
"--no-deps",
"-T",
"-v",
"C:\\Users\\olpin\\Projects\\mtusi2026lab4\\test:/app/test:ro",
"--entrypoint",
"node",
"s3-init",
"test/s3-permissions.mjs"
],
"status": "passed",
"output": [
"PASS: api: object read and readiness allowed; other prefixes/buckets, bucket policy and admin denied",
"PASS: reconciler: object read and readiness allowed; other prefixes/buckets, bucket policy and admin denied",
"PASS: API CRUD without listing; reconciler scoped listing/HEAD/delete without PUT; anonymous access denied"
],
"exitCode": 0,
"elapsedSeconds": 4.188357200007886
},
{
"name": "s3_conditional_write_checksum_copy",
"command": [
"docker",
"compose",
"run",
"--rm",
"--no-deps",
"-T",
"-v",
"C:\\Users\\olpin\\Projects\\mtusi2026lab4\\test:/app/test:ro",
"--entrypoint",
"node",
"s3-init",
"test/s3-direct-capabilities.mjs"
],
"status": "passed",
"output": [
"PASS: RustFS 1.0.4 enforces If-None-Match, SHA-256 and conditional server-side copy"
],
"exitCode": 0,
"elapsedSeconds": 3.997638200002257
},
{
"name": "public_smoke_after",
"command": [
"C:\\Program Files\\Python313\\python.exe",
"-X",
"utf8",
"-u",
"tests/smoke.py",
"--base-url",
"http://127.0.0.1:8080"
],
"status": "passed",
"output": [
"PASS: lab4 public API scenario; infrastructure and grading evidence remain separate."
],
"exitCode": 0,
"elapsedSeconds": 2.654254299995955
}
],
"scope": "Existing suites, sequential execution, no load benchmark rerun. IPv4 public endpoint. All runtime services restored without deleting volumes.",
"before": [
{
"service": "api",
"name": "mtusi2026lab4-api-1",
"id": "ce0434d224ba",
"state": "running",
"health": "healthy",
"image": "mtusi2026lab4-api"
},
{
"service": "api",
"name": "mtusi2026lab4-api-2",
"id": "752f50d7b664",
"state": "running",
"health": "healthy",
"image": "mtusi2026lab4-api"
},
{
"service": "nginx",
"name": "mtusi2026lab4-nginx-1",
"id": "dd8840a93c5b",
"state": "running",
"health": "healthy",
"image": "nginx:1.30.6-alpine"
},
{
"service": "postgres",
"name": "mtusi2026lab4-postgres-1",
"id": "14c8623492ba",
"state": "running",
"health": "healthy",
"image": "postgres:17.6-bookworm"
},
{
"service": "reconciler",
"name": "mtusi2026lab4-reconciler-1",
"id": "4058a1f65b0b",
"state": "running",
"health": "healthy",
"image": "mtusi2026lab4-reconciler"
},
{
"service": "redis",
"name": "mtusi2026lab4-redis-1",
"id": "b521d405535f",
"state": "running",
"health": "healthy",
"image": "redis:7.4.5-alpine"
},
{
"service": "s3",
"name": "mtusi2026lab4-s3-1",
"id": "ef6e12a25440",
"state": "running",
"health": "healthy",
"image": "rustfs/rustfs:1.0.4"
}
],
"apiImages": [
"ce0434d224ba sha256:dc12a9dcee0a6f047ac0bea6e12155687ecd831b36e029976ca221f7cacd3c99",
"752f50d7b664 sha256:dc12a9dcee0a6f047ac0bea6e12155687ecd831b36e029976ca221f7cacd3c99"
],
"sourceUnchanged": true,
"after": [
{
"service": "api",
"name": "mtusi2026lab4-api-1",
"id": "ce0434d224ba",
"state": "running",
"health": "healthy",
"image": "mtusi2026lab4-api"
},
{
"service": "api",
"name": "mtusi2026lab4-api-2",
"id": "752f50d7b664",
"state": "running",
"health": "healthy",
"image": "mtusi2026lab4-api"
},
{
"service": "nginx",
"name": "mtusi2026lab4-nginx-1",
"id": "dd8840a93c5b",
"state": "running",
"health": "healthy",
"image": "nginx:1.30.6-alpine"
},
{
"service": "postgres",
"name": "mtusi2026lab4-postgres-1",
"id": "14c8623492ba",
"state": "running",
"health": "healthy",
"image": "postgres:17.6-bookworm"
},
{
"service": "reconciler",
"name": "mtusi2026lab4-reconciler-1",
"id": "4058a1f65b0b",
"state": "running",
"health": "healthy",
"image": "mtusi2026lab4-reconciler"
},
{
"service": "redis",
"name": "mtusi2026lab4-redis-1",
"id": "b521d405535f",
"state": "running",
"health": "healthy",
"image": "redis:7.4.5-alpine"
},
{
"service": "s3",
"name": "mtusi2026lab4-s3-1",
"id": "ef6e12a25440",
"state": "running",
"health": "healthy",
"image": "rustfs/rustfs:1.0.4"
}
],
"stackRestored": true,
"finishedAt": "2026-11-11T21:10:19.452449+00:00"
}