forked from mtusi2026/mtusi2026lab5
выполнение на 5
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"date": "2026-11-04",
|
||||
"compose": {
|
||||
"api_replicas": 2,
|
||||
"host_port": 18080,
|
||||
"services_healthy": true,
|
||||
"readiness": "200"
|
||||
},
|
||||
"fixture": {
|
||||
"file": "tests/fixtures/sample.png",
|
||||
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"size_bytes": 111817
|
||||
},
|
||||
"checks": [
|
||||
{
|
||||
"name": "public_smoke",
|
||||
"result": "PASS",
|
||||
"command": "make test BASE_URL=http://localhost:18080"
|
||||
},
|
||||
{
|
||||
"name": "attachment_negative_cases",
|
||||
"result": "PASS",
|
||||
"command": "make test-attachments BASE_URL=http://localhost:18080",
|
||||
"cases": [
|
||||
"damaged PNG",
|
||||
"spoofed MIME",
|
||||
"oversized upload",
|
||||
"pixel limit",
|
||||
"unsafe filename",
|
||||
"unauthorized chat",
|
||||
"cross-chat attachment"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idempotency_race",
|
||||
"result": "PASS",
|
||||
"replicas": 2,
|
||||
"concurrent_same_key_requests": 12,
|
||||
"messages_created": 1
|
||||
},
|
||||
{
|
||||
"name": "outbox_recovery",
|
||||
"result": "PASS",
|
||||
"status_before_publisher_restart": "queued",
|
||||
"status_after_restart": "ready",
|
||||
"original_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75"
|
||||
},
|
||||
{
|
||||
"name": "worker_restart_recovery",
|
||||
"result": "PASS",
|
||||
"sequence": [
|
||||
"stop worker",
|
||||
"upload returns 202 queued",
|
||||
"link attachment to message",
|
||||
"restart API",
|
||||
"start worker",
|
||||
"attachment reaches ready"
|
||||
],
|
||||
"message_attachment_link_survived": true
|
||||
},
|
||||
{
|
||||
"name": "pipeline_version_replay",
|
||||
"result": "PASS",
|
||||
"version_transition": "1 -> 2",
|
||||
"job_id_changed": true,
|
||||
"original_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"v1_thumbnail_sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"v2_thumbnail_sha256": "7904b78c14d936a9e5b4d024bd7bf9ffe4de546c484b356177056b8e949e763f"
|
||||
},
|
||||
{
|
||||
"name": "failed_pipeline_replay",
|
||||
"result": "PASS",
|
||||
"previous_job_id": "2628b822-ae4c-4784-b3bf-03f695176984",
|
||||
"failed_replay_job_id": "797cc24f-0c3a-49fa-9f25-febd21506c6c",
|
||||
"pipeline_version": 2,
|
||||
"audited_replays": 2,
|
||||
"original_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75"
|
||||
},
|
||||
{
|
||||
"name": "reconciliation",
|
||||
"result": "PASS",
|
||||
"dataset_objects_scanned": 36,
|
||||
"metadata_records_scanned": 9,
|
||||
"scan_duration_ms": 20.873,
|
||||
"orphan_detected_and_removed": 1,
|
||||
"missing_object_detected_and_restored": 1,
|
||||
"fresh_orphan_preserved_until_grace": true,
|
||||
"anonymous_s3_access": "denied"
|
||||
},
|
||||
{
|
||||
"name": "persistence_restart",
|
||||
"result": "PASS",
|
||||
"confirmed_data_preserved": true,
|
||||
"existing_session_preserved": true
|
||||
},
|
||||
{
|
||||
"name": "api_failover",
|
||||
"result": "PASS",
|
||||
"instances_before": 2,
|
||||
"successful_writes": 131,
|
||||
"failed_attempts": 1,
|
||||
"first_recovery_seconds": 0.681,
|
||||
"confirmed_data_preserved": true
|
||||
},
|
||||
{
|
||||
"name": "concurrent_upload_memory",
|
||||
"result": "PASS",
|
||||
"api_replicas": 2,
|
||||
"uploads": 10,
|
||||
"concurrency": 10,
|
||||
"bytes_per_upload": 5883411,
|
||||
"duration_seconds": 2.525,
|
||||
"baseline_max_container_bytes": 96101990,
|
||||
"peak_max_container_bytes": 96101990,
|
||||
"peak_delta_bytes": 0,
|
||||
"sampling_method": "continuous docker stats stream"
|
||||
}
|
||||
],
|
||||
"track_2_fault_injection": "pipeline-faults.json"
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"lab": 5,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30.0,
|
||||
"elapsed_seconds": 30.007,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 18768,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 625.458,
|
||||
"successful_latency_ms": {
|
||||
"p50": 5.816,
|
||||
"p95": 8.82,
|
||||
"p99": 19.155
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead.",
|
||||
"environment": {
|
||||
"host": "Apple M2 Pro",
|
||||
"host_cpu_cores": 10,
|
||||
"host_ram_bytes": 17179869184,
|
||||
"macos_version": "27.0.1",
|
||||
"docker_desktop_version": "28.0.4",
|
||||
"api_replicas": 2,
|
||||
"api_cpu_limit_per_container": 1.0,
|
||||
"api_memory_limit_per_container": "512M",
|
||||
"worker_memory_limit": "1G"
|
||||
},
|
||||
"warmup": "No separate warm-up interval; run started after readiness and test-client bootstrap.",
|
||||
"dataset": "18,768 successful synthetic POST message writes; concurrency 4.",
|
||||
"resource_sampling": {
|
||||
"sample_interval_seconds_approx": 2.73,
|
||||
"samples": 11,
|
||||
"cpu_percent_sum_all_compose_containers": {
|
||||
"peak": 322.07,
|
||||
"mean": 232.49
|
||||
},
|
||||
"memory_bytes_sum_all_compose_containers": {
|
||||
"peak": 890263039,
|
||||
"mean": 814641644
|
||||
},
|
||||
"source": "docker stats --no-stream; aggregate across running Compose containers"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"fixture": "tests/fixtures/sample.png",
|
||||
"invariants": {
|
||||
"ambiguous_confirm_republishes_stable_job": true,
|
||||
"confirmed_work_eventually_ready": true,
|
||||
"delivery_semantics": "at-least-once; effects are fenced/idempotent",
|
||||
"duplicate_effects_create_no_second_variant_set": true,
|
||||
"stale_attempt_writes_no_effects": true,
|
||||
"stale_pipeline_cannot_publish_current_metadata": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"scenarios": [
|
||||
{
|
||||
"deliveries": 2,
|
||||
"duplicate_delivery_writes": 0,
|
||||
"effective_object_writes": 4,
|
||||
"scenario": "duplicate_delivery_after_commit_before_ack"
|
||||
},
|
||||
{
|
||||
"attempts": 2,
|
||||
"scenario": "crash_after_claim",
|
||||
"terminal_status": "ready"
|
||||
},
|
||||
{
|
||||
"attempts": 2,
|
||||
"scenario": "crash_after_original_put",
|
||||
"terminal_status": "ready"
|
||||
},
|
||||
{
|
||||
"current_attempt": 2,
|
||||
"scenario": "out_of_order_attempt_delivery",
|
||||
"stale_attempt_extra_writes": 0
|
||||
},
|
||||
{
|
||||
"current_pipeline_version": 2,
|
||||
"published_variant_versions": [
|
||||
"v2"
|
||||
],
|
||||
"scenario": "stale_pipeline_after_newer_version"
|
||||
},
|
||||
{
|
||||
"outbox_recovered_after_restart": true,
|
||||
"published_after_restart": 1,
|
||||
"scenario": "publisher_crash_before_publish"
|
||||
},
|
||||
{
|
||||
"deliveries": 2,
|
||||
"same_message_id": true,
|
||||
"scenario": "publish_confirm_lost_after_broker_accept"
|
||||
},
|
||||
{
|
||||
"configured_timeout_seconds": 1,
|
||||
"observed_seconds": 1.008,
|
||||
"scenario": "transform_timeout_terminated"
|
||||
}
|
||||
],
|
||||
"track": "2"
|
||||
}
|
||||
Reference in New Issue
Block a user