test: remove slow-test ratchet pins#1143
Conversation
Size Report
Startup median (7 runs, lower is better):
Top changed chunks:
|
|
Fallow is currently blocking this PR. The failed job reports one complexity finding: src/platforms/android/tests/devices.test.ts:264 HIGH (17 cyclomatic, 17 cognitive, 79.4 CRAP). Please split the test setup/assertion path or extract focused helpers, then rerun pnpm check:fallow --base origin/main and reply with what changed, what was validated, and anything still blocked. |
178f3b8 to
7493c39
Compare
|
Reviewed against #1098. The slow-test reporter now enforces the budget without the pin allowlist, and the touched former offenders avoid real-time waits by using budget-derived cadence, command-executor overrides, or budget-wiring assertions. CI is green, including the slow-test gate and Fallow. No blockers found. |
ReviewReviewed the full diff and traced the constants/side-effects the new assertions depend on. This is a clean, well-motivated test-infra change: it retires the
Findings1. (main risk) Wholesale pin removal bets on CI headroom holding. The ratchet is dropped in one shot (~35 entries), but only ~4 files are actively converted here ( 2. (robustness) In-process 3. (coverage) The snapshot-helper-session test trades end-to-end for a wiring assertion. The old test proved a real 3.2s response still completes under the command budget; the new one asserts the resolver returns 4000 and captures with a no-delay provider. That's the intended "don't wait real time" trade, but the regression it guarded (session cap truncating slow snapshots) is now only indirect — it trusts 4. (minor) 5. (nit) Nothing blocking — (1) is the one I'd most want de-risked, since a flaky gate erodes trust in the very ratchet this PR is strengthening. |
7493c39 to
b710276
Compare
|
Summary
Fixes #1098
Validation
pnpm formatpnpm check:quickpnpm exec vitest run src/__tests__/vitest-slow-test-reporter.test.tspnpm test:unit: slow-test gate warning-band only; one existing parallel-load race failed insrc/utils/__tests__/daemon-client.test.ts > downloadRemoteArtifact removes partial files after mid-stream aborts, andpnpm exec vitest run src/utils/__tests__/daemon-client.test.ts --reporter=verbosepassed in isolation.