Skip to content

fix(tests): exclude TS test files from chat route census and calibrate dashboard status budget for runner TMPDIR - #9215

Open
loopx-agent wants to merge 1 commit into
mainfrom
codex/fix-web-ts-test-census-20261122
Open

loopx-agent wants to merge 1 commit into
mainfrom
codex/fix-web-ts-test-census-20261122

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Exclude TypeScript test directories (test, tests) and test/spec files (*.test.ts, *.spec.ts) in tests/architecture/test_chat_capabilities_route_single_owner.py::_web_sources, matching its documented rule that tests/examples intentionally restate /api/chat/capabilities (adding regression test test_web_census_excludes_typescript_test_files while keeping test_web_census_never_enters_dependencies and test_web_census_does_not_hide_first_party_io_errors). Resolves deterministic census failure against apps/workbench/packages/web/test/steward-conversation.test.ts.
  • Calibrate SURFACE_BUDGETS["dashboard_status_json"]["max_json_chars"] from 25_000 to 26_000 in examples/control_plane/hot-path-interface-budget-smoke.py and document the evidence in docs/reference/contracts/interface-budget-contract.md:
    • Base v2.3.0 and head 55bae0ac55 measure the identical 24,247 chars, 339 nested keys, and 26 top-level keys under identical short TMPDIR (zero production payload growth; quota_should_run_json shrank 19,669 -> 18,677).
    • Under pytest session effect-runtime isolation and the sharded qualification runner, longer TMPDIR prefixes expand the complete fixture-root paths inside dashboard_status_json to 25,151 and 25,311 chars respectively. 26,000 retains 689 chars of runner headroom while preserving 350/27 structural bounds, complete fixture paths, and a new explicit oversized dashboard_status_json rejection check.

Verification

  • pytest -q tests/architecture/test_chat_capabilities_route_single_owner.py tests/control_plane/test_hot_path_interface_budget_fixture.py: 14 passed in 9.48s
  • examples/control_plane/hot-path-interface-budget-smoke.py: direct 24,599/26,000 (ok), nested sharded runner TMPDIR 25,047/26,000 (ok)
  • ruff check, mypy (17 strict files), check_rfc_bilingual.py (origin/main..HEAD & 92271fe114..HEAD), 13-surface release-readiness-doc-smoke.py, loopx check (0 errors), Goal-bound CQR (personal-loopx-maintenance), and loopx canary premerge --from-git-diff --git-diff-base origin/main --goal-id personal-loopx-maintenance

…e dashboard status budget for runner TMPDIR

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

This branch has not been deployed

No deployments
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