Prepare verified laboratory 5 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 276dbdad8a
commit 57a253e0b4
122 changed files with 13404 additions and 72 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"checked_at": "2026-11-15T17:22:02.090Z",
"results": [
{
"stopped_instance": "3e051955bcf1",
"surviving_instance": "168a40088e2e",
"session_preserved": true,
"confirmed_messages": 2,
"recovery_observed_ms": 1025
},
{
"stopped_instance": "168a40088e2e",
"surviving_instance": "3e051955bcf1",
"session_preserved": true,
"confirmed_messages": 4,
"recovery_observed_ms": 27
}
]
}
+2
View File
@@ -0,0 +1,2 @@
Running as unit: run-p1145148-i22068280.scope; invocation ID: 9e77b7f9f1504b5d92284f2490cd0a95
{"checked_at":"2026-11-15T17:22:02.090Z","results":[{"stopped_instance":"3e051955bcf1","surviving_instance":"168a40088e2e","session_preserved":true,"confirmed_messages":2,"recovery_observed_ms":1025},{"stopped_instance":"168a40088e2e","surviving_instance":"3e051955bcf1","session_preserved":true,"confirmed_messages":4,"recovery_observed_ms":27}]}
+149
View File
@@ -0,0 +1,149 @@
Running as unit: run-p1218114-i22148514.scope; invocation ID: 259d09db44e74bd38eead4c7940a0c94
? backend/cmd/app [no test files]
? backend/cmd/worker [no test files]
? backend/db [no test files]
ok backend/integration (cached)
ok backend/internal/adapter/handler (cached)
ok backend/internal/adapter/imagefile (cached)
? backend/internal/adapter/password [no test files]
? backend/internal/adapter/queue [no test files]
ok backend/internal/adapter/repository/postgres 1.011s
? backend/internal/adapter/repository/postgres/queries [no test files]
ok backend/internal/adapter/storage (cached)
ok backend/internal/application/usecase 1.009s
ok backend/internal/config (cached)
ok backend/internal/domain/model (cached)
? backend/internal/domain/port [no test files]
? backend/internal/domain/repository [no test files]
? backend/pkg/logger [no test files]
? backend/pkg/server [no test files]
0 issues.
Image mtuci-vp5:local Building
#1 [internal] load local bake definitions
#1 reading from stdin 1.53kB done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 839B done
#2 DONE 0.1s
#3 resolve image config for docker-image://docker.io/docker/dockerfile:1
#3 DONE 4.9s
#4 docker-image://docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e
#4 resolve docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e
#4 resolve docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e 0.2s done
#4 CACHED
#5 [internal] load metadata for docker.io/library/debian@sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f
#5 ...
#6 [internal] load metadata for docker.io/library/golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d
#6 DONE 1.2s
#5 [internal] load metadata for docker.io/library/debian@sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f
#5 DONE 1.3s
#7 [internal] load .dockerignore
#7 transferring context: 115B done
#7 DONE 0.1s
#8 [internal] load build context
#8 DONE 0.0s
#9 [stage-1 1/4] FROM docker.io/library/debian@sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f
#9 resolve docker.io/library/debian@sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f
#9 resolve docker.io/library/debian@sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f 0.4s done
#9 DONE 0.5s
#10 [build 1/4] FROM docker.io/library/golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d
#10 resolve docker.io/library/golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d
#10 resolve docker.io/library/golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d 0.4s done
#10 DONE 0.5s
#8 [internal] load build context
#8 transferring context: 55.42kB done
#8 DONE 0.1s
#11 [build 2/4] WORKDIR /src
#11 CACHED
#12 [build 3/4] COPY backend/ ./
#12 DONE 0.7s
#13 [build 4/4] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build go build -trimpath -ldflags='-s -w' -o /out/messenger ./cmd/app && go build -trimpath -ldflags='-s -w' -o /out/worker ./cmd/worker
#13 DONE 18.8s
#14 [stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends imagemagick ca-certificates && apt-get clean
#14 CACHED
#15 [stage-1 3/4] COPY --from=build /out/messenger /messenger
#15 DONE 0.9s
#16 [stage-1 4/4] COPY --from=build /out/worker /worker
#16 DONE 1.1s
#17 exporting to image
#17 exporting layers
#17 exporting layers 2.2s done
#17 exporting manifest sha256:11b531203ff037cef9fa60e89ebbf8b98c597cabb043a2f39d3452a00097d29a
#17 exporting manifest sha256:11b531203ff037cef9fa60e89ebbf8b98c597cabb043a2f39d3452a00097d29a 0.2s done
#17 exporting config sha256:6eb1958a181c51ce939df15c467beedb96a9c2b9629b355460d7bbfa1bab3824
#17 exporting config sha256:6eb1958a181c51ce939df15c467beedb96a9c2b9629b355460d7bbfa1bab3824 0.2s done
#17 exporting attestation manifest sha256:82091c7efa4ace5668dfab0a8afe102c4292e83937d06c8c63c2ed0ab6cfb995
#17 exporting attestation manifest sha256:82091c7efa4ace5668dfab0a8afe102c4292e83937d06c8c63c2ed0ab6cfb995 0.3s done
#17 exporting manifest list sha256:22d0a63d522e7a322c7ea0a0319be7cb1f303089bc1ab1c26e1238da36f06050
#17 exporting manifest list sha256:22d0a63d522e7a322c7ea0a0319be7cb1f303089bc1ab1c26e1238da36f06050 0.2s done
#17 naming to docker.io/library/mtuci-vp5:local
#17 naming to docker.io/library/mtuci-vp5:local 0.0s done
#17 unpacking to docker.io/library/mtuci-vp5:local
#17 unpacking to docker.io/library/mtuci-vp5:local 0.7s done
#17 DONE 4.1s
#18 resolving provenance for metadata file
#18 DONE 0.0s
Image mtuci-vp5:local Built
time="2026-11-15T20:29:02+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-db8c2cb4f0d4, mtuci-vp5-medvedev-api-run-5ed09d6abf58, mtuci-vp5-medvedev-worker-run-b5fa7057152c, mtuci-vp5-medvedev-api-run-7ccf113a8771, mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-postgres-1 Running
Container mtuci-vp5-medvedev-postgres-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Healthy
Container mtuci-vp5-medvedev-migrate-run-1e87f28d2b77 Creating
Container mtuci-vp5-medvedev-migrate-run-1e87f28d2b77 Created
2026/11/15 17:29:05 OK 00005_replay_audit.sql (534.27ms)
2026/11/15 17:29:05 goose: successfully migrated database to version: 5
time="2026-11-15T20:29:07+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-db8c2cb4f0d4, mtuci-vp5-medvedev-api-run-5ed09d6abf58, mtuci-vp5-medvedev-worker-run-b5fa7057152c, mtuci-vp5-medvedev-api-run-7ccf113a8771, mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-postgres-1 Running
Container mtuci-vp5-medvedev-valkey-1 Running
Container mtuci-vp5-medvedev-s3-1 Running
Container mtuci-vp5-medvedev-migrate-1 Recreate
Container mtuci-vp5-medvedev-bootstrap-1 Recreate
Container mtuci-vp5-medvedev-migrate-1 Recreated
Container mtuci-vp5-medvedev-bootstrap-1 Recreated
Container mtuci-vp5-medvedev-worker-1 Recreate
Container mtuci-vp5-medvedev-api-2 Recreate
Container mtuci-vp5-medvedev-api-1 Recreate
Container mtuci-vp5-medvedev-worker-1 Recreated
Container mtuci-vp5-medvedev-api-2 Recreated
Container mtuci-vp5-medvedev-api-1 Recreated
Container mtuci-vp5-medvedev-s3-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Healthy
Container mtuci-vp5-medvedev-migrate-1 Starting
Container mtuci-vp5-medvedev-s3-1 Healthy
Container mtuci-vp5-medvedev-bootstrap-1 Starting
Container mtuci-vp5-medvedev-migrate-1 Started
Container mtuci-vp5-medvedev-bootstrap-1 Started
Container mtuci-vp5-medvedev-bootstrap-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Waiting
Container mtuci-vp5-medvedev-bootstrap-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Exited
Container mtuci-vp5-medvedev-migrate-1 Exited
Container mtuci-vp5-medvedev-bootstrap-1 Exited
Container mtuci-vp5-medvedev-api-1 Starting
Container mtuci-vp5-medvedev-bootstrap-1 Exited
Container mtuci-vp5-medvedev-worker-1 Starting
Container mtuci-vp5-medvedev-api-1 Started
Container mtuci-vp5-medvedev-api-2 Starting
Container mtuci-vp5-medvedev-api-2 Started
Container mtuci-vp5-medvedev-worker-1 Started
+59
View File
@@ -0,0 +1,59 @@
Running as unit: run-p1353899-i22195833.scope; invocation ID: b3b71e390dd94959b46dd7bbc7897868
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
? backend/cmd/app [no test files]
? backend/cmd/worker [no test files]
? backend/db [no test files]
ok backend/integration (cached)
ok backend/internal/adapter/handler (cached)
ok backend/internal/adapter/imagefile (cached)
? backend/internal/adapter/password [no test files]
? backend/internal/adapter/queue [no test files]
ok backend/internal/adapter/repository/postgres (cached)
? backend/internal/adapter/repository/postgres/queries [no test files]
ok backend/internal/adapter/storage (cached)
ok backend/internal/application/usecase (cached)
ok backend/internal/config (cached)
ok backend/internal/domain/model (cached)
? backend/internal/domain/port [no test files]
? backend/internal/domain/repository [no test files]
? backend/pkg/logger [no test files]
? backend/pkg/server [no test files]
0 issues.
time="2026-11-15T20:42:06+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-api-run-4077310676b4, mtuci-vp5-medvedev-worker-run-771b781db111, mtuci-vp5-medvedev-api-run-b290bf928939, mtuci-vp5-medvedev-worker-run-db8c2cb4f0d4, mtuci-vp5-medvedev-api-run-5ed09d6abf58, mtuci-vp5-medvedev-worker-run-b5fa7057152c, mtuci-vp5-medvedev-api-run-7ccf113a8771, mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-worker-run-883dcfd1c83f Creating
Container mtuci-vp5-medvedev-worker-run-883dcfd1c83f Created
=== RUN TestOriginalBytesArePreserved
--- PASS: TestOriginalBytesArePreserved (0.00s)
=== RUN TestRejectsInvalidImageAndFilename
=== RUN TestRejectsInvalidImageAndFilename/image/jpeg�
=== RUN TestRejectsInvalidImageAndFilename/image/pngn
=== RUN TestRejectsInvalidImageAndFilename/application/octet-stream�
=== RUN TestRejectsInvalidImageAndFilename/image/png�
--- PASS: TestRejectsInvalidImageAndFilename (0.00s)
--- PASS: TestRejectsInvalidImageAndFilename/image/jpeg� (0.00s)
--- PASS: TestRejectsInvalidImageAndFilename/image/pngn (0.00s)
--- PASS: TestRejectsInvalidImageAndFilename/application/octet-stream� (0.00s)
--- PASS: TestRejectsInvalidImageAndFilename/image/png� (0.00s)
=== RUN TestRejectsOversizedStreamBeforeDecoding
--- PASS: TestRejectsOversizedStreamBeforeDecoding (0.01s)
=== RUN TestRejectsPixelBombBeforeDecoding
--- PASS: TestRejectsPixelBombBeforeDecoding (0.00s)
=== RUN TestWorstCaseImagesWithinBudget
stress_test.go:78: explicit isolated memory experiment required
--- SKIP: TestWorstCaseImagesWithinBudget (0.00s)
=== RUN TestActualVariantsHonorDimensionsAlphaAndEXIF
=== RUN TestActualVariantsHonorDimensionsAlphaAndEXIF/landscape
=== RUN TestActualVariantsHonorDimensionsAlphaAndEXIF/tiny
=== RUN TestActualVariantsHonorDimensionsAlphaAndEXIF/portrait
=== RUN TestActualVariantsHonorDimensionsAlphaAndEXIF/exif
--- PASS: TestActualVariantsHonorDimensionsAlphaAndEXIF (0.18s)
--- PASS: TestActualVariantsHonorDimensionsAlphaAndEXIF/landscape (0.12s)
--- PASS: TestActualVariantsHonorDimensionsAlphaAndEXIF/tiny (0.02s)
--- PASS: TestActualVariantsHonorDimensionsAlphaAndEXIF/portrait (0.02s)
--- PASS: TestActualVariantsHonorDimensionsAlphaAndEXIF/exif (0.02s)
=== RUN TestFitDimensionsPreservesAspectAndDoesNotUpscale
--- PASS: TestFitDimensionsPreservesAspectAndDoesNotUpscale (0.00s)
PASS
+37
View File
@@ -0,0 +1,37 @@
Running as unit: run-p1232569-i22229982.scope; invocation ID: 161ac53c367c43708ce75fb300253e7d
Ready: 2 API process(es)
Container mtuci-vp5-medvedev-worker-1 Stopping
Container mtuci-vp5-medvedev-worker-1 Stopped
time="2026-11-15T20:29:47+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-db8c2cb4f0d4, mtuci-vp5-medvedev-api-run-5ed09d6abf58, mtuci-vp5-medvedev-worker-run-b5fa7057152c, mtuci-vp5-medvedev-api-run-7ccf113a8771, mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-worker-run-9c6243811fa8 Creating
Container mtuci-vp5-medvedev-worker-run-9c6243811fa8 Created
=== RUN TestReplayAfterCompletedPreviousVersionCleanup
--- PASS: TestReplayAfterCompletedPreviousVersionCleanup (0.26s)
=== RUN TestVersionedPipelineDuplicateReorderRetryAndCleanup
--- PASS: TestVersionedPipelineDuplicateReorderRetryAndCleanup (2.53s)
PASS
time="2026-11-15T20:29:52+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-db8c2cb4f0d4, mtuci-vp5-medvedev-api-run-5ed09d6abf58, mtuci-vp5-medvedev-worker-run-b5fa7057152c, mtuci-vp5-medvedev-api-run-7ccf113a8771, mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-postgres-1 Running
Container mtuci-vp5-medvedev-valkey-1 Running
Container mtuci-vp5-medvedev-s3-1 Running
Container mtuci-vp5-medvedev-s3-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Healthy
Container mtuci-vp5-medvedev-migrate-1 Starting
Container mtuci-vp5-medvedev-s3-1 Healthy
Container mtuci-vp5-medvedev-bootstrap-1 Starting
Container mtuci-vp5-medvedev-migrate-1 Started
Container mtuci-vp5-medvedev-bootstrap-1 Started
Container mtuci-vp5-medvedev-migrate-1 Waiting
Container mtuci-vp5-medvedev-bootstrap-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Exited
Container mtuci-vp5-medvedev-bootstrap-1 Exited
Container mtuci-vp5-medvedev-worker-1 Starting
Container mtuci-vp5-medvedev-worker-1 Started
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python3 tests/smoke.py --base-url "http://127.0.0.1:28205"
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
python3 tests/resilience.py --mode persistence --action-script "./scripts/restart.sh" --base-url "http://127.0.0.1:28205"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
@@ -0,0 +1 @@
{"phase":"created_and_selected","database":"messenger_stage_70b6ccce","old_database":"messenger","container":"3b0bdf554f6f648b0846697eac2b2f20512205d5fd373742dcce7a608696c5c9","old_database_preserved":true}
+6
View File
@@ -0,0 +1,6 @@
Running as unit: run-p1209455-i22190718.scope; invocation ID: 788efe50bc3c434f9f3d4ab94cbb2bb3
internal/application/usecase/pipeline_retry_test.go:23:2: field cleanup is unused (unused)
cleanup []model.Attachment
^
1 issues:
* unused: 1
+6
View File
@@ -0,0 +1,6 @@
time="2026-11-15T20:01:08+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-worker-run-1db5a9894a25 Creating
Container mtuci-vp5-medvedev-worker-run-1db5a9894a25 Created
=== RUN TestReplayAfterCompletedPreviousVersionCleanup
--- PASS: TestReplayAfterCompletedPreviousVersionCleanup (0.24s)
PASS
+2
View File
@@ -0,0 +1,2 @@
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
+10
View File
@@ -0,0 +1,10 @@
Running as unit: run-p1084962-i22065896.scope; invocation ID: d1fe2b7306ca4399bdf630f35468acc2
python3 tests/smoke.py --base-url "http://127.0.0.1:28205"
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
python3 tests/resilience.py --mode persistence --action-script "./scripts/restart.sh" --base-url "http://127.0.0.1:28205"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
python3 tests/resilience.py --mode failover --action-script "./scripts/stop-one.sh" --base-url "http://127.0.0.1:28205"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 126, "failed_attempts": 1, "first_recovery_seconds": 1.492}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+6
View File
@@ -0,0 +1,6 @@
=== RUN TestCompletedDeliveryRecoversStagingCleanupAfterCrash
pipeline_retry_test.go:49: completed redelivery did not recover cleanup: removed=0 durable_cleaned=0 status=ready
--- FAIL: TestCompletedDeliveryRecoversStagingCleanupAfterCrash (0.00s)
FAIL
FAIL backend/internal/application/usecase 0.008s
FAIL
+6
View File
@@ -0,0 +1,6 @@
Command: go test ./internal/adapter/imagefile
Before FitDimensions implementation, on omarchy:
# backend/internal/adapter/imagefile [backend/internal/adapter/imagefile.test]
internal/adapter/imagefile/variants_test.go:7:10: undefined: FitDimensions
FAIL backend/internal/adapter/imagefile [build failed]
FAIL
+19
View File
@@ -0,0 +1,19 @@
=== RUN TestReconcilerCannotPublishVersionedPipelineResult
=== RUN TestReconcilerCannotPublishVersionedPipelineResult/uploading
reconcile_pipeline_test.go:9: pipeline state was changed by legacy reconciler: status uploading -> ready, report {Metadata:1 Objects:1 Orphans:0 Missing:0 Recovered:1 Fresh:0 Deleted:0 Changed:1 NextMetadata: NextObject:}
=== RUN TestReconcilerCannotPublishVersionedPipelineResult/queued
reconcile_pipeline_test.go:9: pipeline state was changed by legacy reconciler: status queued -> ready, report {Metadata:1 Objects:1 Orphans:0 Missing:0 Recovered:1 Fresh:0 Deleted:0 Changed:1 NextMetadata: NextObject:}
=== RUN TestReconcilerCannotPublishVersionedPipelineResult/processing
reconcile_pipeline_test.go:9: pipeline state was changed by legacy reconciler: status processing -> ready, report {Metadata:1 Objects:1 Orphans:0 Missing:0 Recovered:1 Fresh:0 Deleted:0 Changed:1 NextMetadata: NextObject:}
=== RUN TestReconcilerCannotPublishVersionedPipelineResult/failed
reconcile_pipeline_test.go:9: pipeline state was changed by legacy reconciler: status failed -> ready, report {Metadata:1 Objects:1 Orphans:0 Missing:0 Recovered:1 Fresh:0 Deleted:0 Changed:1 NextMetadata: NextObject:}
=== RUN TestReconcilerCannotPublishVersionedPipelineResult/ready
--- FAIL: TestReconcilerCannotPublishVersionedPipelineResult (0.00s)
--- FAIL: TestReconcilerCannotPublishVersionedPipelineResult/uploading (0.00s)
--- FAIL: TestReconcilerCannotPublishVersionedPipelineResult/queued (0.00s)
--- FAIL: TestReconcilerCannotPublishVersionedPipelineResult/processing (0.00s)
--- FAIL: TestReconcilerCannotPublishVersionedPipelineResult/failed (0.00s)
--- PASS: TestReconcilerCannotPublishVersionedPipelineResult/ready (0.00s)
FAIL
FAIL backend/internal/application/usecase 0.003s
FAIL
+31
View File
@@ -0,0 +1,31 @@
Running as unit: run-p1213525-i22184445.scope; invocation ID: bcb6a76b860c44cf98eea6bdd13aa1ac
Container mtuci-vp5-medvedev-worker-1 Stopping
Container mtuci-vp5-medvedev-worker-1 Stopped
time="2026-11-15T20:27:58+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-db8c2cb4f0d4, mtuci-vp5-medvedev-api-run-5ed09d6abf58, mtuci-vp5-medvedev-worker-run-b5fa7057152c, mtuci-vp5-medvedev-api-run-7ccf113a8771, mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-worker-run-dcb0b433f76b Creating
Container mtuci-vp5-medvedev-worker-run-dcb0b433f76b Created
=== RUN TestReplayAfterCompletedPreviousVersionCleanup
pipeline_integration_test.go:125: explicit replay has no durable audit count/timestamp
--- FAIL: TestReplayAfterCompletedPreviousVersionCleanup (0.25s)
=== RUN TestVersionedPipelineDuplicateReorderRetryAndCleanup
--- PASS: TestVersionedPipelineDuplicateReorderRetryAndCleanup (2.34s)
FAIL
time="2026-11-15T20:28:03+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-db8c2cb4f0d4, mtuci-vp5-medvedev-api-run-5ed09d6abf58, mtuci-vp5-medvedev-worker-run-b5fa7057152c, mtuci-vp5-medvedev-api-run-7ccf113a8771, mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-postgres-1 Running
Container mtuci-vp5-medvedev-valkey-1 Running
Container mtuci-vp5-medvedev-s3-1 Running
Container mtuci-vp5-medvedev-postgres-1 Waiting
Container mtuci-vp5-medvedev-s3-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Healthy
Container mtuci-vp5-medvedev-migrate-1 Starting
Container mtuci-vp5-medvedev-s3-1 Healthy
Container mtuci-vp5-medvedev-bootstrap-1 Starting
Container mtuci-vp5-medvedev-migrate-1 Started
Container mtuci-vp5-medvedev-bootstrap-1 Started
Container mtuci-vp5-medvedev-bootstrap-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Exited
Container mtuci-vp5-medvedev-bootstrap-1 Exited
Container mtuci-vp5-medvedev-worker-1 Starting
Container mtuci-vp5-medvedev-worker-1 Started
+8
View File
@@ -0,0 +1,8 @@
time="2026-11-15T19:59:14+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-worker-run-5a18781dd27e Creating
Container mtuci-vp5-medvedev-worker-run-5a18781dd27e Created
=== RUN TestReplayAfterCompletedPreviousVersionCleanup
pipeline_integration_test.go:109: ready version1 staging cleanup permanently blocked replay of failed version2 despite retained original
--- FAIL: TestReplayAfterCompletedPreviousVersionCleanup (0.31s)
FAIL
@@ -0,0 +1,6 @@
=== RUN TestInfrastructureTransformFailureIsRetried
pipeline_retry_test.go:38: temporary transform infrastructure failure became permanent: failed=true code=invalid_image
--- FAIL: TestInfrastructureTransformFailureIsRetried (0.00s)
FAIL
FAIL backend/internal/application/usecase 0.003s
FAIL
+22
View File
@@ -0,0 +1,22 @@
# PostgreSQL replay regression
Рабочая папка: `/mnt/data/home/bench-saves/mtuci-vp-remaining-20261115/lab5` на omarchy.
Тестовый бинарный файл собран нативным Go1.27.2, затем исполнялся в отдельном одноразовом worker-контейнере с теми же защищёнными *_FILE входами, что у стенда. Нормальный worker был остановлен на время регрессии. Полный тест вызывает настоящий PostgreSQLStore и удаляет только созданный им fixture в порядке внешних ключей.
```sh
cd backend
CGO_ENABLED=0 /home/rey/.local/share/mise/installs/go/1.27.2/bin/go test -c -o ../pipeline-db.test ./internal/adapter/repository/postgres
cd ..
./scripts/compose.sh run --rm --no-deps --entrypoint /pipeline-db.test -e RUN_PIPELINE_DB_TESTS=1 -v "$PWD/pipeline-db.test:/pipeline-db.test:ro" worker -test.v -test.run '^TestReplayAfterCompletedPreviousVersionCleanup$'
```
RED: `red-replay-version2.txt`, FAIL0.31s после реального ready v1→cleanup→advance v2→failed→replay: отказ при сохранённом original. GREEN: `green-replay-version2.txt`, PASS0.24s после исправления условий staging_expired и regenerated SQLC mapper. Это регрессия реального SQL/Store, не E2E worker version advancement.
SHA256 проверенного GREEN среза:
- db/sqlc/queries/pipeline.sql: `c2a207f6820c897ed9747221867bf8610fd40f2f1177d37d8249b0674f6f638b`
- internal/adapter/repository/postgres/queries/pipeline.sql.go: `08f4c3bd1b5b3cd09bb42f0105e17b3f0f5c4d3264bc250daf3225fdc20633f5`
- internal/adapter/repository/postgres/pipeline_integration_test.go: `ee1fcf19cf5b98a4167a416d911d27ea408d25dea4929c606d6c04873adfa2f0`
Новых commit для решения пока нет. SHA относятся к исходникам на момент проверки, а не к skeleton commit.
+2
View File
@@ -0,0 +1,2 @@
Running as unit: run-p1196184-i22152379.scope; invocation ID: 6f85d08018534a5abf698f139cde0057
{"checked_at":"2026-11-15T17:26:48.979Z","scenario":"real crash after_original, actual reconciler apply, lease recovery and durable cleanup","metadata_age_injected_seconds":120,"attachment_id":"f3d0b97d-2c3b-4b0d-abb1-019289ae67a6","worker_exit":88,"commit_publish_gap_restart":true,"status_after_reconciler":"processing","variants_after_reconciler":0,"thumbnail_before_recovery":409,"final_status":"ready","final_variants":3,"original_exact":true,"staging_cleaned":true}
@@ -0,0 +1,14 @@
{
"checked_at": "2026-11-15T17:15:15.202Z",
"scenario": "real crash after_commit, actual reconciler apply, lease recovery and durable cleanup",
"metadata_age_injected_seconds": 120,
"attachment_id": "960da673-5397-4d02-8188-4c168757fe0d",
"worker_exit": 88,
"status_after_reconciler": "ready",
"variants_after_reconciler": 3,
"thumbnail_before_recovery": 200,
"final_status": "ready",
"final_variants": 3,
"original_exact": true,
"staging_cleaned": true
}
@@ -0,0 +1,14 @@
{
"checked_at": "2026-11-15T17:16:01.349Z",
"scenario": "real crash after_objects, actual reconciler apply, lease recovery and durable cleanup",
"metadata_age_injected_seconds": 120,
"attachment_id": "5c98fde4-f4d9-4b99-9f99-2c08a603ad90",
"worker_exit": 88,
"status_after_reconciler": "processing",
"variants_after_reconciler": 0,
"thumbnail_before_recovery": 409,
"final_status": "ready",
"final_variants": 3,
"original_exact": true,
"staging_cleaned": true
}
@@ -0,0 +1,15 @@
{
"checked_at": "2026-11-15T17:26:48.979Z",
"scenario": "real crash after_original, actual reconciler apply, lease recovery and durable cleanup",
"metadata_age_injected_seconds": 120,
"attachment_id": "f3d0b97d-2c3b-4b0d-abb1-019289ae67a6",
"worker_exit": 88,
"commit_publish_gap_restart": true,
"status_after_reconciler": "processing",
"variants_after_reconciler": 0,
"thumbnail_before_recovery": 409,
"final_status": "ready",
"final_variants": 3,
"original_exact": true,
"staging_cleaned": true
}
+14
View File
@@ -0,0 +1,14 @@
{
"checked_at": "2026-11-15T17:06:43.004Z",
"scenario": "real crash after_original, actual reconciler apply, lease recovery and durable cleanup",
"metadata_age_injected_seconds": 120,
"attachment_id": "6615ccea-cdbe-4ed7-b45f-34f9ba1fe71a",
"worker_exit": 88,
"status_after_reconciler": "processing",
"variants_after_reconciler": 0,
"thumbnail_before_recovery": 409,
"final_status": "ready",
"final_variants": 3,
"original_exact": true,
"staging_cleaned": true
}
+10
View File
@@ -0,0 +1,10 @@
{
"checked_at": "2026-11-15T16:50:07.757Z",
"scenario": "real worker crash after_original, artificial metadata age, actual legacy CLI reconcile apply",
"attachment_id": "68c7e769-1ab5-41e1-80bf-42b651a5ed39",
"worker_exit": 88,
"status": "ready",
"variants": 0,
"thumbnail_http": 404,
"red_confirmed": true
}
+62
View File
@@ -0,0 +1,62 @@
Collecting openapi-spec-validator==0.7.2 (from -r requirements-dev.txt (line 2))
Using cached openapi_spec_validator-0.7.2-py3-none-any.whl.metadata (5.7 kB)
Collecting jsonschema<5.0.0,>=4.18.0 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached jsonschema-4.26.0-py3-none-any.whl.metadata (7.6 kB)
Collecting jsonschema-path<0.4.0,>=0.3.1 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached jsonschema_path-0.3.4-py3-none-any.whl.metadata (4.3 kB)
Collecting lazy-object-proxy<2.0.0,>=1.7.1 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached lazy_object_proxy-1.13.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (5.1 kB)
Collecting openapi-schema-validator<0.7.0,>=0.6.0 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached openapi_schema_validator-0.6.3-py3-none-any.whl.metadata (5.4 kB)
Collecting attrs>=22.2.0 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached attrs-26.1.0-py3-none-any.whl.metadata (8.8 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached jsonschema_specifications-2025.9.1-py3-none-any.whl.metadata (2.9 kB)
Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached referencing-0.37.0-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.25.0 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
Collecting PyYAML>=5.1 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (2.4 kB)
Collecting pathable<0.5.0,>=0.4.1 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached pathable-0.4.4-py3-none-any.whl.metadata (1.8 kB)
Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached referencing-0.36.2-py3-none-any.whl.metadata (2.8 kB)
Collecting requests<3.0.0,>=2.31.0 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached requests-2.34.2-py3-none-any.whl.metadata (4.8 kB)
Collecting rfc3339-validator (from openapi-schema-validator<0.7.0,>=0.6.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached rfc3339_validator-0.1.4-py2.py3-none-any.whl.metadata (1.5 kB)
Collecting charset_normalizer<4,>=2 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (46 kB)
Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached idna-3.20-py3-none-any.whl.metadata (7.2 kB)
Collecting urllib3<3,>=1.26 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached urllib3-2.8.0-py3-none-any.whl.metadata (7.4 kB)
Collecting certifi>=2023.5.7 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached certifi-2026.10.23-py3-none-any.whl.metadata (2.5 kB)
Collecting six (from rfc3339-validator->openapi-schema-validator<0.7.0,>=0.6.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Using cached openapi_spec_validator-0.7.2-py3-none-any.whl (39 kB)
Using cached jsonschema-4.26.0-py3-none-any.whl (90 kB)
Using cached jsonschema_path-0.3.4-py3-none-any.whl (14 kB)
Using cached lazy_object_proxy-1.13.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (70 kB)
Using cached openapi_schema_validator-0.6.3-py3-none-any.whl (8.8 kB)
Using cached pathable-0.4.4-py3-none-any.whl (9.6 kB)
Using cached referencing-0.36.2-py3-none-any.whl (26 kB)
Using cached requests-2.34.2-py3-none-any.whl (73 kB)
Using cached charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (255 kB)
Using cached idna-3.20-py3-none-any.whl (69 kB)
Using cached urllib3-2.8.0-py3-none-any.whl (135 kB)
Using cached attrs-26.1.0-py3-none-any.whl (67 kB)
Using cached certifi-2026.10.23-py3-none-any.whl (135 kB)
Using cached jsonschema_specifications-2025.9.1-py3-none-any.whl (18 kB)
Using cached pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (794 kB)
Using cached rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (371 kB)
Using cached rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: urllib3, six, rpds-py, PyYAML, pathable, lazy-object-proxy, idna, charset_normalizer, certifi, attrs, rfc3339-validator, requests, referencing, jsonschema-specifications, jsonschema-path, jsonschema, openapi-schema-validator, openapi-spec-validator
Successfully installed PyYAML-6.0.3 attrs-26.1.0 certifi-2026.10.23 charset_normalizer-3.5.2 idna-3.20 jsonschema-4.26.0 jsonschema-path-0.3.4 jsonschema-specifications-2025.9.1 lazy-object-proxy-1.13.0 openapi-schema-validator-0.6.3 openapi-spec-validator-0.7.2 pathable-0.4.4 referencing-0.36.2 requests-2.34.2 rfc3339-validator-0.1.4 rpds-py-2026.9.1 six-1.17.0 urllib3-2.8.0
[notice] A new release of pip is available: 26.2.1 -> 26.3
[notice] To update, run: /mnt/data/home/bench-saves/mtuci-vp-remaining-20261115/lab5/.venv/bin/python -m pip install --upgrade pip
+29
View File
@@ -0,0 +1,29 @@
Running as unit: run-p1182373-i22171722.scope; invocation ID: 50022225edb240eabfc5bf827389b15e
Container mtuci-vp5-medvedev-worker-1 Stopping
Container mtuci-vp5-medvedev-worker-1 Stopped
time="2026-11-15T20:24:55+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-worker-run-46e306aac98e Creating
Container mtuci-vp5-medvedev-worker-run-46e306aac98e Created
=== RUN TestReplayAfterCompletedPreviousVersionCleanup
--- PASS: TestReplayAfterCompletedPreviousVersionCleanup (0.25s)
=== RUN TestVersionedPipelineDuplicateReorderRetryAndCleanup
--- PASS: TestVersionedPipelineDuplicateReorderRetryAndCleanup (2.41s)
PASS
time="2026-11-15T20:25:00+03:00" level=warning msg="Found orphan containers (mtuci-vp5-medvedev-worker-run-d4f26bcfc148, mtuci-vp5-medvedev-worker-run-a2389dc840d1, mtuci-vp5-medvedev-worker-run-6c8f0bb601f5, mtuci-vp5-medvedev-worker-run-b9be14682b27) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container mtuci-vp5-medvedev-postgres-1 Running
Container mtuci-vp5-medvedev-valkey-1 Running
Container mtuci-vp5-medvedev-s3-1 Running
Container mtuci-vp5-medvedev-s3-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Waiting
Container mtuci-vp5-medvedev-postgres-1 Healthy
Container mtuci-vp5-medvedev-migrate-1 Starting
Container mtuci-vp5-medvedev-s3-1 Healthy
Container mtuci-vp5-medvedev-bootstrap-1 Starting
Container mtuci-vp5-medvedev-migrate-1 Started
Container mtuci-vp5-medvedev-bootstrap-1 Started
Container mtuci-vp5-medvedev-bootstrap-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Waiting
Container mtuci-vp5-medvedev-migrate-1 Exited
Container mtuci-vp5-medvedev-bootstrap-1 Exited
Container mtuci-vp5-medvedev-worker-1 Starting
Container mtuci-vp5-medvedev-worker-1 Started