ЛР 2: завершить трек 2 на оценку 5
Lab2 application / application (pull_request) Canceled after 0s

This commit is contained in:
2026-10-28 15:41:38 +03:00
parent 834876c938
commit 9f0bb97b09
96 changed files with 109054 additions and 1959 deletions
@@ -0,0 +1,40 @@
{
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
"results": [
{
"suite": "business-boundaries",
"status": "PASS",
"observation": {
"json_cases": 174
},
"duration_seconds": 7.627
},
{
"suite": "business-cursors",
"status": "PASS",
"observation": {
"message_items": 7,
"chat_list": {
"items": 7,
"page_limit": 2,
"foreign_cursors_rejected": 3,
"changed_limit": [
1,
100
]
}
},
"duration_seconds": 6.4723
},
{
"suite": "read-after-write",
"status": "PASS",
"observation": {
"writers": 10,
"messages": 100,
"concurrency": 4
},
"duration_seconds": 11.703
}
]
}
@@ -0,0 +1,4 @@
{"action": "restart-cache", "project": "lab2-test-751bd2d1ccd1", "before": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:53:43.880644887Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:05.969730425Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
{"action": "restart-cache", "project": "lab2-test-751bd2d1ccd1", "before": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:05.969730425Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:08.992159468Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
{"action": "restart", "project": "lab2-test-751bd2d1ccd1", "before": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:53:50.466761376Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:53:43.908696096Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:56:08.992159468Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:58:32.804413507Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:58:29.499867047Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:58:26.245911754Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
{"action": "restart", "project": "lab2-test-751bd2d1ccd1", "before": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:58:32.804413507Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:58:29.499867047Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:58:26.245911754Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}, "after": {"api": {"id": "865b47a7d869378043bfeb1cf8f39fbe68b2bd04cef12951725c7b4d826480f1", "started_at": "2026-10-28T10:58:49.387415792Z", "running": true, "volumes": []}, "postgres": {"id": "253648c6177cd97ce9c461ba098b30b3e1abbb2f42f2187d3990113cffa75323", "started_at": "2026-10-28T10:58:48.667892042Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_postgres_data"]}, "redis": {"id": "7c836740dc1a8f4f2a6fd3a3db6aac890bc00cda84d1de549546fb4866f0d732", "started_at": "2026-10-28T10:58:48.522514625Z", "running": true, "volumes": ["lab2-test-751bd2d1ccd1_redis_data"]}}}
@@ -0,0 +1,189 @@
{
"scope": "observed automated scenarios, not an automatic grade or manual report/CI review",
"results": [
{
"suite": "sql-plan",
"status": "PASS",
"observation": {
"actual_rows": 10000,
"chat_distribution_percent": [
70,
20,
6,
3,
1
],
"chat_message_counts": [
7000,
2000,
600,
300,
100
],
"deep_page": {
"explain": {
"Execution Time": 0.07,
"Plan": {
"Actual Loops": 1,
"Actual Rows": 51,
"Actual Startup Time": 0.009,
"Actual Total Time": 0.043,
"Async Capable": false,
"Disabled": false,
"Local Dirtied Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Written Blocks": 0,
"Node Type": "Limit",
"Parallel Aware": false,
"Plan Rows": 51,
"Plan Width": 72,
"Plans": [
{
"Actual Loops": 1,
"Actual Rows": 51,
"Actual Startup Time": 0.009,
"Actual Total Time": 0.021,
"Alias": "messages",
"Async Capable": false,
"Disabled": false,
"Index Cond": "((chat_id = '42999db2-38ef-436a-bf5e-b1817797c678'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:08.001+00'::timestamp with time zone, '29ef7810-c0e6-4bc5-8b18-4a0efc2e2c4d'::uuid)))",
"Index Name": "idx_messages_chat_created_id",
"Index Searches": 1,
"Local Dirtied Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Written Blocks": 0,
"Node Type": "Index Scan",
"Parallel Aware": false,
"Parent Relationship": "Outer",
"Plan Rows": 1399,
"Plan Width": 72,
"Relation Name": "messages",
"Rows Removed by Index Recheck": 0,
"Scan Direction": "Forward",
"Shared Dirtied Blocks": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Startup Cost": 0.29,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Total Cost": 545.09
}
],
"Shared Dirtied Blocks": 0,
"Shared Hit Blocks": 5,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Startup Cost": 0.29,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Total Cost": 20.15
},
"Planning": {
"Local Dirtied Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Written Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.174,
"Triggers": []
},
"max_visited_rows": 51
},
"first_page": {
"explain": {
"Execution Time": 0.06,
"Plan": {
"Actual Loops": 1,
"Actual Rows": 51,
"Actual Startup Time": 0.01,
"Actual Total Time": 0.044,
"Async Capable": false,
"Disabled": false,
"Local Dirtied Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Written Blocks": 0,
"Node Type": "Limit",
"Parallel Aware": false,
"Plan Rows": 51,
"Plan Width": 72,
"Plans": [
{
"Actual Loops": 1,
"Actual Rows": 51,
"Actual Startup Time": 0.009,
"Actual Total Time": 0.016,
"Alias": "messages",
"Async Capable": false,
"Disabled": false,
"Index Cond": "(chat_id = '42999db2-38ef-436a-bf5e-b1817797c678'::uuid)",
"Index Name": "idx_messages_chat_created_id",
"Index Searches": 1,
"Local Dirtied Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Written Blocks": 0,
"Node Type": "Index Scan",
"Parallel Aware": false,
"Parent Relationship": "Outer",
"Plan Rows": 7000,
"Plan Width": 72,
"Relation Name": "messages",
"Rows Removed by Index Recheck": 0,
"Scan Direction": "Forward",
"Shared Dirtied Blocks": 0,
"Shared Hit Blocks": 3,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Startup Cost": 0.29,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Total Cost": 911.84
}
],
"Shared Dirtied Blocks": 0,
"Shared Hit Blocks": 3,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Startup Cost": 0.29,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Total Cost": 6.93
},
"Planning": {
"Local Dirtied Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Written Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.078,
"Triggers": []
},
"max_visited_rows": 51
},
"go_version": "go1.27.1",
"mode": "plan",
"postgres_version": "18.6 (Debian 18.6-1.pgdg13+2)",
"rows": 10000,
"scan_budget_rows": 1000,
"schema": "lab2_test_81b0247831824785a367ab8fba0fdde6"
},
"duration_seconds": 4.7202
}
]
}