fix(test): stop repair diagnostics test racing a live manifest fetch - #6483
fix(test): stop repair diagnostics test racing a live manifest fetch#6483JSONbored wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
❌ 4 Tests Failed:
View the top 2 failed test(s) by shortest run time
View the full list of 2 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
The installation-repair test's first request had no fetch stub, so loadRepoFocusManifest hit the real github.com/ghraw endpoint. Worse, its target repo matches the default LOOPOVER_DRIFT_ISSUE_REPO test env value, so on any fetcher miss the loader's self-repo fallback injected the live repo's autonomy:auto block anyway, making the test fail deterministically regardless of network outcome. Stub fetch and point the env at an unrelated repo name so neither path fires.
8ad5199 to
96f8a7a
Compare
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-16 11:20:52 UTC
Review summary Nits — 4 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agentCI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
Closing as superseded by #6493 — same root cause, broader fix. See the note on #6491 for the full explanation: this test's failure and #6491's 3-test fix are both symptoms of |
Summary
/repairrequest didn't stubfetch, soloadRepoFocusManifestcould hit the realgithub.laiyagushi.com/ghrawendpoint forJSONbored/gittensory.LOOPOVER_DRIFT_ISSUE_REPO, so on any fetcher miss the loader's self-repo fallback injected the live repo's.loopover.yml(which carriesautonomy: auto) regardless of network outcome — making the test fail deterministically in any sandbox with outbound network access, independent of whether the live fetch itself succeeded or failed.fetchto a deterministic 404 and pointLOOPOVER_DRIFT_ISSUE_REPOat an unrelated repo name so neither the real network path nor the self-repo fallback fires.Test plan
npx vitest run test/integration/api.test.ts -t "serves installation repair diagnostics"— green, 5 consecutive runsnpx vitest run test/integration/api.test.ts— 47/47 passingnpm run typecheck— clean