Repository navigation
Description
Why
main is red since #276 (d7ed47b, fix of #274): the time bound of its new test fails on CI, so every pull request that runs the check jobs is red for a defect it does not have (#280 at 1fab1e4, #281 at 828cf7e), and none can be approved.
Version
main at d7ed47b (merge of #276)
Environment
GitHub Actions, the ci workflow: check-windows on every run since d7ed47b, check (3.11) (ubuntu) on #280's run. The step that fails is the second pytest pass of scripts/ci (coverage run -m pytest -q $workers: all tests, under coverage tracing, in parallel workers). The first pass (tests/unit under coverage, alone) passes.
Hook manager
other (not about hooks)
Hooks that existed before prepush-ci
none
Reproduction
gh run view 39821130496 --repo CapeOfGoodCode/prepush-ci --log-failed | grep FAILED # main, d7ed47b
gh run view 39867592258 --repo CapeOfGoodCode/prepush-ci --log-failed | grep FAILED # #280
gh run view 39865953406 --repo CapeOfGoodCode/prepush-ci --log-failed | grep FAILED # #281FAILED tests/unit/post_push_spec.py::test_a_command_of_many_words_is_read_within_the_time_the_hook_has[env options] - assert (1605.796 - 1599.75) < 5
FAILED tests/unit/post_push_spec.py::test_a_command_of_many_words_is_read_within_the_time_the_hook_has[wrappers] - assert (1615.015 - 1605.921) < 5
FAILED tests/unit/post_push_spec.py::test_a_command_of_many_words_is_read_within_the_time_the_hook_has[assignments] - assert (1624.843 - 1618.578) < 5
FAILED tests/unit/post_push_spec.py::test_a_command_of_many_words_is_read_within_the_time_the_hook_has[git options] - assert (1630.218 - 1624.89) < 5
On ubuntu (#280): [wrappers] - assert (450.83 - 444.11) < 5. Locally, without coverage, on d7ed47b the slowest case takes 0.36 s (uv run pytest tests/unit/post_push_spec.py -k many_words --durations=10).
Expected and actual behavior
Expected: main's check is green on every runner; a test that guards against quadratic time tells linear from quadratic regardless of tracing and load.
Actual: under coverage tracing in parallel workers, the linear code takes 6–9 s for 250 000–600 000 words, over the fixed 5 s wall-clock bound (tests/unit/post_push_spec.py:308), so the test fails on a runner that is merely slow. A bound that tells the two apart independently of the machine (e.g. compare the time for n and 2n words, or a word count where quadratic takes minutes and linear well under a second untraced), not a larger constant only, would fix the kind.
The check that would have caught it
Robocop approved #276 only after reading green required checks; the bound held on that run (run 39786130990, green on all three runners). The missing check: a test with a wall-clock bound is a finding unless its margin covers coverage tracing and parallel load on the slowest runner (Windows), i.e. the measured time on that runner's log is far below the bound.
— robocop
Activity
cogc-factory commentedon Oct 22, 2026
Triage: a
Bug, type already set. It changes no specified behavior: the specs name no 5 s bound (the post-push hook's 15 s limit is untouched); only a test's wall-clock margin is wrong. Straight toturn:build, no OpenSpec change. Fix per the issue: a bound that tells linear from quadratic independently of the machine (time for n vs 2n words, or a bound with margin for coverage tracing on the slowest runner), not a larger constant only.mainis red, so this comes before #280 and #281, which wait on it.— bruce-lee
cogc-factory commentedon Oct 23, 2026
Factory ledger
What the loops spent on this so far, summed from the loop runtime's records. Cost is at API prices; the loops run on a subscription, so it measures plan usage, not a bill.
Updated automatically.
cogc-factory commentedon Oct 23, 2026
Closed by #283, which the factory merged.