fix(test): stop 3 tests from bleeding real autonomy overrides via self-repo fallback - #6491
fix(test): stop 3 tests from bleeding real autonomy overrides via self-repo fallback#6491JSONbored wants to merge 1 commit into
Conversation
…f-repo fallback repository_settings-driven tests using "JSONbored/gittensory" as a fixture repo name, with no fetch mock of their own, made a REAL network call to github.com/ghraw -- which transparently follows the gittensory->loopover rename and serves the actual live .loopover.yml. That file gained a real settings.autonomy block (#773, loopover#6468), so these tests silently inherited autonomy overrides they never configured, instead of the DB-only setup they actually assert against. Fixes 3 tests: stubs fetch to a deterministic 404 (no live network dependency) and overrides LOOPOVER_DRIFT_ISSUE_REPO so a 404 doesn't fall through to the bundled self-repo manifest fallback (which carries the same autonomy block) either.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-16 11:21:03 UTC
Review summary Blockers
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, which fixes the same 3 tests via the same technique (stub fetch + explicit self-repo override) but also traces the issue to its actual root cause: Running the full suite after fixing only these 3 surfaces 7 more affected files (ops-wire.test.ts, draft.test.ts, public-stats.test.ts, maintainer-recap-wire.test.ts, upstream-ruleset.test.ts, index.test.ts, queue.test.ts, routes-self-dogfood-registration-pack.test.ts, public-stats-route.test.ts, routes-errors.test.ts) that share the identical root cause and would still be broken after this PR alone. #6493 fixes the default itself plus all of these. |
Summary
Scope
Validation