Проверить сквозной контекст, отказы, SLO и требования уровня 4

This commit is contained in:
2026-11-27 16:57:58 +03:00
parent 71254d3389
commit 0355ba13d2
23 changed files with 9136 additions and 16812 deletions
+414
View File
@@ -0,0 +1,414 @@
{
"commit": "71254d3389dc55d59405189016ecc8d63339c101",
"whoami": "win-24dt7t3o465\\lyakhonov",
"docker_context": "desktop-linux",
"docker_version": {
"Client": {
"Version": "28.5.1",
"ApiVersion": "1.51",
"DefaultAPIVersion": "1.51",
"GitCommit": "e180ab8",
"GoVersion": "go1.24.8",
"Os": "windows",
"Arch": "amd64",
"BuildTime": "Wed Oct 8 12:19:16 2025",
"Context": "desktop-linux"
},
"Server": {
"Platform": {
"Name": "Docker Desktop 4.49.0 (208700)"
},
"Components": [
{
"Name": "Engine",
"Version": "28.5.1",
"Details": {
"ApiVersion": "1.51",
"Arch": "amd64",
"BuildTime": "Wed Oct 8 12:17:24 2025",
"Experimental": "false",
"GitCommit": "f8215cc",
"GoVersion": "go1.24.8",
"KernelVersion": "6.6.87.2-microsoft-standard-WSL2",
"MinAPIVersion": "1.24",
"Os": "linux"
}
},
{
"Name": "containerd",
"Version": "1.7.27",
"Details": {
"GitCommit": "05044ec0a9a75232cad458027ca83437aae3f4da"
}
},
{
"Name": "runc",
"Version": "1.2.5",
"Details": {
"GitCommit": "v1.2.5-0-g59923ef"
}
},
{
"Name": "docker-init",
"Version": "0.19.0",
"Details": {
"GitCommit": "de40ad0"
}
}
],
"Version": "28.5.1",
"ApiVersion": "1.51",
"MinAPIVersion": "1.24",
"GitCommit": "f8215cc",
"GoVersion": "go1.24.8",
"Os": "linux",
"Arch": "amd64",
"KernelVersion": "6.6.87.2-microsoft-standard-WSL2",
"BuildTime": "2025-10-08T12:17:24.000000000+00:00"
}
},
"docker_resources": "16 CPUs 8126656512 bytes",
"compose_version": "Docker Compose version v2.40.3-desktop.1",
"containers": [
{
"id": "c321063cfe0dc6319e0cb3704f3902e5387e8e19f4c7c21b8c89ec54af2e99cb",
"service": "api",
"started_at": "2026-11-27T13:46:28.716162825Z",
"status": "running",
"memory_limit": 671088640,
"nano_cpus": 500000000
},
{
"id": "c200522d3266343ce6069346b58a6f645a4ed9129fc6be4503e7443b475033b9",
"service": "api",
"started_at": "2026-11-27T13:46:36.77308908Z",
"status": "running",
"memory_limit": 671088640,
"nano_cpus": 500000000
},
{
"id": "67250f581ff773c0f5daec64696792f6ef7fbbafed2fcc937bcd45edd96d28ad",
"service": "broker",
"started_at": "2026-11-27T13:45:10.97424342Z",
"status": "running",
"memory_limit": 536870912,
"nano_cpus": 750000000
},
{
"id": "a132f04f36935cdb0d11035f589a5cb4e5838538f184e7a32f0dcf6f99e18ef5",
"service": "bucket-init",
"started_at": "2026-11-27T13:47:27.333872276Z",
"status": "running",
"memory_limit": 134217728,
"nano_cpus": 250000000
},
{
"id": "8b2ac7682adccd6538de7c20f623ae01dd138898cc3ff0d3fffa6bd04c5870ae",
"service": "db",
"started_at": "2026-11-27T13:45:10.139067021Z",
"status": "running",
"memory_limit": 536870912,
"nano_cpus": 1000000000
},
{
"id": "c37c4520dde0281588280092f7b3eb0f666cfdc0c907c18071f4c257c608907d",
"service": "diagnostics",
"started_at": "2026-11-27T13:44:04.371189151Z",
"status": "running",
"memory_limit": 134217728,
"nano_cpus": 250000000
},
{
"id": "b01cf07496d8f1d7436aa7d6a13278bb1c6543bc1ed4c1e879aed3675a524f91",
"service": "dispatcher",
"started_at": "2026-11-27T13:45:10.274744107Z",
"status": "running",
"memory_limit": 268435456,
"nano_cpus": 500000000
},
{
"id": "fe879ab1e1e5a4d7761a03ab03e08aa614cf3194555d3362ba5a54a8e1ec8eba",
"service": "grafana",
"started_at": "2026-11-27T13:41:04.086803753Z",
"status": "running",
"memory_limit": 402653184,
"nano_cpus": 500000000
},
{
"id": "7eead7f9124d5e42bad9d977aeeaf851f52075586b23462e94b81e64c4a13525",
"service": "lb",
"started_at": "2026-11-27T13:45:09.878536759Z",
"status": "running",
"memory_limit": 134217728,
"nano_cpus": 500000000
},
{
"id": "d7eaf54f7dfa6ce43ca84e7630c357ba834d13826a07f1656d532bbd1aa8133d",
"service": "loki",
"started_at": "2026-11-27T13:41:03.943038494Z",
"status": "running",
"memory_limit": 402653184,
"nano_cpus": 500000000
},
{
"id": "3460fb4f99e34f2afc8cebf95563f121bd458fb983bacc35a2fb694d5580770b",
"service": "migrate",
"started_at": "2026-11-27T13:47:27.835587689Z",
"status": "exited",
"memory_limit": 671088640,
"nano_cpus": 500000000
},
{
"id": "eb8394f106efd30c4ef99094c79301d866a8533050b8eacf28e0e08099331302",
"service": "otel-collector",
"started_at": "2026-11-27T13:41:03.918588049Z",
"status": "running",
"memory_limit": 268435456,
"nano_cpus": 500000000
},
{
"id": "888ff5ffe6db73757cc652ce5376c3c9a78df120683edf2be120c17e7967e058",
"service": "prometheus",
"started_at": "2026-11-27T13:44:07.268964594Z",
"status": "running",
"memory_limit": 402653184,
"nano_cpus": 500000000
},
{
"id": "db034935279f969cd150b4fbe32817cf1ae334820e5e5e9d1cd7e7939bcf8dbb",
"service": "redis",
"started_at": "2026-11-27T13:45:09.601677028Z",
"status": "running",
"memory_limit": 134217728,
"nano_cpus": 250000000
},
{
"id": "c24794f0b24a27553c978dfd55459a02784da6f637ef8c69b12b4b9cb8cac555",
"service": "s3",
"started_at": "2026-11-27T13:45:09.53213622Z",
"status": "running",
"memory_limit": 805306368,
"nano_cpus": 1000000000
},
{
"id": "121813ef2b200ce213610c1d4d3d3c35af5203e8fe586bc070a231e51e01be81",
"service": "staging-cleaner",
"started_at": "2026-11-27T13:45:10.571681425Z",
"status": "running",
"memory_limit": 268435456,
"nano_cpus": 250000000
},
{
"id": "d89bc7eca7813a5b8eff9c5c37497bf7feb0c1ad7251797d0f99af5f9eee2337",
"service": "tempo",
"started_at": "2026-11-27T13:41:04.011042724Z",
"status": "running",
"memory_limit": 402653184,
"nano_cpus": 500000000
},
{
"id": "8f4bf0c0b97760df71ab60ecddb180a9a3aedca3a445c14c8925a1e0e613d818",
"service": "worker",
"started_at": "2026-11-27T13:45:10.016773257Z",
"status": "exited",
"memory_limit": 805306368,
"nano_cpus": 750000000
},
{
"id": "ca6de9150e29d58d0d60768e3ebaec6e6ed7fe56a0f1650dff31d8681870d266",
"service": "worker",
"started_at": "2026-11-27T13:45:10.503836556Z",
"status": "exited",
"memory_limit": 805306368,
"nano_cpus": 750000000
}
],
"other_containers": [
{
"id": "e36e30c0bc23ffdc3c2c4fe39b57ea98597764dfa313c509bd1734d74b801b44",
"project": "lyakhonov-lab5",
"started_at": "2026-11-27T13:46:55.696081044Z",
"state": "running"
},
{
"id": "b3f8a331a59832dde80002af9f29c5893381e780803283476c687168ede15842",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T04:00:04.137137202Z",
"state": "exited"
},
{
"id": "1f724278797561aea476251a8902eac6377039c3e30cbc336d501409af118ae2",
"project": "lyakhonov-lab5",
"started_at": "2026-11-27T13:47:08.572881915Z",
"state": "running"
},
{
"id": "bdedd08309bb0db9dc94235a148fc0938180449b1431059178488d0c6f985049",
"project": "lyakhonov-lab5",
"started_at": "2026-11-27T13:46:52.646440477Z",
"state": "running"
},
{
"id": "23b814fb71a813bedb09712be57c736e19460c2c25d2b2b4b0e66facb0bfdab9",
"project": "lyakhonov-lab5",
"started_at": "2026-11-27T13:47:17.724596809Z",
"state": "running"
},
{
"id": "a0acb99b68a1f803792742460827528137ac3ab96ec76a68de550f930a4a9368",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T04:00:23.843924506Z",
"state": "exited"
},
{
"id": "39b8b11f3c7c9e1c3fb778e780dc8d123e4b955669ddee8c85420eefcb3abaca",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T03:59:01.96581278Z",
"state": "exited"
},
{
"id": "934fcb61b954722ec6f9d3ce84d3399f5a35a30e8368e0ed44a939319ea9ff4f",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T03:58:30.862509137Z",
"state": "exited"
},
{
"id": "fdca00783fcb86e75d3ec4c84494d1571548333d585459191b78992f707729ad",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T03:59:01.428198308Z",
"state": "exited"
},
{
"id": "10408d41f3b50b0a5e8ad4e21b849fa97548c03f4a535b27c8c919163b9c30b2",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T03:58:30.504381937Z",
"state": "exited"
},
{
"id": "b94a25ac1bb3df998e3d0c27beae4b97d655bbc0a7ae520bd60c736cd40462c9",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T03:58:31.88055044Z",
"state": "exited"
},
{
"id": "c3962c31749b802835f909ce1b4efbe34149e88d9bc678ca3b82f9fdbcc97af1",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T03:58:30.614258194Z",
"state": "exited"
},
{
"id": "0b09dce985685e130ed8774a277a3ff254e8a633ff1dfeed7fd2daf80b78c4e8",
"project": "lyakhonov-lab5",
"started_at": "2026-11-20T03:58:31.091098179Z",
"state": "exited"
},
{
"id": "99f4403277a732ba8c6512634bdecbce168705cdfdf9edf83420133109647544",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:46:59.269605492Z",
"state": "exited"
},
{
"id": "7523f15dc398abffadfc62383a4976e33e0f25220ecb983d059002bd1ac9563b",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:49:08.477185174Z",
"state": "exited"
},
{
"id": "af9f952b1304310adb0cfd0620293050d2b1eb3a4e4b7395bd41d41df7730016",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:46:59.471200143Z",
"state": "exited"
},
{
"id": "07a9b492d60425b059661cfa7075640b85bd6f5c18831e2b3eb448166b29a7ee",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:49:07.055892766Z",
"state": "exited"
},
{
"id": "5d273b8dcb0cc6f4acfe44b78f189e2168eeb212103db0f18dcd5f6fbd3b3134",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:49:07.517707083Z",
"state": "exited"
},
{
"id": "a6482b44d70a2031a2563b1b72d955435125453a48e95087464775c918801941",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:45:43.938532131Z",
"state": "exited"
},
{
"id": "e9682a892ad30d5becf1fda8abbc16770aed81f261b0843f9cb047b5085baf76",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:45:44.017393725Z",
"state": "exited"
},
{
"id": "10138b5c0beefe8a15a6679fdad81ddac663eea21e8f63bf3ca03545c2558f20",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:45:44.07685361Z",
"state": "exited"
},
{
"id": "68997bbba33bdd4bed3093f2f7c127856cba5237c46511aad9a35945bdcf535f",
"project": "lyakhonov-lab4",
"started_at": "2026-10-30T14:45:43.846575438Z",
"state": "exited"
},
{
"id": "83b50e889353134bf5f1d215a2bc66e8f921a2de8957f3cb176cea255035f17f",
"project": "lyakhonov-lab3",
"started_at": "2026-10-23T16:13:46.65851457Z",
"state": "exited"
},
{
"id": "1ff12291d9d61efbb3795aab208fdadff718cb7f6470b4c1094ee76f9acf2924",
"project": "lyakhonov-lab3",
"started_at": "2026-10-23T16:13:47.058554979Z",
"state": "exited"
},
{
"id": "1031c94e3574d1843bb615df3426f8769100f54cd862018bb597d54d2401387b",
"project": "lyakhonov-lab3",
"started_at": "2026-10-23T16:07:54.077571177Z",
"state": "exited"
},
{
"id": "4577101bc498d9f217ad682ab8af2a4688f7772287a1755eab603ecc946ce2b7",
"project": "lyakhonov-lab3",
"started_at": "2026-10-23T16:08:02.041383013Z",
"state": "exited"
},
{
"id": "f2cdcc232751e2c2400763e935897851aca1399824ed751ec96a51180282a207",
"project": "lyakhonov-lab3",
"started_at": "2026-10-23T16:08:02.306518292Z",
"state": "exited"
},
{
"id": "889db8e55eb20c99fbe462f3d407763760cc40f0a053b144dcb9f6d13f6255c8",
"project": "lyakhonov-lab3",
"started_at": "2026-10-23T16:08:02.163804371Z",
"state": "exited"
},
{
"id": "1d0681eaf75f9c0ed9e48f2529ab671d72b528c4a621e44b68199b1437387d7c",
"project": "lyakhonov-lab2",
"started_at": "2026-10-09T11:26:57.052800221Z",
"state": "exited"
},
{
"id": "8bf3b717f757d92d742f440ee37fa2f7a304ca0b21912dcb5e02b9a7d9505a93",
"project": "lyakhonov-lab2",
"started_at": "2026-10-09T11:25:00.307001994Z",
"state": "exited"
},
{
"id": "92075e2bbf03ab04a43dccc4b171554af2781687127bd343453182cdcf3fb0ec",
"project": "lyakhonov-lab2",
"started_at": "2026-10-09T11:25:00.409548723Z",
"state": "exited"
}
]
}
+5
View File
@@ -0,0 +1,5 @@
..
----------------------------------------------------------------------
Ran 2 tests in 0.223s
OK
+10
View File
@@ -0,0 +1,10 @@
Traceback (most recent call last):
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 100, in <module>
if __name__=='__main__':main()
~~~~^^
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 44, in main
check(retried,'no managed retry observed while S3 stopped')
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vysoko-nagr 6\tests\client.py", line 24, in check
raise Failure(message)
client.Failure: no managed retry observed while S3 stopped
+10
View File
@@ -0,0 +1,10 @@
Traceback (most recent call last):
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 90, in <module>
if __name__=='__main__':main()
~~~~^^
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 39, in main
check(sum(s['kind']=='SPAN_KIND_CONSUMER' for s in spans)>=2,'retry trace missing')
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vysoko-nagr 6\tests\client.py", line 24, in check
raise Failure(message)
client.Failure: retry trace missing
+15
View File
@@ -0,0 +1,15 @@
Traceback (most recent call last):
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 116, in <module>
if __name__=='__main__':main()
~~~~^^
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 60, in main
wait_result(response['json'])
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 18, in wait_result
response=c.call('GET','/api/v1/attachments/'+att['id'],[200,503],actor=alice,schema='Attachment')
File "C:\Users\User\Desktop\vysoko-nagr 6\tests\client.py", line 133, in call
check(bool(rh.get('X-Request-Id')), 'missing X-Request-Id')
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vysoko-nagr 6\tests\client.py", line 24, in check
raise Failure(message)
client.Failure: missing X-Request-Id
+2
View File
@@ -0,0 +1,2 @@
PASS: two ready API instances, healthy DB/broker, required background containers running
PASS: worker lag, S3 retry context, DB outage, telemetry backend outage and recovery
+14
View File
@@ -0,0 +1,14 @@
Traceback (most recent call last):
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 100, in <module>
File "C:\Users\User\Desktop\vysoko-nagr 6\student-tests\incidents.py", line 46, in main
c.wait_ready(alice,response['json'])
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vysoko-nagr 6\tests\client.py", line 196, in wait_ready
att = self.call('GET','/api/v1/attachments/'+att['id'],actor=actor,schema='Attachment')['json']
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vysoko-nagr 6\tests\client.py", line 132, in call
check(status in allowed, method + ' ' + path.split('?')[0] + ': expected ' + str(allowed) + ', received ' + str(status))
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vysoko-nagr 6\tests\client.py", line 24, in check
raise Failure(message)
client.Failure: GET /api/v1/attachments/d706a90b-8a94-4d37-87a7-08bb11b54739: expected [200], received 503
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
PASS: two ready API instances, healthy DB/broker, required background containers running
PASS: two ready API instances, healthy DB/broker, required background containers running
PASS: two ready API instances, healthy DB/broker, required background containers running
PASS: persistence, public failover twice, each API stopped separately
File diff suppressed because it is too large Load Diff
+518 -16791
View File
File diff suppressed because it is too large Load Diff