From 14b3c2afac7dc828fd3b3feb269c450ea3517c93 Mon Sep 17 00:00:00 2001 From: Dmitriy Petrov Date: Fri, 28 Aug 2026 19:47:58 +0300 Subject: [PATCH] Exclude test artifacts from runtime impact analysis --- .gitignore | 1 + .tmp-tests/harbor-route-TN4fdZ/network.json | 1 - .../harbor-startup-recovery-FQjZCa/bin/sing-box | 11 ----------- .tmp-tests/harbor-startup-recovery-FQjZCa/state.json | 1 - .../harbor-startup-recovery-IRHjjF/bin/sing-box | 11 ----------- .../sing-box-config.json | 1 - .tmp-tests/harbor-startup-recovery-IRHjjF/state.json | 1 - .../harbor-startup-recovery-KP1brk/bin/sing-box | 11 ----------- .../sing-box-config.json | 1 - .tmp-tests/harbor-startup-recovery-KP1brk/state.json | 1 - .../harbor-startup-recovery-ZiMrHv/bin/sing-box | 11 ----------- .../sing-box-config.json | 1 - .tmp-tests/harbor-startup-recovery-ZiMrHv/state.json | 1 - .../subscription-cache.json | 1 - .../harbor-startup-recovery-xqwmBz/bin/sing-box | 11 ----------- .../sing-box-config.json | 1 - .tmp-tests/harbor-startup-recovery-xqwmBz/state.json | 1 - .../subscription-cache.json | 1 - .tmp-tests/harbor-state-contract-mDfxUH/bin/sing-box | 8 -------- scripts/runtime-impact.mjs | 2 ++ src/shared/versions.ts | 2 +- test/deploy/runtime-impact.test.js | 8 ++++++++ 22 files changed, 12 insertions(+), 76 deletions(-) delete mode 100644 .tmp-tests/harbor-route-TN4fdZ/network.json delete mode 100755 .tmp-tests/harbor-startup-recovery-FQjZCa/bin/sing-box delete mode 100644 .tmp-tests/harbor-startup-recovery-FQjZCa/state.json delete mode 100755 .tmp-tests/harbor-startup-recovery-IRHjjF/bin/sing-box delete mode 100644 .tmp-tests/harbor-startup-recovery-IRHjjF/sing-box-config.json delete mode 100644 .tmp-tests/harbor-startup-recovery-IRHjjF/state.json delete mode 100755 .tmp-tests/harbor-startup-recovery-KP1brk/bin/sing-box delete mode 100644 .tmp-tests/harbor-startup-recovery-KP1brk/sing-box-config.json delete mode 100644 .tmp-tests/harbor-startup-recovery-KP1brk/state.json delete mode 100755 .tmp-tests/harbor-startup-recovery-ZiMrHv/bin/sing-box delete mode 100644 .tmp-tests/harbor-startup-recovery-ZiMrHv/sing-box-config.json delete mode 100644 .tmp-tests/harbor-startup-recovery-ZiMrHv/state.json delete mode 100644 .tmp-tests/harbor-startup-recovery-ZiMrHv/subscription-cache.json delete mode 100755 .tmp-tests/harbor-startup-recovery-xqwmBz/bin/sing-box delete mode 100644 .tmp-tests/harbor-startup-recovery-xqwmBz/sing-box-config.json delete mode 100644 .tmp-tests/harbor-startup-recovery-xqwmBz/state.json delete mode 100644 .tmp-tests/harbor-startup-recovery-xqwmBz/subscription-cache.json delete mode 100755 .tmp-tests/harbor-state-contract-mDfxUH/bin/sing-box diff --git a/.gitignore b/.gitignore index 159201c..83f4683 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ data/ node_modules/ dist/ .test-dist/ +.tmp-tests/ coverage/ npm-debug.log* yarn-debug.log* diff --git a/.tmp-tests/harbor-route-TN4fdZ/network.json b/.tmp-tests/harbor-route-TN4fdZ/network.json deleted file mode 100644 index e12bb6b..0000000 --- a/.tmp-tests/harbor-route-TN4fdZ/network.json +++ /dev/null @@ -1 +0,0 @@ -{"gateway":"192.168.50.111","interface":"en0","mac":"","observedAt":"2026-08-28T08:14:27.401Z"} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-FQjZCa/bin/sing-box b/.tmp-tests/harbor-startup-recovery-FQjZCa/bin/sing-box deleted file mode 100755 index 6685254..0000000 --- a/.tmp-tests/harbor-startup-recovery-FQjZCa/bin/sing-box +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env node -const fs = require('node:fs'); -if (process.argv[2] === 'check') process.exit(0); -if (process.argv[2] === 'version') { - console.log('sing-box version 1.13.18'); - process.exit(0); -} -if (process.argv[2] === 'run') { - fs.appendFileSync(process.env.HARBOR_TEST_RUN_MARKER, 'run\n'); - setInterval(() => {}, 60_000); -} diff --git a/.tmp-tests/harbor-startup-recovery-FQjZCa/state.json b/.tmp-tests/harbor-startup-recovery-FQjZCa/state.json deleted file mode 100644 index 3b3161d..0000000 --- a/.tmp-tests/harbor-startup-recovery-FQjZCa/state.json +++ /dev/null @@ -1 +0,0 @@ -{"schemaVersion":6,"revision":4,"profiles":[{"id":"profile-a","label":"Основной","subscriptionUrl":"https://provider.example/0123456789abcdef0123456789abcdef","subscriptionConfig":{"outbounds":[{"type":"vless","tag":"srv_56f1cee6a72c8e7c","server":"boot.example","server_port":443,"uuid":"00000000-0000-4000-8000-000000000000"}]},"servers":[{"id":"srv_56f1cee6a72c8e7c","label":"Boot VPN","host":"boot.example","port":443,"protocol":"vless","tag":"Boot VPN","server":"boot.example","server_port":443,"type":"vless"}],"userInfo":{},"fetchedAt":null,"desiredServerId":"srv_56f1cee6a72c8e7c","lastRefreshAttemptAt":null,"lastRefreshErrorCode":null}],"desiredProfileId":"profile-a","appliedProfileId":"profile-a","appliedServerId":"srv_56f1cee6a72c8e7c","appliedServerSnapshot":{"id":"srv_56f1cee6a72c8e7c","label":"Boot VPN","host":"boot.example","port":443,"protocol":"vless","tag":"Boot VPN","server":"boot.example","server_port":443,"type":"vless"},"routeRules":[{"type":"domain","value":"api.example.com","enabled":true,"outbound":"vpn"},{"type":"domain_suffix","value":"example.com","enabled":true,"outbound":"direct"}],"appliedRouteRules":[],"routeRulesRevision":0,"connectionDesired":"running"} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-IRHjjF/bin/sing-box b/.tmp-tests/harbor-startup-recovery-IRHjjF/bin/sing-box deleted file mode 100755 index 6685254..0000000 --- a/.tmp-tests/harbor-startup-recovery-IRHjjF/bin/sing-box +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env node -const fs = require('node:fs'); -if (process.argv[2] === 'check') process.exit(0); -if (process.argv[2] === 'version') { - console.log('sing-box version 1.13.18'); - process.exit(0); -} -if (process.argv[2] === 'run') { - fs.appendFileSync(process.env.HARBOR_TEST_RUN_MARKER, 'run\n'); - setInterval(() => {}, 60_000); -} diff --git a/.tmp-tests/harbor-startup-recovery-IRHjjF/sing-box-config.json b/.tmp-tests/harbor-startup-recovery-IRHjjF/sing-box-config.json deleted file mode 100644 index 277b1b1..0000000 --- a/.tmp-tests/harbor-startup-recovery-IRHjjF/sing-box-config.json +++ /dev/null @@ -1 +0,0 @@ -{"outbounds":[{"type":"vless","tag":"server-a","server":"a.example","server_port":443},{"type":"direct","tag":"direct"}],"route":{"final":"direct"}} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-IRHjjF/state.json b/.tmp-tests/harbor-startup-recovery-IRHjjF/state.json deleted file mode 100644 index 1321207..0000000 --- a/.tmp-tests/harbor-startup-recovery-IRHjjF/state.json +++ /dev/null @@ -1 +0,0 @@ -{"schemaVersion":6,"revision":4,"profiles":[{"id":"profile-a","label":"Основной","subscriptionUrl":"https://provider.example/subscription-a","subscriptionConfig":null,"servers":[{"id":"server-a","label":"Server A","host":"a.example","port":443,"protocol":"vless"}],"userInfo":{},"fetchedAt":null,"desiredServerId":"server-a","lastRefreshAttemptAt":null,"lastRefreshErrorCode":null}],"desiredProfileId":"profile-a","appliedProfileId":"profile-a","appliedServerId":"server-a","appliedServerSnapshot":{"id":"server-a","label":"Server A","host":"a.example","port":443,"protocol":"vless"},"routeRules":[],"appliedRouteRules":[],"routeRulesRevision":0,"connectionDesired":"running"} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-KP1brk/bin/sing-box b/.tmp-tests/harbor-startup-recovery-KP1brk/bin/sing-box deleted file mode 100755 index 6685254..0000000 --- a/.tmp-tests/harbor-startup-recovery-KP1brk/bin/sing-box +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env node -const fs = require('node:fs'); -if (process.argv[2] === 'check') process.exit(0); -if (process.argv[2] === 'version') { - console.log('sing-box version 1.13.18'); - process.exit(0); -} -if (process.argv[2] === 'run') { - fs.appendFileSync(process.env.HARBOR_TEST_RUN_MARKER, 'run\n'); - setInterval(() => {}, 60_000); -} diff --git a/.tmp-tests/harbor-startup-recovery-KP1brk/sing-box-config.json b/.tmp-tests/harbor-startup-recovery-KP1brk/sing-box-config.json deleted file mode 100644 index 75959ac..0000000 --- a/.tmp-tests/harbor-startup-recovery-KP1brk/sing-box-config.json +++ /dev/null @@ -1 +0,0 @@ -{"outbounds":[{"type":"vless","tag":"server-b","server":"b.example","server_port":8443},{"type":"direct","tag":"direct"}],"route":{"final":"server-b"}} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-KP1brk/state.json b/.tmp-tests/harbor-startup-recovery-KP1brk/state.json deleted file mode 100644 index 1321207..0000000 --- a/.tmp-tests/harbor-startup-recovery-KP1brk/state.json +++ /dev/null @@ -1 +0,0 @@ -{"schemaVersion":6,"revision":4,"profiles":[{"id":"profile-a","label":"Основной","subscriptionUrl":"https://provider.example/subscription-a","subscriptionConfig":null,"servers":[{"id":"server-a","label":"Server A","host":"a.example","port":443,"protocol":"vless"}],"userInfo":{},"fetchedAt":null,"desiredServerId":"server-a","lastRefreshAttemptAt":null,"lastRefreshErrorCode":null}],"desiredProfileId":"profile-a","appliedProfileId":"profile-a","appliedServerId":"server-a","appliedServerSnapshot":{"id":"server-a","label":"Server A","host":"a.example","port":443,"protocol":"vless"},"routeRules":[],"appliedRouteRules":[],"routeRulesRevision":0,"connectionDesired":"running"} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-ZiMrHv/bin/sing-box b/.tmp-tests/harbor-startup-recovery-ZiMrHv/bin/sing-box deleted file mode 100755 index 6685254..0000000 --- a/.tmp-tests/harbor-startup-recovery-ZiMrHv/bin/sing-box +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env node -const fs = require('node:fs'); -if (process.argv[2] === 'check') process.exit(0); -if (process.argv[2] === 'version') { - console.log('sing-box version 1.13.18'); - process.exit(0); -} -if (process.argv[2] === 'run') { - fs.appendFileSync(process.env.HARBOR_TEST_RUN_MARKER, 'run\n'); - setInterval(() => {}, 60_000); -} diff --git a/.tmp-tests/harbor-startup-recovery-ZiMrHv/sing-box-config.json b/.tmp-tests/harbor-startup-recovery-ZiMrHv/sing-box-config.json deleted file mode 100644 index 6026e30..0000000 --- a/.tmp-tests/harbor-startup-recovery-ZiMrHv/sing-box-config.json +++ /dev/null @@ -1 +0,0 @@ -{"outbounds":[{"type":"vless","tag":"stale-server","server":"stale.example","server_port":443},{"type":"direct","tag":"direct"}],"route":{"final":"stale-server"}} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-ZiMrHv/state.json b/.tmp-tests/harbor-startup-recovery-ZiMrHv/state.json deleted file mode 100644 index 6be72f5..0000000 --- a/.tmp-tests/harbor-startup-recovery-ZiMrHv/state.json +++ /dev/null @@ -1 +0,0 @@ -{"schemaVersion":4,"revision":2,"connectionDesired":"running"} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-ZiMrHv/subscription-cache.json b/.tmp-tests/harbor-startup-recovery-ZiMrHv/subscription-cache.json deleted file mode 100644 index d7a98f7..0000000 --- a/.tmp-tests/harbor-startup-recovery-ZiMrHv/subscription-cache.json +++ /dev/null @@ -1 +0,0 @@ -{broken \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-xqwmBz/bin/sing-box b/.tmp-tests/harbor-startup-recovery-xqwmBz/bin/sing-box deleted file mode 100755 index 6685254..0000000 --- a/.tmp-tests/harbor-startup-recovery-xqwmBz/bin/sing-box +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env node -const fs = require('node:fs'); -if (process.argv[2] === 'check') process.exit(0); -if (process.argv[2] === 'version') { - console.log('sing-box version 1.13.18'); - process.exit(0); -} -if (process.argv[2] === 'run') { - fs.appendFileSync(process.env.HARBOR_TEST_RUN_MARKER, 'run\n'); - setInterval(() => {}, 60_000); -} diff --git a/.tmp-tests/harbor-startup-recovery-xqwmBz/sing-box-config.json b/.tmp-tests/harbor-startup-recovery-xqwmBz/sing-box-config.json deleted file mode 100644 index f18e4ec..0000000 --- a/.tmp-tests/harbor-startup-recovery-xqwmBz/sing-box-config.json +++ /dev/null @@ -1 +0,0 @@ -{"outbounds":[{"type":"vless","tag":"server-a","server":"state.example","server_port":443},{"type":"direct","tag":"direct"}],"route":{"final":"server-a"}} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-xqwmBz/state.json b/.tmp-tests/harbor-startup-recovery-xqwmBz/state.json deleted file mode 100644 index 69fad3e..0000000 --- a/.tmp-tests/harbor-startup-recovery-xqwmBz/state.json +++ /dev/null @@ -1 +0,0 @@ -{"schemaVersion":4,"revision":2,"subscriptionUrl":"https://state.example/subscription-a","servers":[{"id":"server-a","label":"State server","host":"state.example","port":443,"protocol":"vless"}],"selectedServerId":"server-a","appliedServerId":"server-a","connectionDesired":"running"} \ No newline at end of file diff --git a/.tmp-tests/harbor-startup-recovery-xqwmBz/subscription-cache.json b/.tmp-tests/harbor-startup-recovery-xqwmBz/subscription-cache.json deleted file mode 100644 index c0b05da..0000000 --- a/.tmp-tests/harbor-startup-recovery-xqwmBz/subscription-cache.json +++ /dev/null @@ -1 +0,0 @@ -{"url":"https://cache.example/subscription-b","config":{"outbounds":[{"id":"server-b","label":"Cache server","host":"cache.example","port":8443,"protocol":"vless","type":"vless","tag":"Cache server","server":"cache.example","server_port":8443}]},"servers":[{"id":"server-b","label":"Cache server","host":"cache.example","port":8443,"protocol":"vless","type":"vless","tag":"Cache server","server":"cache.example","server_port":8443}]} \ No newline at end of file diff --git a/.tmp-tests/harbor-state-contract-mDfxUH/bin/sing-box b/.tmp-tests/harbor-state-contract-mDfxUH/bin/sing-box deleted file mode 100755 index 8d3d334..0000000 --- a/.tmp-tests/harbor-state-contract-mDfxUH/bin/sing-box +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env node -if (process.argv[2] === 'check') process.exit(0); -if (process.argv[2] === 'version') { - console.log('sing-box version 1.12.13'); - process.exit(0); -} -process.on('SIGTERM', () => process.exit(0)); -setInterval(() => {}, 60_000); diff --git a/scripts/runtime-impact.mjs b/scripts/runtime-impact.mjs index 454a911..fabb770 100644 --- a/scripts/runtime-impact.mjs +++ b/scripts/runtime-impact.mjs @@ -6,10 +6,12 @@ import { fileURLToPath } from 'node:url'; const CODE_EXTENSION = String.raw`\.[cm]?[jt]sx?$`; const noRuntimeImpact = [ /^\.codex\//, + /^\.tmp-tests\//, /^docs\//, /^test\//, /^workpack\//, /^(?:AGENTS|PRODUCT|README)\.md$/, + /^context\.md$/, /^\.env\.example$/, /^\.gitignore$/, /^Dockerfile\.client$/, diff --git a/src/shared/versions.ts b/src/shared/versions.ts index 2d27cbf..08b5ce3 100644 --- a/src/shared/versions.ts +++ b/src/shared/versions.ts @@ -1,7 +1,7 @@ export const HARBOR_VERSIONS = Object.freeze({ macClient: '0.31.1', gatewayClient: '0.32.1', - gatewayBackend: '0.32.1', + gatewayBackend: '0.32.2', }); export interface ParsedVersion { diff --git a/test/deploy/runtime-impact.test.js b/test/deploy/runtime-impact.test.js index 112dee2..38a0d99 100644 --- a/test/deploy/runtime-impact.test.js +++ b/test/deploy/runtime-impact.test.js @@ -22,6 +22,14 @@ test('runtime impact keeps affected components separate from restart scope', () affectedComponents: [], restartScope: 'none', }); + assert.deepEqual(classifyRuntimeImpact(['.tmp-tests/harbor-route-test/network.json']), { + affectedComponents: [], + restartScope: 'none', + }); + assert.deepEqual(classifyRuntimeImpact(['context.md']), { + affectedComponents: [], + restartScope: 'none', + }); assert.deepEqual(classifyRuntimeImpact(['src/web/App.tsx']), { affectedComponents: ['control'], restartScope: 'control',