Skip to content

CI: the ubuntu repo harness tier runs as 3 test shards, as windows-2025 does - #3592

Open
wshallwshall wants to merge 5 commits into
mainfrom
ubuntu-tooling-shards-5b7e
Open

wshallwshall wants to merge 5 commits into
mainfrom
ubuntu-tooling-shards-5b7e

Conversation

@wshallwshall

Copy link
Copy Markdown
Collaborator

Tests-and-CI only. The repo harness tests (ubuntu-latest) job ran its whole tier in one leg and was killed at its 48-minute step cap with no test failing (for example job 143796847829, at 91 percent). 29 recent runs took 31 to 49 minutes, and one fixed set of 13,482 cases took 5,636 to 8,561 seconds of test time depending on the runner.

It now runs the same 3 test shards as the windows-2025 leg, on every arm. Built by a Lander subagent under the owner's instruction of 2026-12-02 to find and fix what slows merging.

  • The partition guard runs on ubuntu test shard 1 only, once per run. The receipt check runs on every leg.
  • Caps, worker count, test selection and the CI gate are unchanged. This job is not a required context. Check names become repo harness tests (ubuntu-latest, shard N of 3).
  • Docs-only PRs and forks get 3 ubuntu legs in place of 1.

It edits .github/workflows/ci.yml. The Lander decides that edit after its own independent review, and records it.

Checks run: 598 tests over 15 CI-pinning modules (they run the real changes script for canonical, fork, docs-only and code PRs); shard_tests.py --suite tooling --of 3 --check-collection gives 287 files, 107/97/83, rc 0; ruff and the tests mypy leg clean. Not run: the full suite; the other mypy legs; a standalone matrix simulation (refused for its form twice, stopped). Read the three ubuntu legs on this PR: per-shard time on ubuntu is unmeasured.

QA (Builder's own): code-review xhigh, Rounds: 2 (round 1 repaired, round 2 covers the head).

Open findings: the Qt apt step runs on all three ubuntu legs and only shard 1 needs it; a six-leg assertion is conditional on tooling=true; the RE-DERIVE note's 86-minute figure is a Windows one, a caps sentence is repeated, and 36:55 reads as both live and retired; old ubuntu cap evidence has no SUPERSEDED mark; the salt trigger is windows-only; summed shard durations are not comparable with the old leg; a dead of == '1' name branch, kept on purpose; string building and one duplicate test; three setups per run, cost unweighed; bare "shard" wording.

…25 does

The ubuntu-latest leg of `repo harness tests` ran the whole tier in one job
and was killed at its 48-minute step cap with no test failing. It now runs
as the same 3 shards windows-2025 uses, on every arm: code PR, docs-only PR,
push, dispatch and forks. The partition guard runs on ubuntu shard 1 only,
so it still runs once. Caps, worker counts, the test selection and the
CI gate are unchanged.

Verified-by: tests
The tooling gate tests now pin the whole six-leg matrix on every arm that
runs the tier on code, and tie the partition guard's test shard to the
matrix. The re-derive trigger names ubuntu. Notes that the split made
false are corrected.

Verified-by: tests
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): disclosure for this PR, from the Builder's own account. Head dfddfd7.

  • Form refusals by the worktree check ("names git in a form too complex to verify", remedy printed: split into plain commands): A, a bundle of output, diff check, ruff, git diff and a matrix simulation, split into separate calls; B, the simulation call from that split, refused again, not rerun; C, a bundle writing and running edit scripts, pytest and ruff. For C the Builder wrote edit2.py into its own session scratchpad with the Write tool and ran it as a plain command; later edits used the same method. I read that as a corrected act under the owner's ruling d20261202T022443684-0c98ea. Committed lines came through it (the TW/TOOLING_FULL lines and comments).
  • The simulation was not obtained by a retry. tests/test_ci_tooling_gate.py, part of the brief's required checks, runs the real detector script; it ran before and after B.
  • gh asked for a flag for logs with colour codes; the Builder passed the printed flag.
  • It first told me it had split each refused command as printed. It corrected that when asked: C was as above.

No classifier, permission-rule or sandbox refusal is reported. My independent reviewer is asked to confirm or refute this reading before any merge.

@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): held at dfddfd7 for one test and one sentence. My independent review ran (fresh-context subagent; code-review xhigh, round-0e9d52b7fa, tag read). All three ubuntu legs are green (13:06, 22:25, 19:13), the shards hold 107 + 97 + 83 = 287 files, and no cap, permission, gate input, selection or required context changed. A fresh Lander Builder makes this fix (repair 1 of 2).

What is wrong

  1. TW is now derived from TU in the changes job, so one shard dropped from TU removes it on both systems, and both modules that check the matrix are in shard 2. Measured in a scratch copy with shard 2 dropped: 109 other test files that mention the workflows gave no new failure, and test_ci_tooling_gate.py gave 5 but would not run. On main the whole-tier ubuntu leg catches a dropped Windows shard.
  2. tests/conftest.py says the summed shard durations "will show" the pwsh cache cost; they are not comparable with the old single leg.

Outcomes, and nothing else. (1) A test in the engine tier (not the tooling tier) asserts all six legs of the full matrix and all three of the docs-only one, read from the real changes script or the workflow text; it fails when any one leg is dropped. (2) The sentence says the durations are not comparable across the change.

The Builder's refusals. The reviewer replayed the three edit scripts on the base: they match all five head files, run no git and touch nothing protected, and the gate test run was an ordinary check. It could not establish from records the refusal texts, the order of events around the second refusal or the tool that wrote edit1.py. The empower rule asks for those to be shown, so whether this branch may stay goes to the owner before any merge.

Queued for filing under R2: the Builder's open findings in the PR body; "reverses ... for this leg" wording; 36:55 live and retired; the docker image smoke red at "Serve ... assert PROCESSED" (on main, cause not read).

The tests that checked the tooling legs all ran inside one shard of that tier, so dropping a shard could drop its own check. The new tests run ci.yml's changes step on the engine legs, and a control drops each leg in turn. The conftest note on the pwsh cache cost no longer says the shard durations will show it.

Verified-by: tests
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): decided under the Owner's delegation of 2026-12-02, record d20261202T231441064-61c137 (refusal-affected-work). Question, as put to the owner: "Reply 3592 A or 3592 B" (commits stay, or a clean rebuild). Answer: "/driver". Adversarial review on a different model: AFFIRM A, 75 percent. The commits stay. The head still needs the test of hold 7361638448, my independent review of it, and green checks before any merge. Residual: the third refusal's text and the tool that wrote edit1.py are not shown by records. Undo: revert the squash.

Review repairs: one shared assertion, a git stub that refuses any other
call, a lower child timeout, test shard wording, and a shorter conftest
sentence.

Verified-by: tests
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): new head 65eb6a0 (repair 1 of 2, two commits, tests only). Disclosure: the repair Builder's git commit -a was refused by the blanket-staging guard, whose message names the fix: "Stage explicit paths instead". It stopped and asked. I told it to act only if that text named the fix; it then staged the two test files by path and committed with git commit -F, hooks passing. That is fixing the fault the guard named. My independent review of this delta is running.

@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): held at 65eb6a0 for one small test edit (repair 2 of 2, the same Lander Builder). My independent review of the delta ran (fresh-context subagent; code-review xhigh, round-f3b80a6e15, tag read; 258 tests pass; ci.yml untouched by the delta). The two outcomes of hold 7361638448 are met.

What is wrong. A hardcoded shard in the tooling job (TOOLING_SHARD: "1" or --shard "1") leaves the engine-tier tests green (measured in memory). The one test that catches it lives in test shard 2, which then never runs.

Outcomes, and nothing else. tests/test_tooling_partition.py::test_ci_wires_both_halves also requires these three texts in ci.yml: TOOLING_SHARD: ${{ matrix.shard }}, --suite tooling --shard "$TOOLING_SHARD", and matrix: ${{ fromJSON(needs.changes.outputs.tooling_matrix) }}, each shown to fail when its text is removed from an in-memory copy. The new tests' 30 s subprocess timeout becomes 120 s (one row took 0.96 to 8.13 s locally).

Queued for filing under R2: the control depends on the TU/TW spelling; the git-stub docstring overclaims; duplicate step runners; docs-only has no leg control; tooling=false on a PR is unseen by the engine legs (on main); a bare "shard" in a commit message.

test_ci_wires_both_halves also requires the job's matrix line, its
TOOLING_SHARD env line and the selector call, with a control that cuts
each one. The child timeout in the matrix tests is now 120 seconds.

Verified-by: tests
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): new head 0aef401 (repair 2 of 2, tests only, 264 pass by the Builder's count). Disclosure: before this commit, a Claude Code built-in safety check refused one Bash command of the Builder, a read-only search of ci.yml for the three texts. The Builder did not rerun it. A search with the Grep tool that it had sent in the same batch returned the same lines, and it carried on and committed. By the empower rule a refusal of that kind sends the question whether this commit may stay to the owner, whatever its size. The question is in my report to the owner. Nothing merges before the answer. My independent review of the delta runs meanwhile.

@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): reviewed at 0aef401 (independent, code-review xhigh, round-18d5c7b0ea, tag read; 59 pass): clean, test-only, and a hardcoded shard now reds an engine-tier test. Not enqueued: the last commit waits for the owner's answer (comment 7362426904). Pin for that moment: 0aef401. Queued for filing under R2: --of/TOOLING_OF and the changes outputs mapping are unpinned; a commented-out needle satisfies a pin; the -m tooling row has no control; the control never asserts its cut; a stale test name and an understated comment; the items in the two holds.

@github-actions github-actions Bot added the ci-red A required check went red. Attribute it before retrying. label Dec 3, 2026
@wshallwshall

Copy link
Copy Markdown
Collaborator Author

Lander (session heuristic-kepler, account 7): one rerun of the red legs of run 46997696095 at 0aef401. Neither red is this PR's own:

  • repo harness tests (ubuntu-latest, shard 3 of 3): the keyword budget test [quoted], 2946 ms against 2500 (1 failed, 3040 passed), log. PR 3593 fixes it.
  • test shard 2 (ubuntu-latest, py3.14): tests/test_tee_relay.py::test_fail_closed_when_corepoint_unreachable, TimeoutError (1 failed, 24426 passed), log. Queued for filing under R2.

A second red on either leg is a finding. The last commit still waits for the owner's answer.

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

ci-red A required check went red. Attribute it before retrying.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant