Skip to content

test: keyword-fallback tests get a source-check budget no CI runner can exhaust - #329

Merged
varun369 merged 1 commit into
mainfrom
fix/fallback-test-budget
Nov 20, 2026
Merged

varun369 merged 1 commit into
mainfrom
fix/fallback-test-budget

Conversation

@varun369

Copy link
Copy Markdown
Member

What this changes

Test-only. The keyword-fallback tests stop depending on how fast a CI runner is.

Why

The 4.2.31 full suite on Linux (run 44608340138, shard 5) failed test_fallback_applies_project_and_kind_facets with ids == set(). The fallback's source check overran its 0.5 s production budget on a busy runner and, failing closed by design, returned nothing. The same test passes on macOS and locally. The test is about facet filtering, not timing.

How it was tested

  • A shared autouse fixture (tests/test_server/conftest.py) sets a 10 s budget; the CLI fallback test passes it explicitly. Tests that check the budget itself pass their own value and keep it.
  • Forcing the fixture to 0 s reproduces the CI failure exactly (AssertionError: set()).
  • The 11 fallback test files: 72 passed locally.
  • Full suite on Linux for this branch: dispatched (runner=ubuntu-24.04).

Type of change

  • Build, CI or packaging (tests only; no product code, no release needed)

🤖 Generated with Claude Code

…an exhaust

The 4.2.31 full suite on Linux failed test_fallback_applies_project_and_kind_facets
with ids == set(): the fallback's source check overran its 0.5 s production
budget on a busy runner and, failing closed, returned nothing. The test is
about facet filtering, not timing. A shared autouse fixture now gives the
server tests a 10 s budget (the CLI fallback test passes it explicitly);
tests about the budget pass their own value and keep it. Forcing the
fixture to 0 s reproduces the CI failure exactly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@varun369
varun369 merged commit 05f1322 into main Nov 20, 2026
13 checks passed
@varun369
varun369 deleted the fix/fallback-test-budget branch November 20, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant