Реализовать уровень 4: сквозные трассы, SLO, отказы и отчёт

This commit is contained in:
2026-11-21 12:18:33 +03:00
parent d0a062e2d2
commit 12181fa893
69 changed files with 52258 additions and 47 deletions
+191
View File
@@ -0,0 +1,191 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"duration_seconds": "0.14954320399965582",
"event": "http.request.complete",
"flags": "1",
"method": "POST",
"observed_timestamp": "1795252636588490258",
"outcome": "success",
"request_id": "observe-60a6c2da00814bf08cb3a801b8388ef4",
"route": "/api/v1/chats/{chat_id}/attachments",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "b33ff621673d",
"service_name": "messenger-api",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "7f43d8d88f960fff",
"status_code": "202",
"trace_id": "115550cd6d2c36ddf2bea96f48e89c6b"
},
"values": [
[
"1795252636588292864",
"http.request.complete"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 3571455,
"linesProcessedPerSecond": 18129,
"totalBytesProcessed": 18124,
"totalLinesProcessed": 92,
"execTime": 0.005075,
"queueTime": 0.000262,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 0,
"shards": 1,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 16192
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 1,
"totalChunksMatched": 1,
"totalBatches": 2,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 18124,
"headChunkLines": 92,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 16192,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 81728,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0
}
}
}
}
File diff suppressed because it is too large Load Diff
+191
View File
@@ -0,0 +1,191 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"attachment_id": "eb62cd3e-75a1-4dbe-8965-9e012b312282",
"attempt": "1",
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"duration_seconds": "0.42506639099974564",
"event": "job.complete",
"flags": "1",
"job_id": "e1b6a557-f9fa-462c-ac79-1ab71f0b35bf",
"job_type": "attachment.process.v1",
"observed_timestamp": "1795252637174010973",
"outcome": "success",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "4d9015b23ab54bde9d37384ddc4bf89b",
"service_name": "messenger-worker",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "c71f9d5977e9bd59",
"trace_id": "115550cd6d2c36ddf2bea96f48e89c6b"
},
"values": [
[
"1795252637173831168",
"job.complete"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 79386,
"linesProcessedPerSecond": 422,
"totalBytesProcessed": 376,
"totalLinesProcessed": 2,
"execTime": 0.004736,
"queueTime": 0.000244,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 0,
"shards": 1,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 352
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 1,
"totalChunksMatched": 1,
"totalBatches": 2,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 376,
"headChunkLines": 2,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 352,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 138740,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0
}
}
}
}
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
UTC: 2026-11-21T09:16:46Z
Command: C:\Users\masha\AppData\Local\Programs\Python\Python313\python.exe -X utf8 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
RESULT: PASS (exit 0) at 2026-11-21T09:16:46Z
+5
View File
@@ -0,0 +1,5 @@
UTC: 2026-11-21T09:16:45Z
Command: docker compose config --quiet
RESULT: PASS (exit 0) at 2026-11-21T09:16:46Z
+220
View File
@@ -0,0 +1,220 @@
Before public persistence — 2026-11-21T09:14:39Z
UTC: 2026-11-21T09:14:39Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:14:40Z
UTC: 2026-11-21T09:14:40Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:10:22.045070464Z finished=2026-11-21T09:10:21.647750535Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:10:18.318585259Z finished=2026-11-21T09:10:17.940277751Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:10:24.158928332Z finished=2026-11-21T09:10:23.907977242Z
/messenger-lab6-db-1 status=running started=2026-11-21T08:59:12.528963564Z finished=2026-11-21T08:58:31.826616128Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T08:51:52.621809468Z finished=0001-01-01T00:00:00Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:10:55.825987305Z finished=2026-11-21T09:10:55.547390235Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:09.569875679Z finished=2026-11-21T09:13:44.880718518Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T08:45:28.390651046Z finished=2026-11-21T08:45:27.109421727Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:13:45.19691868Z finished=2026-11-21T09:13:41.499885247Z
RESULT: PASS (exit 0) at 2026-11-21T09:14:40Z
After public persistence — 2026-11-21T09:15:30Z
UTC: 2026-11-21T09:15:30Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
UTC: 2026-11-21T09:15:31Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:15:18.227427331Z finished=2026-11-21T09:14:49.40226195Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
Before public failover — 2026-11-21T09:15:31Z
UTC: 2026-11-21T09:15:31Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
UTC: 2026-11-21T09:15:31Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:15:18.227427331Z finished=2026-11-21T09:14:49.40226195Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
After public failover, before API restoration — 2026-11-21T09:15:52Z
UTC: 2026-11-21T09:15:52Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:15:53Z
UTC: 2026-11-21T09:15:53Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=exited started=2026-11-21T09:15:18.227427331Z finished=2026-11-21T09:15:40.679293151Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:15:53Z
After API restoration — 2026-11-21T09:16:00Z
UTC: 2026-11-21T09:16:00Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:16:01Z
UTC: 2026-11-21T09:16:01Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:15:54.07308443Z finished=2026-11-21T09:15:40.679293151Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:16:01Z
+187
View File
@@ -0,0 +1,187 @@
{
"captured_at": "2026-11-21T09:17:47.509294Z",
"live_worker_capacity": 1.0,
"panels": 24,
"promql_checks": [
{
"panel": "Business API requests / second",
"query": "sum(rate(messenger_http_requests_total{service_name=\"messenger-api\",route!~\"/health/.*\"}[1m]))",
"series": 1
},
{
"panel": "Business API 5xx / all responses",
"query": "(sum(rate(messenger_http_requests_total{service_name=\"messenger-api\",route!~\"/health/.*\",status_class=\"5xx\"}[1m])) or vector(0)) / clamp_min(sum(rate(messenger_http_requests_total{service_name=\"messenger-api\",route!~\"/health/.*\"}[1m])), 1e-9)",
"series": 1
},
{
"panel": "API mean duration (seconds)",
"query": "sum(rate(messenger_http_duration_seconds_sum{service_name=\"messenger-api\",route!~\"/health/.*\"}[1m])) / clamp_min(sum(rate(messenger_http_duration_seconds_count{service_name=\"messenger-api\",route!~\"/health/.*\"}[1m])), 1e-9)",
"series": 1
},
{
"panel": "Worker attempt outcomes / second",
"query": "sum by (outcome) (rate(messenger_jobs_processed_total{service_name=\"messenger-worker\"}[1m]))",
"series": 3
},
{
"panel": "Worker mean attempt duration (seconds)",
"query": "sum(rate(messenger_jobs_duration_seconds_sum{service_name=\"messenger-worker\"}[1m])) / clamp_min(sum(rate(messenger_jobs_duration_seconds_count{service_name=\"messenger-worker\"}[1m])), 1e-9)",
"series": 1
},
{
"panel": "Worker completed attempts (counter)",
"query": "sum by (outcome) (messenger_jobs_processed_total{service_name=\"messenger-worker\"})",
"series": 3
},
{
"panel": "Structured application events (expand for trace_id / span_id / request_id)",
"query": "{service_name=~\"messenger-api|messenger-worker|messenger-publisher\"}",
"series": 1343
},
{
"panel": "API duration p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.5, sum by (le) (rate(messenger_http_duration_seconds_bucket{service_name=\"messenger-api\",route!~\"/health/.*\"}[1m])))",
"series": 1
},
{
"panel": "API duration p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.95, sum by (le) (rate(messenger_http_duration_seconds_bucket{service_name=\"messenger-api\",route!~\"/health/.*\"}[1m])))",
"series": 1
},
{
"panel": "API duration p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.99, sum by (le) (rate(messenger_http_duration_seconds_bucket{service_name=\"messenger-api\",route!~\"/health/.*\"}[1m])))",
"series": 1
},
{
"panel": "Worker duration p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.5, sum by (le) (rate(messenger_jobs_duration_seconds_bucket{service_name=\"messenger-worker\"}[1m])))",
"series": 1
},
{
"panel": "Worker duration p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.95, sum by (le) (rate(messenger_jobs_duration_seconds_bucket{service_name=\"messenger-worker\"}[1m])))",
"series": 1
},
{
"panel": "Worker duration p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.99, sum by (le) (rate(messenger_jobs_duration_seconds_bucket{service_name=\"messenger-worker\"}[1m])))",
"series": 1
},
{
"panel": "Durable unfinished jobs (count)",
"query": "max(messenger_queue_depth{service_name=\"messenger-publisher\"})",
"series": 1
},
{
"panel": "Oldest unfinished job / observer sample age (seconds)",
"query": "max(messenger_queue_oldest_age_seconds{service_name=\"messenger-publisher\"})",
"series": 1
},
{
"panel": "Oldest unfinished job / observer sample age (seconds)",
"query": "max(messenger_queue_sample_age_seconds{service_name=\"messenger-publisher\"})",
"series": 1
},
{
"panel": "DB pool used / capacity (connections)",
"query": "messenger_db_pool_used",
"series": 13
},
{
"panel": "DB pool used / capacity (connections)",
"query": "messenger_db_pool_capacity",
"series": 13
},
{
"panel": "DB acquisitions in progress (requests)",
"query": "messenger_db_pool_waiting",
"series": 13
},
{
"panel": "Worker saturation (busy / capacity)",
"query": "(sum(messenger_worker_busy{service_name=\"messenger-worker\"} and on(service_instance_id) (time() - messenger_worker_heartbeat_seconds{service_name=\"messenger-worker\"} < 15)) or vector(0)) / (sum(messenger_worker_capacity{service_name=\"messenger-worker\"} and on(service_instance_id) (time() - messenger_worker_heartbeat_seconds{service_name=\"messenger-worker\"} < 15)) or vector(0))",
"series": 1
},
{
"panel": "Worker busy / capacity (jobs)",
"query": "sum(messenger_worker_busy{service_name=\"messenger-worker\"} and on(service_instance_id) (time() - messenger_worker_heartbeat_seconds{service_name=\"messenger-worker\"} < 15)) or vector(0)",
"series": 1
},
{
"panel": "Worker busy / capacity (jobs)",
"query": "sum(messenger_worker_capacity{service_name=\"messenger-worker\"} and on(service_instance_id) (time() - messenger_worker_heartbeat_seconds{service_name=\"messenger-worker\"} < 15)) or vector(0)",
"series": 1
},
{
"panel": "Application CPU (cores)",
"query": "rate(messenger_process_cpu_seconds_total[1m])",
"series": 13
},
{
"panel": "Application resident RAM (bytes)",
"query": "messenger_process_memory_bytes",
"series": 13
},
{
"panel": "Acceptance to ready p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.5, sum by (le) (rate(messenger_attachment_time_to_ready_seconds_bucket{service_name=\"messenger-worker\"}[1m])))",
"series": 1
},
{
"panel": "Acceptance to ready p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.95, sum by (le) (rate(messenger_attachment_time_to_ready_seconds_bucket{service_name=\"messenger-worker\"}[1m])))",
"series": 1
},
{
"panel": "Acceptance to ready p50 / p95 / p99 (seconds)",
"query": "histogram_quantile(0.99, sum by (le) (rate(messenger_attachment_time_to_ready_seconds_bucket{service_name=\"messenger-worker\"}[1m])))",
"series": 1
},
{
"panel": "API availability SLI / SLO (5 minutes)",
"query": "1 - (sum(rate(messenger_http_requests_total{service_name=\"messenger-api\",route!~\"/health/.*\",status_class=\"5xx\"}[5m])) or vector(0)) / sum(rate(messenger_http_requests_total{service_name=\"messenger-api\",route!~\"/health/.*\"}[5m]))",
"series": 1
},
{
"panel": "API availability SLI / SLO (5 minutes)",
"query": "vector(0.99)",
"series": 1
},
{
"panel": "Ready within 60 seconds SLI / SLO (5 minutes)",
"query": "sum(rate(messenger_attachment_time_to_ready_seconds_bucket{service_name=\"messenger-worker\",le=\"60\"}[5m])) / sum(rate(messenger_attachment_time_to_ready_seconds_count{service_name=\"messenger-worker\"}[5m]))",
"series": 1
},
{
"panel": "Ready within 60 seconds SLI / SLO (5 minutes)",
"query": "vector(0.95)",
"series": 1
},
{
"panel": "Local alert state: pending / firing",
"query": "ALERTS{alertname=~\"MessengerHighErrorRate|MessengerQueueLag\"}",
"series": 0
},
{
"panel": "Collector queue occupancy (batches)",
"query": "otelcol_exporter_queue_size{exporter=~\"otlphttp/.*\"}",
"series": 2
},
{
"panel": "Collector queue occupancy (batches)",
"query": "otelcol_exporter_queue_capacity{exporter=~\"otlphttp/.*\"}",
"series": 2
},
{
"panel": "Collector failed export attempts / second",
"query": "rate(otelcol_exporter_send_failed_spans[1m])",
"series": 1
},
{
"panel": "Collector failed export attempts / second",
"query": "rate(otelcol_exporter_send_failed_log_records[1m])",
"series": 1
}
]
}
+19
View File
@@ -0,0 +1,19 @@
UTC: 2026-11-21T09:15:31Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u tests/resilience.py --mode failover --action-script scripts/stop-one.sh
Container messenger-lab6-tester-run-0af389d5dbc3 Creating
Container messenger-lab6-tester-run-0af389d5dbc3 Created
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 127, "failed_attempts": 0, "first_recovery_seconds": 4.189}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
RESULT: PASS (exit 0) at 2026-11-21T09:15:52Z
UTC: 2026-11-21T09:15:53Z
Command: docker compose --profile tools run --rm -T --no-deps tester sh scripts/start-api.sh
Container messenger-lab6-tester-run-b9e9496603b9 Creating
Container messenger-lab6-tester-run-b9e9496603b9 Created
started api container 81ebb23d65ec
running api replicas: 2
RESULT: PASS (exit 0) at 2026-11-21T09:16:00Z
+19
View File
@@ -0,0 +1,19 @@
UTC: 2026-11-21T09:09:53Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u student-tests/image_validation_unit.py
Container messenger-lab6-tester-run-56217a03ad55 Creating
Container messenger-lab6-tester-run-56217a03ad55 Created
test_adam7_pass_filter_boundaries (__main__.ImageValidationTests.test_adam7_pass_filter_boundaries) ... ok
test_crc_compressed_tail_and_pixel_bomb (__main__.ImageValidationTests.test_crc_compressed_tail_and_pixel_bomb) ... ok
test_critical_headers_and_chunk_order (__main__.ImageValidationTests.test_critical_headers_and_chunk_order) ... ok
test_filter_values_and_row_boundaries (__main__.ImageValidationTests.test_filter_values_and_row_boundaries) ... ok
test_jpeg_and_truncated_progressive_above_old_bypass_limit (__main__.ImageValidationTests.test_jpeg_and_truncated_progressive_above_old_bypass_limit) ... ok
test_palette_shape_and_transparency (__main__.ImageValidationTests.test_palette_shape_and_transparency) ... ok
test_valid_png_and_trailing_padding (__main__.ImageValidationTests.test_valid_png_and_trailing_padding) ... ok
----------------------------------------------------------------------
Ran 7 tests in 0.462s
OK
RESULT: PASS (exit 0) at 2026-11-21T09:09:55Z
+14
View File
@@ -0,0 +1,14 @@
UTC: 2026-11-21T09:09:55Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u student-tests/lab5_images.py
Container messenger-lab6-tester-run-d0860115a1da Creating
Container messenger-lab6-tester-run-d0860115a1da Created
PASS centered crop, three real variants, checksums, original bytes and ACL
PASS no upscaling and floor rounding for thumbnail/optimized
PASS transparent PNG composited onto white JPEG
PASS EXIF orientation applied to variants and metadata removed
PASS malformed PNG filter and truncated >16MP progressive JPEG rejected before 202
PASS invalid/MIME mismatch 415, >10MiB and >40M pixels 413, unsafe filenames 400
PASS: lab5 grade4 image checks
RESULT: PASS (exit 0) at 2026-11-21T09:10:05Z
+191
View File
@@ -0,0 +1,191 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "error",
"duration_seconds": "3.3880072909998944",
"event": "http.request.complete",
"flags": "1",
"method": "POST",
"observed_timestamp": "1795251516034833239",
"outcome": "error",
"request_id": "f44f1b74-f3f1-4cbe-8b44-510cfbe21ebd",
"route": "/api/v1/users",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "0d13c5814dab",
"service_name": "messenger-api",
"service_version": "1.6.0",
"severity_number": "17",
"severity_text": "ERROR",
"span_id": "6389f79f96d8c840",
"status_code": "503",
"trace_id": "819eab187881e315742feb7f2ebb70ff"
},
"values": [
[
"1795251516034664192",
"http.request.complete"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 4455963,
"linesProcessedPerSecond": 22619,
"totalBytesProcessed": 70329,
"totalLinesProcessed": 357,
"execTime": 0.015783,
"queueTime": 0.002886,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 2,
"shards": 2,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 62832
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 2,
"totalChunksMatched": 2,
"totalBatches": 3,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 70329,
"headChunkLines": 357,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 62832,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 584920,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0
}
}
}
}
+107
View File
@@ -0,0 +1,107 @@
{
"batches": [
{
"resource": {
"attributes": [
{
"key": "service.version",
"value": {
"stringValue": "1.6.0"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "0d13c5814dab"
}
},
{
"key": "deployment.environment.name",
"value": {
"stringValue": "lab"
}
},
{
"key": "service.name",
"value": {
"stringValue": "messenger-api"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "messenger",
"version": "1.6.0"
},
"spans": [
{
"traceId": "gZ6rGHiB4xV0L+t/Lrtw/w==",
"spanId": "z5kgvNQvytc=",
"parentSpanId": "Y4n3n5bYyEA=",
"name": "db.acquire",
"kind": "SPAN_KIND_INTERNAL",
"startTimeUnixNano": "1795251513033234050",
"endTimeUnixNano": "1795251516033386648",
"attributes": [
{
"key": "db.system",
"value": {
"stringValue": "postgresql"
}
},
{
"key": "exception_type",
"value": {
"stringValue": "TimeoutError"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
},
{
"traceId": "gZ6rGHiB4xV0L+t/Lrtw/w==",
"spanId": "Y4n3n5bYyEA=",
"name": "POST /api/v1/users",
"kind": "SPAN_KIND_SERVER",
"startTimeUnixNano": "1795251512647658833",
"endTimeUnixNano": "1795251516034910448",
"attributes": [
{
"key": "method",
"value": {
"stringValue": "POST"
}
},
{
"key": "route",
"value": {
"stringValue": "/api/v1/users"
}
},
{
"key": "status_class",
"value": {
"stringValue": "5xx"
}
},
{
"key": "http.response.status_code",
"value": {
"intValue": "503"
}
}
],
"status": {
"code": "STATUS_CODE_ERROR"
}
}
]
}
]
}
]
}
+443
View File
@@ -0,0 +1,443 @@
UTC: 2026-11-21T09:09:39Z
Command: C:\Users\masha\AppData\Local\Programs\Python\Python313\python.exe -X utf8 scripts/test_lab5.py
UTC: 2026-11-21T09:09:40Z
Command: docker compose --profile tools ps --status running --services
api
broker
db
grafana
lb
loki
otel-collector
prometheus
publisher
s3
tempo
valkey
worker
RESULT: PASS (exit 0) at 2026-11-21T09:09:40Z
UTC: 2026-11-21T09:09:40Z
Command: docker compose --profile tools ps -a
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
messenger-lab6-api-1 messenger-lab6-api:dev "python -m app.server" api 18 minutes ago Up 17 minutes (healthy) 8080/tcp
messenger-lab6-api-2 messenger-lab6-api:dev "python -m app.server" api 18 minutes ago Up 17 minutes (healthy) 8080/tcp
messenger-lab6-broker-1 rabbitmq:3.13.7-alpine "/bin/sh -ec 'export…" broker 34 minutes ago Up 24 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
messenger-lab6-db-1 postgres:16.4-alpine "docker-entrypoint.s…" db 34 minutes ago Up 10 minutes (healthy) 5432/tcp
messenger-lab6-grafana-1 grafana/grafana:11.2.2 "/run.sh" grafana 19 minutes ago Up 18 minutes 127.0.0.1:3000->3000/tcp
messenger-lab6-lb-1 haproxy:3.0.11-alpine "docker-entrypoint.s…" lb 17 minutes ago Up 17 minutes (healthy) 127.0.0.1:8086->8080/tcp, 127.0.0.1:8406->8404/tcp
messenger-lab6-loki-1 grafana/loki:3.2.1 "/usr/bin/loki -conf…" loki 19 minutes ago Up 8 minutes 127.0.0.1:3100->3100/tcp
messenger-lab6-migrate-1 messenger-lab6-api:dev "python scripts/migr…" migrate 18 minutes ago Exited (0) 16 minutes ago
messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.111.0 "/otelcol-contrib --…" otel-collector 20 minutes ago Up 20 minutes 4317/tcp, 55678-55679/tcp
messenger-lab6-prometheus-1 prom/prometheus:v2.55.0 "/bin/prometheus --c…" prometheus 19 minutes ago Up 18 minutes 127.0.0.1:9090->9090/tcp
messenger-lab6-publisher-1 messenger-lab6-api:dev "python -m app.jobs" publisher 18 minutes ago Up 17 minutes 8080/tcp
messenger-lab6-s3-1 chrislusf/seaweedfs:3.97 "/bin/sh /opt/lab/st…" s3 34 minutes ago Up 13 minutes (healthy) 7333/tcp, 8080/tcp, 8333/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp
messenger-lab6-s3-init-1 messenger-lab6-api:dev "python scripts/s3_b…" s3-init 18 minutes ago Exited (0) 16 minutes ago
messenger-lab6-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo 3 minutes ago Up 3 minutes 127.0.0.1:3200->3200/tcp
messenger-lab6-valkey-1 valkey/valkey:8.0.1-alpine "docker-entrypoint.s…" valkey 34 minutes ago Up 24 minutes (healthy) 6379/tcp
messenger-lab6-worker-1 messenger-lab6-api:dev "python -m app.worker" worker 18 minutes ago Up 5 minutes 8080/tcp
RESULT: PASS (exit 0) at 2026-11-21T09:09:40Z
UTC: 2026-11-21T09:09:40Z
Command: docker compose --profile tools build tester
Image messenger-lab6-tester Building
#1 [internal] load local bake definitions
#1 reading from stdin 587B 0.0s done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile.tester
#2 transferring dockerfile: 405B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.12.11-alpine3.22
#3 DONE 0.2s
#4 [internal] load metadata for docker.io/library/docker:28.5.1-cli
#4 DONE 0.2s
#5 [internal] load .dockerignore
#5 transferring context: 286B done
#5 DONE 0.0s
#6 [stage-1 1/5] FROM docker.io/library/python:3.12.11-alpine3.22@sha256:efcdfa6a6b2fd2afb9c7dfa9a5b288a6f68338b5cfdebe6b637d986067d85757
#6 resolve docker.io/library/python:3.12.11-alpine3.22@sha256:efcdfa6a6b2fd2afb9c7dfa9a5b288a6f68338b5cfdebe6b637d986067d85757 0.0s done
#6 DONE 0.1s
#7 [docker-cli 1/1] FROM docker.io/library/docker:28.5.1-cli@sha256:9190b0613792e658a7783cf14b2d5ace5941bb68ede7276922ea36ee457d76ad
#7 resolve docker.io/library/docker:28.5.1-cli@sha256:9190b0613792e658a7783cf14b2d5ace5941bb68ede7276922ea36ee457d76ad 0.0s done
#7 DONE 0.1s
#8 [stage-1 2/5] RUN apk add --no-cache make
#8 CACHED
#9 [stage-1 3/5] RUN pip install --no-cache-dir Pillow==11.0.0
#9 CACHED
#10 [stage-1 4/5] COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
#10 CACHED
#11 [stage-1 5/5] WORKDIR /work
#11 CACHED
#12 exporting to image
#12 exporting layers done
#12 exporting manifest sha256:1c93bba11e9ded8b819bbcadafd9217f8b6b4fc5301deeca1e720c49a45f1b2e done
#12 exporting config sha256:9ad2daad56b9cfccc6c03e7be0468faf51994e1604e86b502077a03f28844325 done
#12 exporting attestation manifest sha256:96fa2816d4a538ed8e6e3ea5c702033990470ee27e842b91c5f2979f0304e95a 0.1s done
#12 exporting manifest list sha256:3e586fe0bf4aeb3814ad182a780c6173a9e252da1c33e7e61f20187228c8b23f 0.0s done
#12 naming to docker.io/library/messenger-lab6-tester:latest
#12 naming to docker.io/library/messenger-lab6-tester:latest done
#12 unpacking to docker.io/library/messenger-lab6-tester:latest 0.0s done
#12 DONE 0.2s
#13 resolving provenance for metadata file
#13 DONE 0.0s
Image messenger-lab6-tester Built
RESULT: PASS (exit 0) at 2026-11-21T09:09:42Z
UTC: 2026-11-21T09:09:42Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u scripts/check_contract.py
Container messenger-lab6-tester-run-e5ea96fea8b0 Creating
Container messenger-lab6-tester-run-e5ea96fea8b0 Created
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
RESULT: PASS (exit 0) at 2026-11-21T09:09:46Z
UTC: 2026-11-21T09:09:46Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u tests/smoke.py
Container messenger-lab6-tester-run-42a477b98467 Creating
Container messenger-lab6-tester-run-42a477b98467 Created
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
RESULT: PASS (exit 0) at 2026-11-21T09:09:53Z
UTC: 2026-11-21T09:09:53Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u student-tests/image_validation_unit.py
Container messenger-lab6-tester-run-56217a03ad55 Creating
Container messenger-lab6-tester-run-56217a03ad55 Created
test_adam7_pass_filter_boundaries (__main__.ImageValidationTests.test_adam7_pass_filter_boundaries) ... ok
test_crc_compressed_tail_and_pixel_bomb (__main__.ImageValidationTests.test_crc_compressed_tail_and_pixel_bomb) ... ok
test_critical_headers_and_chunk_order (__main__.ImageValidationTests.test_critical_headers_and_chunk_order) ... ok
test_filter_values_and_row_boundaries (__main__.ImageValidationTests.test_filter_values_and_row_boundaries) ... ok
test_jpeg_and_truncated_progressive_above_old_bypass_limit (__main__.ImageValidationTests.test_jpeg_and_truncated_progressive_above_old_bypass_limit) ... ok
test_palette_shape_and_transparency (__main__.ImageValidationTests.test_palette_shape_and_transparency) ... ok
test_valid_png_and_trailing_padding (__main__.ImageValidationTests.test_valid_png_and_trailing_padding) ... ok
----------------------------------------------------------------------
Ran 7 tests in 0.462s
OK
RESULT: PASS (exit 0) at 2026-11-21T09:09:55Z
UTC: 2026-11-21T09:09:55Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u student-tests/lab5_images.py
Container messenger-lab6-tester-run-d0860115a1da Creating
Container messenger-lab6-tester-run-d0860115a1da Created
PASS centered crop, three real variants, checksums, original bytes and ACL
PASS no upscaling and floor rounding for thumbnail/optimized
PASS transparent PNG composited onto white JPEG
PASS EXIF orientation applied to variants and metadata removed
PASS malformed PNG filter and truncated >16MP progressive JPEG rejected before 202
PASS invalid/MIME mismatch 415, >10MiB and >40M pixels 413, unsafe filenames 400
PASS: lab5 grade4 image checks
RESULT: PASS (exit 0) at 2026-11-21T09:10:05Z
UTC: 2026-11-21T09:10:05Z
Command: docker compose --profile tools exec -T worker python -u - < student-tests/lab5_limits.py
PASS memory: real 16MP image decoder stopped at RLIMIT_AS=48MiB
PASS timeout: decoder killed and reaped; parent continues
PASS: lab5 decoder resource limits
RESULT: PASS (exit 0) at 2026-11-21T09:10:08Z
UTC: 2026-11-21T09:10:08Z
Command: docker compose --profile tools run --rm -T --no-deps tester chmod +x scripts/restart.sh scripts/stop-one.sh
Container messenger-lab6-tester-run-100a83886eb9 Creating
Container messenger-lab6-tester-run-100a83886eb9 Created
RESULT: PASS (exit 0) at 2026-11-21T09:10:09Z
UTC: 2026-11-21T09:10:09Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u student-tests/lab5_recovery.py
Container messenger-lab6-tester-run-6606f20c462f Creating
Container messenger-lab6-tester-run-6606f20c462f Created
PASS persistence: attachment=9d7de7ac-016a-49d7-a0f1-9b880cee3c83 same session/ID after API+broker restart; volumes preserved; queued content409; messages201; ready
PASS crash_after_commit_before_publish: attachment=af40fc00-4da4-4fe6-80b3-27a8879d7661 hits=1 recovered_seconds=4.0; same original; three variants
PASS crash_after_objects_before_commit: attachment=30ee3a05-086c-45fd-bbf1-78df42514413 hits=1 recovered_seconds=118.6; same original; three variants
PASS crash_after_commit_before_ack: attachment=4aa3f19d-638f-492a-b17e-ccb103f1cae9 hits=1 recovered_seconds=0.4; same original; three variants
PASS failed/replay: attachment=00b66546-aa21-4115-aca1-13fbc7f47f2c; permanent error fails once; failed registry; content/link409; audited replay preserves job_id; ready duplicate no-op
PASS transient S3 outage: attachment=242a36c2-40f8-440f-899b-228164e5ddc4; attempts=5; durable retries, retry_exhausted, explicit replay after recovery
PASS: lab5 grade4 recovery checks (all)
RESULT: PASS (exit 0) at 2026-11-21T09:14:39Z
UTC: 2026-11-21T09:14:39Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:14:40Z
UTC: 2026-11-21T09:14:40Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:10:22.045070464Z finished=2026-11-21T09:10:21.647750535Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:10:18.318585259Z finished=2026-11-21T09:10:17.940277751Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:10:24.158928332Z finished=2026-11-21T09:10:23.907977242Z
/messenger-lab6-db-1 status=running started=2026-11-21T08:59:12.528963564Z finished=2026-11-21T08:58:31.826616128Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T08:51:52.621809468Z finished=0001-01-01T00:00:00Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:10:55.825987305Z finished=2026-11-21T09:10:55.547390235Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:09.569875679Z finished=2026-11-21T09:13:44.880718518Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T08:45:28.390651046Z finished=2026-11-21T08:45:27.109421727Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:13:45.19691868Z finished=2026-11-21T09:13:41.499885247Z
RESULT: PASS (exit 0) at 2026-11-21T09:14:40Z
UTC: 2026-11-21T09:14:40Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u tests/resilience.py --mode persistence --action-script scripts/restart.sh
Container messenger-lab6-tester-run-e3bdaf9250f1 Creating
Container messenger-lab6-tester-run-e3bdaf9250f1 Created
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
RESULT: PASS (exit 0) at 2026-11-21T09:15:30Z
UTC: 2026-11-21T09:15:30Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
UTC: 2026-11-21T09:15:31Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:15:18.227427331Z finished=2026-11-21T09:14:49.40226195Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
UTC: 2026-11-21T09:15:31Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
UTC: 2026-11-21T09:15:31Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:15:18.227427331Z finished=2026-11-21T09:14:49.40226195Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:15:31Z
UTC: 2026-11-21T09:15:31Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u tests/resilience.py --mode failover --action-script scripts/stop-one.sh
Container messenger-lab6-tester-run-0af389d5dbc3 Creating
Container messenger-lab6-tester-run-0af389d5dbc3 Created
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 127, "failed_attempts": 0, "first_recovery_seconds": 4.189}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
RESULT: PASS (exit 0) at 2026-11-21T09:15:52Z
UTC: 2026-11-21T09:15:52Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:15:53Z
UTC: 2026-11-21T09:15:53Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=exited started=2026-11-21T09:15:18.227427331Z finished=2026-11-21T09:15:40.679293151Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:15:53Z
UTC: 2026-11-21T09:15:53Z
Command: docker compose --profile tools run --rm -T --no-deps tester sh scripts/start-api.sh
Container messenger-lab6-tester-run-b9e9496603b9 Creating
Container messenger-lab6-tester-run-b9e9496603b9 Created
started api container 81ebb23d65ec
running api replicas: 2
RESULT: PASS (exit 0) at 2026-11-21T09:16:00Z
UTC: 2026-11-21T09:16:00Z
Command: docker compose --profile tools ps -a -q
81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85
0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8
d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d
0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084
b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026
5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4
278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300
68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf
93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c
13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b
cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb
a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612
00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007
fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05
837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053
27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
RESULT: PASS (exit 0) at 2026-11-21T09:16:01Z
UTC: 2026-11-21T09:16:01Z
Command: docker inspect --format "{{.Name}} status={{.State.Status}} started={{.State.StartedAt}} finished={{.State.FinishedAt}}" 81ebb23d65ec0d8f5eb9ae2d4da96e25e039c243048d325762805276860b5a85 0d13c5814dabaec1e9c2fab5b0199548668d44d3545aea4275250859d25b7dd8 d7b60f9558f079a28b76494c527c9e9341263729f5a0118ac6db1d1d388be54d 0cfc9b11ef3caed56dd7e4b22337e7c92163cc447dba971c29c277f07790a084 b40de06dc1d77aa83f1f0ca68bbc1dfe9fe337be16be9f3340993d781060b026 5448a293692bfe7b4297906534f74dc8e65793746d349d6bf7e674766ef943e4 278dcc4f37a2344d41b2a924fa14e9f8282a3671719c516121850092b741f300 68d796ac925f0ca1f88927a1a31486f228248d80c7a38966b22c14b48a5d07bf 93a2b85ca3d137ee5c98fe69c918a1496988c811eef4c8563d7018a128b1546c 13523d87d42a41c573081eede09a9e8afe9378e030c850214b2f063f7a9abe5b cdc87d3378f2c06dba602760661e60141929e2fb1b7248d59769a57987f2b2bb a30fa6baae40e97264da0406c72178f0d2e5e194d8c7dbb916b1bf9f69ff0612 00e5826b0d93e9be4fd82cd2210d4589ecd1d27368d80e2f7a609e9920604007 fc5561671768ddd4b9a405d5be8dbc5f0d19335520b95218d4a2f519ef590a05 837eda8499aa16593a8c42b89e87fa1b5d834d240f8d5247a7c49027d015a053 27b1583583d52b794e554a5df74bebd61c4118bf3e2de5aef38295ba8bc780dd
/messenger-lab6-api-1 status=running started=2026-11-21T09:15:54.07308443Z finished=2026-11-21T09:15:40.679293151Z
/messenger-lab6-api-2 status=running started=2026-11-21T09:15:17.875504619Z finished=2026-11-21T09:14:49.181726236Z
/messenger-lab6-broker-1 status=running started=2026-11-21T09:14:51.311241575Z finished=2026-11-21T09:14:49.824073591Z
/messenger-lab6-db-1 status=running started=2026-11-21T09:14:50.494933266Z finished=2026-11-21T09:14:49.814681938Z
/messenger-lab6-grafana-1 status=running started=2026-11-21T08:51:11.412805651Z finished=2026-11-21T08:51:10.520984964Z
/messenger-lab6-lb-1 status=running started=2026-11-21T09:15:24.826206264Z finished=2026-11-21T09:14:45.274514498Z
/messenger-lab6-loki-1 status=running started=2026-11-21T09:01:34.707920007Z finished=2026-11-21T09:00:28.644856083Z
/messenger-lab6-migrate-1 status=exited started=2026-11-21T08:52:49.834748909Z finished=2026-11-21T08:52:50.79798573Z
/messenger-lab6-otel-collector-1 status=running started=2026-11-21T08:49:03.407564143Z finished=0001-01-01T00:00:00Z
/messenger-lab6-prometheus-1 status=running started=2026-11-21T08:51:11.311294483Z finished=2026-11-21T08:51:10.512998838Z
/messenger-lab6-publisher-1 status=running started=2026-11-21T09:15:17.332690697Z finished=2026-11-21T09:14:45.830823803Z
/messenger-lab6-s3-1 status=running started=2026-11-21T09:14:51.024302658Z finished=2026-11-21T09:14:49.817292594Z
/messenger-lab6-s3-init-1 status=exited started=2026-11-21T08:53:15.109417522Z finished=2026-11-21T08:53:17.005092363Z
/messenger-lab6-tempo-1 status=running started=2026-11-21T09:06:37.030642992Z finished=0001-01-01T00:00:00Z
/messenger-lab6-valkey-1 status=running started=2026-11-21T09:14:50.777977548Z finished=2026-11-21T09:14:49.803932669Z
/messenger-lab6-worker-1 status=running started=2026-11-21T09:15:17.592030927Z finished=2026-11-21T09:14:45.554953067Z
RESULT: PASS (exit 0) at 2026-11-21T09:16:01Z
UTC: 2026-11-21T09:16:01Z
Command: docker compose --profile tools ps -a
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
messenger-lab6-api-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.server" api 24 minutes ago Up 7 seconds (healthy) 8080/tcp
messenger-lab6-api-2 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.server" api 24 minutes ago Up 43 seconds (healthy) 8080/tcp
messenger-lab6-broker-1 rabbitmq:3.13.7-alpine "/bin/sh -ec 'export…" broker 40 minutes ago Up About a minute (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
messenger-lab6-db-1 postgres:16.4-alpine "docker-entrypoint.s…" db 40 minutes ago Up About a minute (healthy) 5432/tcp
messenger-lab6-grafana-1 grafana/grafana:11.2.2 "/run.sh" grafana 25 minutes ago Up 24 minutes 127.0.0.1:3000->3000/tcp
messenger-lab6-lb-1 haproxy:3.0.11-alpine "docker-entrypoint.s…" lb 24 minutes ago Up 36 seconds (healthy) 127.0.0.1:8086->8080/tcp, 127.0.0.1:8406->8404/tcp
messenger-lab6-loki-1 grafana/loki:3.2.1 "/usr/bin/loki -conf…" loki 25 minutes ago Up 14 minutes 127.0.0.1:3100->3100/tcp
messenger-lab6-migrate-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python scripts/migr…" migrate 24 minutes ago Exited (0) 23 minutes ago
messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.111.0 "/otelcol-contrib --…" otel-collector 27 minutes ago Up 26 minutes 4317/tcp, 55678-55679/tcp
messenger-lab6-prometheus-1 prom/prometheus:v2.55.0 "/bin/prometheus --c…" prometheus 25 minutes ago Up 24 minutes 127.0.0.1:9090->9090/tcp
messenger-lab6-publisher-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.jobs" publisher 24 minutes ago Up 44 seconds 8080/tcp
messenger-lab6-s3-1 chrislusf/seaweedfs:3.97 "/bin/sh /opt/lab/st…" s3 40 minutes ago Up About a minute (healthy) 7333/tcp, 8080/tcp, 8333/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp
messenger-lab6-s3-init-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python scripts/s3_b…" s3-init 24 minutes ago Exited (0) 22 minutes ago
messenger-lab6-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo 9 minutes ago Up 9 minutes 127.0.0.1:3200->3200/tcp
messenger-lab6-valkey-1 valkey/valkey:8.0.1-alpine "docker-entrypoint.s…" valkey 40 minutes ago Up About a minute (healthy) 6379/tcp
messenger-lab6-worker-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.worker" worker 24 minutes ago Up 44 seconds 8080/tcp
RESULT: PASS (exit 0) at 2026-11-21T09:16:01Z
PASS: lab5 full checks. UTF-8 logs: C:\Users\masha\WebstormProjects\mtusi2026lab6\evidence
RESULT: PASS (exit 0) at 2026-11-21T09:16:01Z
+8
View File
@@ -0,0 +1,8 @@
UTC: 2026-11-21T09:10:05Z
Command: docker compose --profile tools exec -T worker python -u - < student-tests/lab5_limits.py
PASS memory: real 16MP image decoder stopped at RLIMIT_AS=48MiB
PASS timeout: decoder killed and reaped; parent continues
PASS: lab5 decoder resource limits
RESULT: PASS (exit 0) at 2026-11-21T09:10:08Z
+562
View File
@@ -0,0 +1,562 @@
{
"start": "2026-11-21T08:51:58Z",
"end": "2026-11-21T08:52:21Z",
"queries": {
"rss_bytes": "messenger_process_memory_bytes",
"cpu_cores": "rate(messenger_process_cpu_seconds_total[15s])"
},
"results": {
"rss_bytes": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "0d13c5814dab",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "0d13c5814dab",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"120827904"
],
[
1795251123,
"121270272"
],
[
1795251128,
"122515456"
],
[
1795251133,
"125259776"
],
[
1795251138,
"127827968"
]
]
},
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "0fa6e7066e3145a993d3264494361be3",
"exported_job": "messenger-worker",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "0fa6e7066e3145a993d3264494361be3",
"service_name": "messenger-worker",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"89513984"
],
[
1795251123,
"89513984"
],
[
1795251128,
"89513984"
],
[
1795251133,
"89513984"
],
[
1795251138,
"89513984"
]
]
},
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "551e5017a02c4426af0773950c83c10e",
"exported_job": "messenger-worker",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "551e5017a02c4426af0773950c83c10e",
"service_name": "messenger-worker",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"88707072"
],
[
1795251123,
"88707072"
],
[
1795251128,
"88707072"
],
[
1795251133,
"88707072"
],
[
1795251138,
"88707072"
]
]
},
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "6cacaff48df9",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "6cacaff48df9",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"122683392"
],
[
1795251123,
"122683392"
],
[
1795251128,
"122683392"
],
[
1795251133,
"122683392"
],
[
1795251138,
"122683392"
]
]
},
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "81ebb23d65ec",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "81ebb23d65ec",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"120791040"
],
[
1795251123,
"121085952"
],
[
1795251128,
"122593280"
],
[
1795251133,
"125325312"
],
[
1795251138,
"128040960"
]
]
},
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "a068b747445b44439e7e1b7bc72675c2",
"exported_job": "messenger-publisher",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "a068b747445b44439e7e1b7bc72675c2",
"service_name": "messenger-publisher",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"88813568"
],
[
1795251123,
"88813568"
],
[
1795251128,
"88813568"
],
[
1795251133,
"88813568"
],
[
1795251138,
"88813568"
]
]
},
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "da2c8073a2144ecc9965ea4553926bf3",
"exported_job": "messenger-publisher",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "da2c8073a2144ecc9965ea4553926bf3",
"service_name": "messenger-publisher",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"89305088"
],
[
1795251123,
"89305088"
],
[
1795251128,
"89305088"
],
[
1795251133,
"89305088"
],
[
1795251138,
"89305088"
]
]
},
{
"metric": {
"__name__": "messenger_process_memory_bytes",
"deployment_environment_name": "lab",
"exported_instance": "e16c50966c56",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "e16c50966c56",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"123514880"
],
[
1795251123,
"123514880"
],
[
1795251128,
"123514880"
],
[
1795251133,
"123514880"
],
[
1795251138,
"123514880"
]
]
}
]
}
},
"cpu_cores": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "0d13c5814dab",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "0d13c5814dab",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251123,
"0.022415557507320008"
],
[
1795251128,
"0.17908626842684267"
],
[
1795251133,
"0.3572547659765976"
],
[
1795251138,
"0.3890083826"
]
]
},
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "0fa6e7066e3145a993d3264494361be3",
"exported_job": "messenger-worker",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "0fa6e7066e3145a993d3264494361be3",
"service_name": "messenger-worker",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"0"
],
[
1795251123,
"0"
],
[
1795251128,
"0"
],
[
1795251133,
"0"
],
[
1795251138,
"0"
]
]
},
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "551e5017a02c4426af0773950c83c10e",
"exported_job": "messenger-worker",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "551e5017a02c4426af0773950c83c10e",
"service_name": "messenger-worker",
"service_version": "1.6.0"
},
"values": [
[
1795251123,
"0.0005782936565199904"
],
[
1795251128,
"0.0007851155115511435"
],
[
1795251133,
"0.0005319559955995547"
],
[
1795251138,
"0.0004686850999999992"
]
]
},
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "6cacaff48df9",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "6cacaff48df9",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"0"
],
[
1795251123,
"0"
],
[
1795251128,
"0"
],
[
1795251133,
"0"
],
[
1795251138,
"0"
]
]
},
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "81ebb23d65ec",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "81ebb23d65ec",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251123,
"0.038017601540733366"
],
[
1795251128,
"0.17548991699169916"
],
[
1795251133,
"0.34144971107110705"
],
[
1795251138,
"0.3803775972000001"
]
]
},
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "a068b747445b44439e7e1b7bc72675c2",
"exported_job": "messenger-publisher",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "a068b747445b44439e7e1b7bc72675c2",
"service_name": "messenger-publisher",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"0"
],
[
1795251123,
"0"
],
[
1795251128,
"0"
],
[
1795251133,
"0"
],
[
1795251138,
"0"
]
]
},
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "da2c8073a2144ecc9965ea4553926bf3",
"exported_job": "messenger-publisher",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "da2c8073a2144ecc9965ea4553926bf3",
"service_name": "messenger-publisher",
"service_version": "1.6.0"
},
"values": [
[
1795251123,
"0.01116402495005333"
],
[
1795251128,
"0.020074461846184624"
],
[
1795251133,
"0.021264563956395647"
],
[
1795251138,
"0.021109743999999986"
]
]
},
{
"metric": {
"deployment_environment_name": "lab",
"exported_instance": "e16c50966c56",
"exported_job": "messenger-api",
"instance": "otel-collector:8889",
"job": "messenger",
"service_instance_id": "e16c50966c56",
"service_name": "messenger-api",
"service_version": "1.6.0"
},
"values": [
[
1795251118,
"0"
],
[
1795251123,
"0"
],
[
1795251128,
"0"
],
[
1795251133,
"0"
],
[
1795251138,
"0"
]
]
}
]
}
}
}
}
+17
View File
@@ -0,0 +1,17 @@
{
"lab": 6,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 20.0,
"elapsed_seconds": 20.27,
"concurrency": 4,
"successful_requests": 1645,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 81.154,
"successful_latency_ms": {
"p50": 38.796,
"p95": 114.354,
"p99": 194.742
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+22
View File
@@ -0,0 +1,22 @@
UTC: 2026-11-21T08:51:58Z
Command: C:\Users\masha\AppData\Local\Programs\Python\Python313\python.exe -X utf8 tests/load.py --base-url http://localhost:8086 --duration 20 --concurrency 4 --output evidence/load-summary.json
{
"lab": 6,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 20.0,
"elapsed_seconds": 20.27,
"concurrency": 4,
"successful_requests": 1645,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 81.154,
"successful_latency_ms": {
"p50": 38.796,
"p95": 114.354,
"p99": 194.742
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
RESULT: PASS (exit 0) at 2026-11-21T08:52:21Z
+11
View File
@@ -0,0 +1,11 @@
UTC: 2026-11-21T09:16:46Z
Command: docker compose --profile tools run --rm -T --no-deps tester make check test
Container messenger-lab6-tester-run-f02cd878c6ba Creating
Container messenger-lab6-tester-run-f02cd878c6ba Created
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python3 tests/smoke.py --base-url "http://lb:8080"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
RESULT: PASS (exit 0) at 2026-11-21T09:16:55Z
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
UTC: 2026-11-21T09:16:58Z
Command: C:\Users\masha\AppData\Local\Programs\Python\Python313\python.exe -X utf8 scripts/observe_lab6.py --baseline
PASS: real API/worker logs, traces and metrics; evidence/observability-baseline.json
RESULT: PASS (exit 0) at 2026-11-21T09:17:18Z
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
UTC: 2026-11-21T08:58:20Z
Command: C:\Users\masha\AppData\Local\Programs\Python\Python313\python.exe -X utf8 scripts/observe_lab6.py --incidents
PASS: worker stopped
PASS: PostgreSQL unavailable
PASS: Tempo and Loki unavailable
RESULT: PASS (exit 0) at 2026-11-21T09:02:41Z
+26
View File
@@ -0,0 +1,26 @@
{
"scenario": "S3 unavailable during first attempt, then restored",
"attachment_id": "8da6897d-7ad0-4a47-92a1-63e8820c6fb3",
"request_id": "observe-927e3831c3d241ac80d3d43391ad1ff4",
"api_trace_id": "94af84b9ec1663416ac05526995fbd91",
"accepted_at": "2026-11-21T08:56:07.085875Z",
"worker_trace_id": "94af84b9ec1663416ac05526995fbd91",
"job_id": "c1561046-eb77-42b6-a915-e8f6e4c0a1bc",
"worker_attempts": [
"1",
"2",
"2",
"3"
],
"same_trace": true,
"correlated_at": "2026-11-21T08:58:20.029926Z",
"content": {
"attachment_id": "8da6897d-7ad0-4a47-92a1-63e8820c6fb3",
"original_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"original_bytes": 111817,
"thumbnail_size": [
256,
160
]
}
}
+6
View File
@@ -0,0 +1,6 @@
UTC: 2026-11-21T08:56:05Z
Command: C:\Users\masha\AppData\Local\Programs\Python\Python313\python.exe -X utf8 scripts/observe_lab6.py --chain-with-retry
PASS: propagated upload/publish/consume/S3/DB trace including retry
RESULT: PASS (exit 0) at 2026-11-21T08:58:20Z
+15
View File
@@ -0,0 +1,15 @@
UTC: 2026-11-21T09:16:55Z
Command: docker compose exec -T api python - < student-tests/observability_unit.py
test_http_route_template_and_request_trace_log_correlation_without_secrets (__main__.ObservabilityTests.test_http_route_template_and_request_trace_log_correlation_without_secrets) ... ok
test_missing_or_invalid_context_starts_new_root_even_inside_span (__main__.ObservabilityTests.test_missing_or_invalid_context_starts_new_root_even_inside_span) ... ok
test_unknown_route_and_exception_message_do_not_escape_into_telemetry (__main__.ObservabilityTests.test_unknown_route_and_exception_message_do_not_escape_into_telemetry) ... ok
test_unsampled_trace_flags_and_tracestate_survive (__main__.ObservabilityTests.test_unsampled_trace_flags_and_tracestate_survive) ... ok
test_w3c_parent_child_and_durable_retry_preserve_trace (__main__.ObservabilityTests.test_w3c_parent_child_and_durable_retry_preserve_trace) ... ok
----------------------------------------------------------------------
Ran 5 tests in 0.694s
OK
RESULT: PASS (exit 0) at 2026-11-21T09:16:58Z
+9
View File
@@ -0,0 +1,9 @@
UTC: 2026-11-21T09:14:40Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u tests/resilience.py --mode persistence --action-script scripts/restart.sh
Container messenger-lab6-tester-run-e3bdaf9250f1 Creating
Container messenger-lab6-tester-run-e3bdaf9250f1 Created
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
RESULT: PASS (exit 0) at 2026-11-21T09:15:30Z
+14
View File
@@ -0,0 +1,14 @@
UTC: 2026-11-21T09:10:09Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u student-tests/lab5_recovery.py
Container messenger-lab6-tester-run-6606f20c462f Creating
Container messenger-lab6-tester-run-6606f20c462f Created
PASS persistence: attachment=9d7de7ac-016a-49d7-a0f1-9b880cee3c83 same session/ID after API+broker restart; volumes preserved; queued content409; messages201; ready
PASS crash_after_commit_before_publish: attachment=af40fc00-4da4-4fe6-80b3-27a8879d7661 hits=1 recovered_seconds=4.0; same original; three variants
PASS crash_after_objects_before_commit: attachment=30ee3a05-086c-45fd-bbf1-78df42514413 hits=1 recovered_seconds=118.6; same original; three variants
PASS crash_after_commit_before_ack: attachment=4aa3f19d-638f-492a-b17e-ccb103f1cae9 hits=1 recovered_seconds=0.4; same original; three variants
PASS failed/replay: attachment=00b66546-aa21-4115-aca1-13fbc7f47f2c; permanent error fails once; failed registry; content/link409; audited replay preserves job_id; ready duplicate no-op
PASS transient S3 outage: attachment=242a36c2-40f8-440f-899b-228164e5ddc4; attempts=5; durable retries, retry_exhausted, explicit replay after recovery
PASS: lab5 grade4 recovery checks (all)
RESULT: PASS (exit 0) at 2026-11-21T09:14:39Z
+191
View File
@@ -0,0 +1,191 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"duration_seconds": "0.06001993599988964",
"event": "http.request.complete",
"flags": "1",
"method": "POST",
"observed_timestamp": "1795251367084401557",
"outcome": "success",
"request_id": "observe-927e3831c3d241ac80d3d43391ad1ff4",
"route": "/api/v1/chats/{chat_id}/attachments",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "81ebb23d65ec",
"service_name": "messenger-api",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "10167513c3917aba",
"status_code": "202",
"trace_id": "94af84b9ec1663416ac05526995fbd91"
},
"values": [
[
"1795251367084238848",
"http.request.complete"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 6425057,
"linesProcessedPerSecond": 32614,
"totalBytesProcessed": 86680,
"totalLinesProcessed": 440,
"execTime": 0.013491,
"queueTime": 0.001181,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 0,
"shards": 1,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 77440
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 1,
"totalChunksMatched": 1,
"totalBatches": 2,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 86680,
"headChunkLines": 440,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 77440,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 190898,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0
}
}
}
}
File diff suppressed because it is too large Load Diff
+318
View File
@@ -0,0 +1,318 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"attachment_id": "8da6897d-7ad0-4a47-92a1-63e8820c6fb3",
"attempt": "1",
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "warn",
"duration_seconds": "1.1696733750000021",
"event": "job.complete",
"flags": "1",
"job_id": "c1561046-eb77-42b6-a915-e8f6e4c0a1bc",
"job_type": "attachment.process.v1",
"observed_timestamp": "1795251373761214222",
"outcome": "error",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "fbfa8249e8c241d98e76ac1b870fab3e",
"service_name": "messenger-worker",
"service_version": "1.6.0",
"severity_number": "13",
"severity_text": "WARN",
"span_id": "604b1094f4b8ea5a",
"trace_id": "94af84b9ec1663416ac05526995fbd91"
},
"values": [
[
"1795251373761101312",
"job.complete"
]
]
},
{
"stream": {
"attachment_id": "8da6897d-7ad0-4a47-92a1-63e8820c6fb3",
"attempt": "2",
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"duration_seconds": "0.04622686900006556",
"event": "job.complete",
"flags": "1",
"job_id": "c1561046-eb77-42b6-a915-e8f6e4c0a1bc",
"job_type": "attachment.process.v1",
"observed_timestamp": "1795251405312162771",
"outcome": "duplicate",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "860a8bda1f144a65878ee73824659b78",
"service_name": "messenger-worker",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "ba1e0fd901467175",
"trace_id": "94af84b9ec1663416ac05526995fbd91"
},
"values": [
[
"1795251405311928576",
"job.complete"
]
]
},
{
"stream": {
"attachment_id": "8da6897d-7ad0-4a47-92a1-63e8820c6fb3",
"attempt": "2",
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"event": "job.retry",
"flags": "1",
"job_id": "c1561046-eb77-42b6-a915-e8f6e4c0a1bc",
"observed_timestamp": "1795251373753026344",
"outcome": "retry",
"queue": "attachments",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "fbfa8249e8c241d98e76ac1b870fab3e",
"service_name": "messenger-worker",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "604b1094f4b8ea5a",
"trace_id": "94af84b9ec1663416ac05526995fbd91"
},
"values": [
[
"1795251373752916480",
"job.retry"
]
]
},
{
"stream": {
"attachment_id": "8da6897d-7ad0-4a47-92a1-63e8820c6fb3",
"attempt": "2",
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "warn",
"duration_seconds": "1.4581017409998367",
"event": "job.complete",
"flags": "1",
"job_id": "c1561046-eb77-42b6-a915-e8f6e4c0a1bc",
"job_type": "attachment.process.v1",
"observed_timestamp": "1795251375868803562",
"outcome": "error",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "fbfa8249e8c241d98e76ac1b870fab3e",
"service_name": "messenger-worker",
"service_version": "1.6.0",
"severity_number": "13",
"severity_text": "WARN",
"span_id": "83adf2393f95e484",
"trace_id": "94af84b9ec1663416ac05526995fbd91"
},
"values": [
[
"1795251375868673792",
"job.complete"
]
]
},
{
"stream": {
"attachment_id": "8da6897d-7ad0-4a47-92a1-63e8820c6fb3",
"attempt": "3",
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"duration_seconds": "0.36952172699989205",
"event": "job.complete",
"flags": "1",
"job_id": "c1561046-eb77-42b6-a915-e8f6e4c0a1bc",
"job_type": "attachment.process.v1",
"observed_timestamp": "1795251497430982971",
"outcome": "success",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "860a8bda1f144a65878ee73824659b78",
"service_name": "messenger-worker",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "ba826640e32b3505",
"trace_id": "94af84b9ec1663416ac05526995fbd91"
},
"values": [
[
"1795251497430907392",
"job.complete"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 142743,
"linesProcessedPerSecond": 766,
"totalBytesProcessed": 1117,
"totalLinesProcessed": 6,
"execTime": 0.007825,
"queueTime": 0.000908,
"subqueries": 0,
"totalEntriesReturned": 5,
"splits": 0,
"shards": 1,
"totalPostFilterLines": 5,
"totalStructuredMetadataBytesProcessed": 1048
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 1,
"totalChunksMatched": 1,
"totalBatches": 2,
"totalLinesSent": 5,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 1117,
"headChunkLines": 6,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 5,
"headChunkStructuredMetadataBytes": 1048,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 103240,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0
}
}
}
}
File diff suppressed because it is too large Load Diff
+73
View File
@@ -0,0 +1,73 @@
{
"captured_at": "2026-11-21T09:17:48.990874Z",
"host": "Windows, Intel Core Ultra 5 125U",
"docker": {
"ServerVersion": "29.3.0",
"NCPU": 14,
"MemTotal": 7965700096,
"OperatingSystem": "Docker Desktop"
},
"revision_before_final_commit": "d0a062e2d2fbeda54c2a24f518eb3687650f7c9e",
"working_tree_grade4": true,
"api_url": "http://localhost:8086",
"code_sha256": {
".env.example": "f4d81ed6a4559e9f26c0c5a3d8accc495adb330c107c4f47cc34d47321a81dfe",
".github/workflows/application.yml": "b486fe8a8299d363cf4e403dc2987de70c35a3ac6cc7e39f7656b6b77e6763ea",
".github/workflows/contracts.yml": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8",
"app/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"app/advanced.py": "27762f863185cb6b51a64ae7698e60350b5aba0f924992e7eecaf58511d6e5cc",
"app/attachments.py": "fae87bae0835fe6cafe8e85b685d1a1a0039d67516d52a633bac66e26c7fb8c1",
"app/cache.py": "c7d5a210c4b85624ec089c2626cb69a84154790d325a6308cc8b0f578db3178b",
"app/config.py": "0ee78d89095878150de4c195e28ffc17c44ab40f5e6b40fc6cb9ef23672d10aa",
"app/db.py": "28eade9a5dda08887f9efeb786e52040832dd28975619a0c4b23988be2ba1ca3",
"app/deps.py": "40b9353387289b7b3ff964a216446f13bbde66ee5a26bf5c847e39fe1948b062",
"app/errors.py": "b06a0001aa2f1410cdcd4c385719ad3b90a0dacae62784649129c1e1c6dd933c",
"app/image_worker.py": "66821f54709707fb8ad7d336eeceaa97cb69d6e6b1ae369147b59241a1e099f5",
"app/images.py": "9e0cd83ef5d673356bde672d77ec106f8f3bb86812aaf46fbe3c932db2f7df54",
"app/jobs.py": "b1b6dd46529042b72a088a61a3e153f6c8861d41550dbe713056be301dc5c3dc",
"app/lifecycle.py": "097fcd74d178654fa91b3704d45c5215cfdec2f0ab3bb21b432e028160c9aa5e",
"app/main.py": "fabcf21af59875defa0c130b03bf14df8db3ac9352df654dc3da4fcf38b84f50",
"app/models.py": "69eb6bd83683c7ab1329e3d0d331577ce40612c156dc17c8ae1bdd231a921ecc",
"app/operator.py": "d9046d7c757bc9c40721f11569f4ca1a7c9e52586ad05a04f0b6179b31b551b6",
"app/pipeline.py": "3bcdd1484d4633c901a7bcfcd9f800db9f5e53db6d1c610d82d556d1337fbd4c",
"app/repositories.py": "86b2774b89e2f7b875283cd684c7b346eeba1da2dd76d836661f6b45812ebcd8",
"app/security.py": "b5e0fa73943a046501d1015d9b0288272b93e6a8458a47651c1bd9fa3b03a680",
"app/server.py": "092af34b790f3103eb715f956c686655e18309cf6bab7073a015222f709d61b4",
"app/services.py": "128a6668ad74697c05612fd9ad13107d14ba0ed0c9074338fb2d14437b54c785",
"app/storage.py": "8573d43b3993c9f1e0e5ecbf82a9f65f58041e6bd50d4a315875d24b67042bd1",
"app/telemetry.py": "232fde35c8445e3a80a067f41a1ac264fd41c662b3ae1ebbc3c7e661200fe9bc",
"app/trace_context.py": "4ad1e98c346c6542df0bba808f0449922127ced410289b05ca2a3d94354b9740",
"app/worker.py": "8eb05a2c37325a6d1da77102a683a19cc25fc7cb8adeeaa2b1c525a4029c7bbc",
"compose.yaml": "a29a6af5228d9c2a1a529818071787690d3108d82cb83d7edc668ea0656fd969",
"Dockerfile": "a0029707f843a15501a7d05142c06662b2705e16eb0292954148674cfe739b87",
"infra/grafana/dashboards/messenger.json": "826c301adef62987d040a4f0d764d7f3dc89275de0c488979a03737ad73dbce9",
"infra/grafana/provisioning/dashboards/dashboards.yaml": "e764b58e795886455758da0c93b1199e75d220bdf9e0c087f859a4ce67f744ef",
"infra/grafana/provisioning/datasources/datasources.yaml": "8234d0c4b273127f3f5aad084f942dcc4dc498640f796bcc34feaae3a1eae1cb",
"infra/loki/loki.yaml": "4614b904e6297165bebdafb4004e2c4ba93ea6bb278b4f53f196566621740dbd",
"infra/otel/collector.yaml": "52fd1266cb78fd1e73bdc2a36057ec913abba6f50e7ce93bb3a31db69e25b8ba",
"infra/prometheus/alerts.yaml": "252499c676f9fa9564c6466e7f268a9975c9044df0bdd82de78565f90548bbbe",
"infra/prometheus/prometheus.yaml": "362d7f375ef6bb85fbd2e2e1e9c09c1a8507e94a3b115e13b0869ffcbc777d47",
"infra/tempo/tempo.yaml": "a87b8a536ee4a42d8f83716c753b0380498ea17893082c1b7d1d21aafc21fc51",
"migrations/001_initial_schema.sql": "e5c956278405d4f65be50b2e0b92c37f0870589e9c0d972c70d6733f1ae439e2",
"migrations/002_indexes.sql": "6b0a375c09505f5220eb3add3ff3e4115b8426bbe1e1d97556effb8f64e4c7ff",
"migrations/003_idempotency_keys.sql": "9554fd815d4b0e3085d2fe725c0e0e8b2a36e212fe3a486345e28afaf38e8b69",
"migrations/004_attachments.sql": "2f421cbfb0cbf50d80d4bb8812378cdbc2619a5b8fa7aa5116238e287a8c6c6b",
"migrations/005_async_pipeline.sql": "ce928ea8304c95a8bf2ad0ca92e6ffce81070362020de1a3373e381fd3dab247",
"migrations/006_trace_context.sql": "a452982ba83fb0c270c54a3796d5c257bd86f74bdd8627474dcb3b022e33ad33",
"requirements.txt": "4abdbc52e41c0ac0cfe5d91718558e5e9ee3951e27efe99d8c31a83c736f2924",
"scripts/check_contract.py": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671",
"scripts/migrate.py": "9f095a2181ed2a84584b09fe8cdfbf896c5c26306c7c5c5c262b4bbbb3f28d88",
"scripts/observe_lab6.py": "bbfa84f0c360c538db68396afd97d228e272bd9ca68456c72a7a89eb77b91025",
"scripts/s3_bootstrap.py": "f7bddb150df0e94e97a21efa2cad22c426e00fc935e710c16e11070f15344ef2",
"scripts/test_lab5.py": "957546f3939f1d120d119d61a6df672034c0d234a32d014c413152490bec59ef",
"scripts/test_lab6.py": "fd2ee01770b601c3fb0c89ea8e79c50d18a859e20a06c19f873ae38b1b6d06d0",
"scripts/validate_openapi.py": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54",
"student-tests/image_validation_unit.py": "531a2de31f90c92e094f7e5ef8bea663f2d70ecee41464a461e0e54d9800f795",
"student-tests/lab5_helpers.py": "68a8a0cc9fc644d883342cb82642b2a679a32ed2db252f2e5a5b845d9ad2cec1",
"student-tests/lab5_images.py": "048cc6dbb674869608c13ae290f20d57a8356da79a510f4517242bf57f5a505d",
"student-tests/lab5_limits.py": "c2095797ce002e78a68e2d00afb2b10aa46a85787e8f1a43e6fb2b5a70045336",
"student-tests/lab5_recovery.py": "8d7aa7de8dc09e18f206e32cac3001f4a916e9448e3887d0de7154aa832553d9",
"student-tests/observability_unit.py": "9759b4ca7e312d656a2a0fb6f886a6dcb19ca50983a3f1733371142b24579d09"
},
"notes": "Collected before third commit; source hashes normalize CRLF to LF. Synthetic data only."
}
+83
View File
@@ -0,0 +1,83 @@
UTC: 2026-11-21T09:09:40Z
Command: docker compose --profile tools ps --status running --services
api
broker
db
grafana
lb
loki
otel-collector
prometheus
publisher
s3
tempo
valkey
worker
RESULT: PASS (exit 0) at 2026-11-21T09:09:40Z
UTC: 2026-11-21T09:09:40Z
Command: docker compose --profile tools build tester
Image messenger-lab6-tester Building
#1 [internal] load local bake definitions
#1 reading from stdin 587B 0.0s done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile.tester
#2 transferring dockerfile: 405B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.12.11-alpine3.22
#3 DONE 0.2s
#4 [internal] load metadata for docker.io/library/docker:28.5.1-cli
#4 DONE 0.2s
#5 [internal] load .dockerignore
#5 transferring context: 286B done
#5 DONE 0.0s
#6 [stage-1 1/5] FROM docker.io/library/python:3.12.11-alpine3.22@sha256:efcdfa6a6b2fd2afb9c7dfa9a5b288a6f68338b5cfdebe6b637d986067d85757
#6 resolve docker.io/library/python:3.12.11-alpine3.22@sha256:efcdfa6a6b2fd2afb9c7dfa9a5b288a6f68338b5cfdebe6b637d986067d85757 0.0s done
#6 DONE 0.1s
#7 [docker-cli 1/1] FROM docker.io/library/docker:28.5.1-cli@sha256:9190b0613792e658a7783cf14b2d5ace5941bb68ede7276922ea36ee457d76ad
#7 resolve docker.io/library/docker:28.5.1-cli@sha256:9190b0613792e658a7783cf14b2d5ace5941bb68ede7276922ea36ee457d76ad 0.0s done
#7 DONE 0.1s
#8 [stage-1 2/5] RUN apk add --no-cache make
#8 CACHED
#9 [stage-1 3/5] RUN pip install --no-cache-dir Pillow==11.0.0
#9 CACHED
#10 [stage-1 4/5] COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
#10 CACHED
#11 [stage-1 5/5] WORKDIR /work
#11 CACHED
#12 exporting to image
#12 exporting layers done
#12 exporting manifest sha256:1c93bba11e9ded8b819bbcadafd9217f8b6b4fc5301deeca1e720c49a45f1b2e done
#12 exporting config sha256:9ad2daad56b9cfccc6c03e7be0468faf51994e1604e86b502077a03f28844325 done
#12 exporting attestation manifest sha256:96fa2816d4a538ed8e6e3ea5c702033990470ee27e842b91c5f2979f0304e95a 0.1s done
#12 exporting manifest list sha256:3e586fe0bf4aeb3814ad182a780c6173a9e252da1c33e7e61f20187228c8b23f 0.0s done
#12 naming to docker.io/library/messenger-lab6-tester:latest
#12 naming to docker.io/library/messenger-lab6-tester:latest done
#12 unpacking to docker.io/library/messenger-lab6-tester:latest 0.0s done
#12 DONE 0.2s
#13 resolving provenance for metadata file
#13 DONE 0.0s
Image messenger-lab6-tester Built
RESULT: PASS (exit 0) at 2026-11-21T09:09:42Z
UTC: 2026-11-21T09:10:08Z
Command: docker compose --profile tools run --rm -T --no-deps tester chmod +x scripts/restart.sh scripts/stop-one.sh
Container messenger-lab6-tester-run-100a83886eb9 Creating
Container messenger-lab6-tester-run-100a83886eb9 Created
RESULT: PASS (exit 0) at 2026-11-21T09:10:09Z
+8
View File
@@ -0,0 +1,8 @@
UTC: 2026-11-21T09:09:46Z
Command: docker compose --profile tools run --rm -T --no-deps tester python3 -u tests/smoke.py
Container messenger-lab6-tester-run-42a477b98467 Creating
Container messenger-lab6-tester-run-42a477b98467 Created
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
RESULT: PASS (exit 0) at 2026-11-21T09:09:53Z
+17
View File
@@ -0,0 +1,17 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
messenger-lab6-api-1 messenger-lab6-api:dev "python -m app.server" api About a minute ago Up About a minute (healthy) 8080/tcp
messenger-lab6-api-2 messenger-lab6-api:dev "python -m app.server" api About a minute ago Up About a minute (healthy) 8080/tcp
messenger-lab6-broker-1 rabbitmq:3.13.7-alpine "/bin/sh -ec 'export…" broker 42 minutes ago Up 2 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
messenger-lab6-db-1 postgres:16.4-alpine "docker-entrypoint.s…" db 42 minutes ago Up 2 minutes (healthy) 5432/tcp
messenger-lab6-grafana-1 grafana/grafana:11.2.2 "/run.sh" grafana 27 minutes ago Up 26 minutes 127.0.0.1:3000->3000/tcp
messenger-lab6-lb-1 haproxy:3.0.11-alpine "docker-entrypoint.s…" lb 26 minutes ago Up 2 minutes (healthy) 127.0.0.1:8086->8080/tcp, 127.0.0.1:8406->8404/tcp
messenger-lab6-loki-1 grafana/loki:3.2.1 "/usr/bin/loki -conf…" loki 27 minutes ago Up 16 minutes 127.0.0.1:3100->3100/tcp
messenger-lab6-migrate-1 messenger-lab6-api:dev "python scripts/migr…" migrate About a minute ago Exited (0) About a minute ago
messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.111.0 "/otelcol-contrib --…" otel-collector 29 minutes ago Up 28 minutes 4317/tcp, 55678-55679/tcp
messenger-lab6-prometheus-1 prom/prometheus:v2.55.0 "/bin/prometheus --c…" prometheus 27 minutes ago Up 26 minutes 127.0.0.1:9090->9090/tcp
messenger-lab6-publisher-1 messenger-lab6-api:dev "python -m app.jobs" publisher About a minute ago Up About a minute 8080/tcp
messenger-lab6-s3-1 chrislusf/seaweedfs:3.97 "/bin/sh /opt/lab/st…" s3 42 minutes ago Up 2 minutes (healthy) 7333/tcp, 8080/tcp, 8333/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp
messenger-lab6-s3-init-1 messenger-lab6-api:dev "python scripts/s3_b…" s3-init About a minute ago Exited (0) About a minute ago
messenger-lab6-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo About a minute ago Up About a minute 127.0.0.1:3200->3200/tcp
messenger-lab6-valkey-1 valkey/valkey:8.0.1-alpine "docker-entrypoint.s…" valkey 42 minutes ago Up 2 minutes (healthy) 6379/tcp
messenger-lab6-worker-1 messenger-lab6-api:dev "python -m app.worker" worker About a minute ago Up About a minute 8080/tcp
+44
View File
@@ -0,0 +1,44 @@
UTC: 2026-11-21T09:09:40Z
Command: docker compose --profile tools ps -a
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
messenger-lab6-api-1 messenger-lab6-api:dev "python -m app.server" api 18 minutes ago Up 17 minutes (healthy) 8080/tcp
messenger-lab6-api-2 messenger-lab6-api:dev "python -m app.server" api 18 minutes ago Up 17 minutes (healthy) 8080/tcp
messenger-lab6-broker-1 rabbitmq:3.13.7-alpine "/bin/sh -ec 'export…" broker 34 minutes ago Up 24 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
messenger-lab6-db-1 postgres:16.4-alpine "docker-entrypoint.s…" db 34 minutes ago Up 10 minutes (healthy) 5432/tcp
messenger-lab6-grafana-1 grafana/grafana:11.2.2 "/run.sh" grafana 19 minutes ago Up 18 minutes 127.0.0.1:3000->3000/tcp
messenger-lab6-lb-1 haproxy:3.0.11-alpine "docker-entrypoint.s…" lb 17 minutes ago Up 17 minutes (healthy) 127.0.0.1:8086->8080/tcp, 127.0.0.1:8406->8404/tcp
messenger-lab6-loki-1 grafana/loki:3.2.1 "/usr/bin/loki -conf…" loki 19 minutes ago Up 8 minutes 127.0.0.1:3100->3100/tcp
messenger-lab6-migrate-1 messenger-lab6-api:dev "python scripts/migr…" migrate 18 minutes ago Exited (0) 16 minutes ago
messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.111.0 "/otelcol-contrib --…" otel-collector 20 minutes ago Up 20 minutes 4317/tcp, 55678-55679/tcp
messenger-lab6-prometheus-1 prom/prometheus:v2.55.0 "/bin/prometheus --c…" prometheus 19 minutes ago Up 18 minutes 127.0.0.1:9090->9090/tcp
messenger-lab6-publisher-1 messenger-lab6-api:dev "python -m app.jobs" publisher 18 minutes ago Up 17 minutes 8080/tcp
messenger-lab6-s3-1 chrislusf/seaweedfs:3.97 "/bin/sh /opt/lab/st…" s3 34 minutes ago Up 13 minutes (healthy) 7333/tcp, 8080/tcp, 8333/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp
messenger-lab6-s3-init-1 messenger-lab6-api:dev "python scripts/s3_b…" s3-init 18 minutes ago Exited (0) 16 minutes ago
messenger-lab6-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo 3 minutes ago Up 3 minutes 127.0.0.1:3200->3200/tcp
messenger-lab6-valkey-1 valkey/valkey:8.0.1-alpine "docker-entrypoint.s…" valkey 34 minutes ago Up 24 minutes (healthy) 6379/tcp
messenger-lab6-worker-1 messenger-lab6-api:dev "python -m app.worker" worker 18 minutes ago Up 5 minutes 8080/tcp
RESULT: PASS (exit 0) at 2026-11-21T09:09:40Z
UTC: 2026-11-21T09:16:01Z
Command: docker compose --profile tools ps -a
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
messenger-lab6-api-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.server" api 24 minutes ago Up 7 seconds (healthy) 8080/tcp
messenger-lab6-api-2 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.server" api 24 minutes ago Up 43 seconds (healthy) 8080/tcp
messenger-lab6-broker-1 rabbitmq:3.13.7-alpine "/bin/sh -ec 'export…" broker 40 minutes ago Up About a minute (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
messenger-lab6-db-1 postgres:16.4-alpine "docker-entrypoint.s…" db 40 minutes ago Up About a minute (healthy) 5432/tcp
messenger-lab6-grafana-1 grafana/grafana:11.2.2 "/run.sh" grafana 25 minutes ago Up 24 minutes 127.0.0.1:3000->3000/tcp
messenger-lab6-lb-1 haproxy:3.0.11-alpine "docker-entrypoint.s…" lb 24 minutes ago Up 36 seconds (healthy) 127.0.0.1:8086->8080/tcp, 127.0.0.1:8406->8404/tcp
messenger-lab6-loki-1 grafana/loki:3.2.1 "/usr/bin/loki -conf…" loki 25 minutes ago Up 14 minutes 127.0.0.1:3100->3100/tcp
messenger-lab6-migrate-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python scripts/migr…" migrate 24 minutes ago Exited (0) 23 minutes ago
messenger-lab6-otel-collector-1 otel/opentelemetry-collector-contrib:0.111.0 "/otelcol-contrib --…" otel-collector 27 minutes ago Up 26 minutes 4317/tcp, 55678-55679/tcp
messenger-lab6-prometheus-1 prom/prometheus:v2.55.0 "/bin/prometheus --c…" prometheus 25 minutes ago Up 24 minutes 127.0.0.1:9090->9090/tcp
messenger-lab6-publisher-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.jobs" publisher 24 minutes ago Up 44 seconds 8080/tcp
messenger-lab6-s3-1 chrislusf/seaweedfs:3.97 "/bin/sh /opt/lab/st…" s3 40 minutes ago Up About a minute (healthy) 7333/tcp, 8080/tcp, 8333/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp
messenger-lab6-s3-init-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python scripts/s3_b…" s3-init 24 minutes ago Exited (0) 22 minutes ago
messenger-lab6-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo 9 minutes ago Up 9 minutes 127.0.0.1:3200->3200/tcp
messenger-lab6-valkey-1 valkey/valkey:8.0.1-alpine "docker-entrypoint.s…" valkey 40 minutes ago Up About a minute (healthy) 6379/tcp
messenger-lab6-worker-1 sha256:efa9adc78d01ce2a8b6b72223b3964036998ac290fd83f91c929d417c137e0a4 "python -m app.worker" worker 24 minutes ago Up 44 seconds 8080/tcp
RESULT: PASS (exit 0) at 2026-11-21T09:16:01Z
File diff suppressed because it is too large Load Diff
+191
View File
@@ -0,0 +1,191 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"duration_seconds": "0.05064601900016896",
"event": "http.request.complete",
"flags": "1",
"method": "POST",
"observed_timestamp": "1795251728469179436",
"outcome": "success",
"request_id": "observe-81adf6fa6db94a2caf9dbdf96d62b259",
"route": "/api/v1/chats/{chat_id}/attachments",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "0d13c5814dab",
"service_name": "messenger-api",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "0ff19193d60d0a11",
"status_code": "202",
"trace_id": "167d5623ef64fb0ed646ec1e2fe01ad8"
},
"values": [
[
"1795251728468912896",
"http.request.complete"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 87014288,
"linesProcessedPerSecond": 188878,
"totalBytesProcessed": 1367324,
"totalLinesProcessed": 2968,
"execTime": 0.015714,
"queueTime": 0.000907,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 2,
"shards": 2,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 1251756
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 2,
"totalChunksMatched": 2,
"totalBatches": 3,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 60282,
"headChunkLines": 306,
"decompressedBytes": 1307042,
"decompressedLines": 2662,
"compressedBytes": 58630,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 53856,
"decompressedStructuredMetadataBytes": 1197900
},
"chunkRefsFetchTime": 386158,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0
}
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,191 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": {
"attachment_id": "567d9b19-91b2-468c-95bb-8317c6ef90f2",
"attempt": "1",
"code_filepath": "/app/app/telemetry.py",
"code_function": "emit",
"code_lineno": "180",
"deployment_environment_name": "lab",
"detected_level": "info",
"duration_seconds": "0.4046185140000489",
"event": "job.complete",
"flags": "1",
"job_id": "2c0f93ca-74a0-4191-9b63-85fd07008e86",
"job_type": "attachment.process.v1",
"observed_timestamp": "1795251729011236193",
"outcome": "success",
"scope_name": "messenger.telemetry.events",
"service_instance_id": "b5902353dfd648c39ac966e0780e90a3",
"service_name": "messenger-worker",
"service_version": "1.6.0",
"severity_number": "9",
"severity_text": "INFO",
"span_id": "59e8500a32f934ab",
"trace_id": "167d5623ef64fb0ed646ec1e2fe01ad8"
},
"values": [
[
"1795251729011139328",
"job.complete"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 197625,
"linesProcessedPerSecond": 1051,
"totalBytesProcessed": 1128,
"totalLinesProcessed": 6,
"execTime": 0.005708,
"queueTime": 0.001056,
"subqueries": 0,
"totalEntriesReturned": 1,
"splits": 2,
"shards": 2,
"totalPostFilterLines": 1,
"totalStructuredMetadataBytesProcessed": 1056
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": false,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 0,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"ingester": {
"totalReached": 2,
"totalChunksMatched": 2,
"totalBatches": 3,
"totalLinesSent": 1,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"queryReferencedStructuredMetadata": true,
"chunk": {
"headChunkBytes": 1128,
"headChunkLines": 6,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 1,
"headChunkStructuredMetadataBytes": 1056,
"decompressedStructuredMetadataBytes": 0
},
"chunkRefsFetchTime": 227539,
"congestionControlLatency": 0,
"pipelineWrapperFilteredLines": 0
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"result": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"volumeResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"seriesResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"labelResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
},
"instantMetricResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0,
"queryLengthServed": 0
}
},
"index": {
"totalChunks": 0,
"postFilterChunks": 0,
"shardsDuration": 0
}
}
}
}
File diff suppressed because it is too large Load Diff
+1
View File
@@ -0,0 +1 @@
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
+20
View File
@@ -0,0 +1,20 @@
UTC: 2026-11-21T09:03:11Z
Command: C:\Users\masha\AppData\Local\Programs\Python\Python313\python.exe -X utf8 -c "import json
import scripts.observe_lab6 as m
client,stand=m.Business(),m.Stand()
try:
m.wait_backends();client.bootstrap()
result=m.lag_incident(client,stand,'MessengerQueueLag')
path=m.EVIDENCE/'observability-incidents.json'
data=json.loads(path.read_text(encoding='utf-8'))
data['incidents'][0]=result
data['captured_at']=m.now()
m.save('observability-incidents.json',data)
print('PASS: clean queue and inactive alert -> newly firing -> resolved; original bytes verified')
finally:
stand.restore()
"
PASS: clean queue and inactive alert -> newly firing -> resolved; original bytes verified
RESULT: PASS (exit 0) at 2026-11-21T09:04:11Z