Skip to content

test(gate): coverage-gate self-test carries its own timeout - #42

Merged
NetDevAutomate merged 1 commit into
mainfrom
fix/coverage-gate-selftest-timeout
Sep 24, 2026
Merged

NetDevAutomate merged 1 commit into
mainfrom
fix/coverage-gate-selftest-timeout

Conversation

@NetDevAutomate

Copy link
Copy Markdown
Owner

One line: the coverage-gate self-test module carries pytest.mark.timeout(180).

test_gate_fails_when_a_new_route_is_untested scans every test file twice (route test + full-stack test): 26 s on a laptop, and on 2026-09-23 it crossed the 60 s unit ceiling under --cov on the python 3.13 lane of PR #41 (3.12 passed; green on rerun). pyproject.toml already states the rule for modules near the ceiling; this applies it, with the measurement recorded in the file. Not a change to the gate itself.

test_gate_fails_when_a_new_route_is_untested scans every test file twice: 26 s locally,
and on 2026-09-23 it crossed the 60 s unit ceiling under --cov on the python 3.13 CI lane
(3.12 passed; green on rerun; PR #41 run 35850516033). pyproject.toml already states the
rule: a module whose honest cost sits near the ceiling carries an explicit
pytest.mark.timeout rather than flaking against the global bound. 180 s, module-level,
reason recorded in the file.
Copilot AI lite review requested due to automatic review settings September 23, 2026 11:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The scoped timeout change addresses CI runtime failures without altering gate behavior.

Review effort: Lite
Findings: None

What changed in this PR

Adds a module-level 180-second timeout to the coverage-gate self-test, with documented runtime rationale and no gate logic changes.

Changes:

  • Applies pytest.mark.timeout(180).
  • Documents measured runtime and CI timeout context.
File Description
packages/​studyloop/​tests/​test_e2e_coverage_gate_selftest.py Adds the documented module timeout.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@NetDevAutomate
NetDevAutomate merged commit 8d31f1e into main Sep 24, 2026
16 checks passed
@NetDevAutomate
NetDevAutomate deleted the fix/coverage-gate-selftest-timeout branch September 24, 2026 07:49
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.

2 participants