Issue #2901: pre_push_generated runs pre-push five times and passes the 300 s test limit on a loaded runner: make the test cheaper, not the limit longer

Open and answer this issue on GitHub.

ready, bugs, queued · opened 2026-11-28 · updated 2026-11-29 · 0 comments

Found while #1548

What it is

tests/compiler/tests/pre_push_generated.nika, added with the pre-push digest check (3086bf3e2), runs scripts/pre-push.nika five times. That takes about 70 s per setting locally, and more than the 300 s per-test limit at the first setting on a loaded CI runner. It failed the suite on 1982ca30 with “the settings disagree”: the first setting timed out, the second passed.

A QA run raised the compiler shards’ limit to 900 s in .github/workflows/suite.yml (7786ce8c). The owner refused that on 2026-11-28: a time limit is not raised to make a test pass. That change is reverted.

To build

  1. Measure where the test’s time goes: the five pre-push runs, and in them which checks (fmt, adr-refs, lowered digest, derived, page-examples).
  2. Make the test cheaper while it checks the same things. For example: one pre-push run per case on the smallest staged set that shows it; the case setup shared; or the digest and derived checks called directly, not through the whole pre-push. Every case the test covers today stays covered.
  3. No change to a time limit (NIKAIA_TEST_TIME_LIMIT, project_tests_time_limit, the workflow).

Done when

pre_push_generated passes both settings in well under 300 s locally (the commit gives before and after), it covers the same cases, and the suite’s compiler shards pass on CI with the default limit.

Back to Open Issues