fix(traffic): согласовать опрос между процессами backend

This commit is contained in:
Denozordec committed 2026-10-13 14:35:00 +07:00
1 parent a68bd61e58
commit b525e70655
19 files changed
+1411 -19

No files matched your search

@@ -0,0 +1,46 @@
{
"date": "2026-10-13",
"block": "12.5.194",
"runtime": {
"backend": "ux-peak194",
"frontend": "ux-peak191"
},
"apis": [
{
"path": "/api/traffic/servers",
"status": 200
},
{
"path": "/api/traffic/users",
"status": 200
},
{
"path": "/api/traffic/bound-interfaces",
"status": 200
}
],
"cases": [
{
"width": 1440,
"trafficServers200": true,
"attemptProvenanceVisible": true,
"actualLiveSample": true,
"backendReceiptLabel": true,
"pageErrors": 0,
"noOverflow": true
},
{
"width": 320,
"trafficServers200": true,
"attemptProvenanceVisible": true,
"actualLiveSample": true,
"backendReceiptLabel": true,
"pageErrors": 0,
"noOverflow": true
}
],
"bounds": [
"Read-only smoke; error/stale/legacy branches proven by owned SQL and UI fixtures",
"No manual production scheduler/config/password/message writes"
]
}
@@ -0,0 +1,17 @@
{
"date": "2026-10-13",
"block": "12.5.194",
"image": "ux-peak193",
"scope": "Two independent processes, owned isolated PostgreSQL and local HTTP RouterOS fixture",
"baselineAccepted": true,
"concurrentInterfaceRequests": 2,
"savedWaves": 2,
"interfaceRequestsIncludingRecovery": 3,
"productionDbTouched": false,
"nativeChrCommands": 0,
"temporaryDatabaseAndRoleRemoved": true,
"bounds": [
"Baseline counts asserted in traffic-concurrency-sql.test.ts; run with MMAPP_TRAFFIC_CONCURRENCY_EXPECT=overlap",
"Not a physical WAN or database connection failure test"
]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,26 @@
{
"date": "2026-10-13",
"block": "12.5.194",
"version": "1.0.0-test.peak194",
"passed": true,
"method": "Read-only actual application volume API; no new native RouterOS commands; exact edge values covered separately by owned SQL",
"cases": [
{
"sourceId": "1",
"volumeUnit": "GiB",
"rxTotalGiB": 0.012730824761092663,
"txTotalGiB": 0.0009437743574380875,
"currentState": "current"
},
{
"sourceId": "2",
"volumeUnit": "GiB",
"rxTotalGiB": 0.0012853574007749557,
"txTotalGiB": 0.0015285797417163849,
"currentState": "current"
}
],
"newRouterOSCommands": 0,
"passwordChanges": 0,
"messages": 0
}
@@ -0,0 +1,25 @@
{
"date": "2026-10-13",
"block": "12.5.194",
"secretEnvCopied": false,
"rollbackTags": {
"MMAPP_IMAGE_TAG": "ux-peak191",
"BACKEND_IMAGE_TAG": "ux-peak193"
},
"services": {
"backend": {
"image": "mmapp-test/backend:ux-peak194",
"imageId": "sha256:13507a7e8f3c356c4de4f6d909babf53f569e7eb2dd4061b5fa43d6078383e9a",
"state": "running",
"health": "healthy",
"matchedVerifiedImage": true
},
"frontend": {
"image": "mmapp-test/frontend:ux-peak191",
"imageId": "sha256:1d9f85dbb5c791f09dad2863041d0fae5a291b02f5e73a5e96185a7866c673c7",
"state": "running",
"health": null,
"matchedVerifiedImage": true
}
}
}
@@ -0,0 +1,10 @@
{
"date": "2026-10-13",
"block": "12.5.194",
"matched": {
"backend": 465,
"frontend": 0
},
"different": [],
"missing": []
}
@@ -0,0 +1,32 @@
{
"date": "2026-10-13",
"block": "12.5.194",
"passed": true,
"profiles": [
{
"date": "2026-10-13",
"block": "12.5.194",
"database": "mm_accept_166_1791876391027",
"scope": "ephemeral role and precreated owned database; no copied production credentials",
"tests": [
{
"command": "npm --prefix backend run test:traffic-rate",
"passed": true,
"durationMs": 53237,
"ownedTrafficSqlCases": 9,
"ownedHistorySqlCases": 14,
"ownedLiveSqlCases": 10,
"ownedVolumeSqlCases": 17,
"ownedStatusSqlCases": 21,
"ownedConcurrencySqlSequencePassed": true,
"postgresUnavailableSkip": false
}
],
"scopedRoleVerified": true,
"passed": true,
"databaseRemoved": true,
"roleRemoved": true,
"testContainerRemoved": true
}
]
}