Skip to content

chore(release): 26.11.10 - #13

Merged
ancongui merged 17 commits into
mainfrom
hotfix/26.11.10
Nov 10, 2026
Merged

ancongui merged 17 commits into
mainfrom
hotfix/26.11.10

Conversation

@ancongui

Copy link
Copy Markdown
Collaborator

What and why

This hotfix fixes the devkit problems agents hit while shipping 26.11.9, and only those. dev test prove misreported
parametrized tests and stopped at node --test files; plain dev test started hours of tests on long-lived branches;
dev push asked for a new local run after a change to a CI timeout alone; dev release waited about 35 minutes for
main to repeat a pull request run that had already passed on the same tree; and the Stop hook asked one session to
revise another session's plans.

Changes

  • dev test prove: each parametrized case is reported by its id with its own result; files it cannot run are
    listed under "not proven" and the rest is proven; a node runner for packages whose tests use node --test
    (option values, build steps, pipes and redirects are read conservatively: anything unclear means no runner).
  • Plain dev test on a branch with 100 or more changed files reaching 50 or more test files starts nothing, names
    dev test run <files> and exits 2; --affected runs the selection.
  • Host-only CI evidence: when the only change since a tree with local evidence is a workflow's timeout-minutes,
    concurrency or comments, the evidence carries over. Two independent checks must agree (devkit's parse and a
    line-by-line diff), YAML anchors, aliases, merge keys, tags and directives are refused, runs-on needs a local run,
    and nothing under .github or a root zizmor.yml may be uncommitted.
  • dev release no longer waits for main to repeat a passed PR run: every job still running on HEAD, and every job
    the PR run did not pass, must have succeeded in this repository's PR run of the same tree, matched by workflow id.
  • Stop hook: it asks only about plans the session's own tool calls wrote.
  • Security: a JUnit report's entity declaration is refused anywhere before the root element (it was checked only
    in the first 4 KB); dev test run refuses a path outside the repository.

The full list is in CHANGELOG.md under 26.11.10.

How to verify

  • dev ci --run --resume on tree 739975c: 7 steps passed, 4,219 tests re-run, gitleaks, semgrep, osv-scanner, trivy
    and zizmor clean.
  • Each fix has tests that failed first (dev test prove); the changed modules pass on Python 3.15 and 3.9.6.
  • Code review, two security reviews and a third approval review: 2 medium and 7 low findings, all fixed in this
    branch; final approvals recorded.
  • The full Python 3.9 suite runs in this PR's CI.

Risk and rollback

Low to medium: the delivery shortcuts can let a push or a release skip a wait, so they are deliberately strict (a
false refusal only costs a run). Rollback: dev update to 26.11.9.

Links

  • Work items: B-g46l7xx6prb, B-g4adiy2xwf2, F-g4adrlnigl9, F-g41nxcnhfpn, F-g43e3ct1hlj, B-g4622byue5t.

The Stop hook told a session outside any project to revise plans another session had changed in another project, because it scanned every plan changed since the session started. Revising them would break the one-project rule and disturb the session that works there. A session that moved to another checkout missed its own plans instead.

The PostToolUse and PostToolUseFailure hooks record in the session record each plan file the call wrote: the file an Edit or Write names, or, for a shell call that may write, a plan whose file name the command holds and that changed while the call was open in the call ledger. The Stop check lists only those plans that still need dev plan revise, each judged by the project folder it is in, whatever folder the session works in now.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_hooks_stop_plans tests.test_handoff_check (10 tests OK on each); dev test prove on those files (6 of 6 pass 5 of 5 runs, all 6 fail without the change); dev test run on the 37 test files that drive the PostToolUse and Stop hooks (660 tests passed)
A commit that changed only timeout-minutes in ci.yml made dev push ask for a new 35-minute local run, and dev ci --run --resume re-ran the whole test step, though a local run cannot exercise a job timeout, a runner or a concurrency group.

When every file changed since a tree with local CI evidence is a GitHub workflow whose parsed YAML is the same once timeout-minutes, runs-on and concurrency are left out (comments drop out in the parse), the evidence carries over to the new tree after actionlint and the devkit workflow audit pass on it. dev push, dev pr create, dev pr ready, dev release and dev ci --evidence record it as a host-only marker that names its base run and what was checked, and say so; resume keeps the passed steps, except scanners that read every file.

A change to a run command, a step, a trigger, the permissions, the matrix or any other file still needs a local run, and the refusal names the first difference. The rule is in the help of dev push and dev ci.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_gitx_ci_shortcuts (10 tests OK, real actionlint included); python3 -m unittest tests.test_gitx.ReleaseTests tests.test_gitx.PushTests tests.test_gitx.LocalCiTests (22 tests OK)
dev release refused with 'CI is still running' while main's CI repeated a merge commit whose tree the pull request run had already tested and passed; the 26.11.9 release waited about 35 minutes, twice.

When HEAD's CI is still running, dev release looks for a commit with HEAD's tree whose pull request runs passed every workflow HEAD is running: a parent of HEAD (a merge commit's second parent is the PR head), then the PR heads GitHub links to HEAD (a squash or rebase merge). It releases without waiting and says which run it relied on. A skipped, still running or push-only run does not count, and a failed run on HEAD still refuses.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_gitx_ci_shortcuts tests.test_gitx.ReleaseTests (22 tests OK); the boundary tests also fail against permissive variants of the twin check and of the run state
dev test prove listed a parametrized pytest test by its bare name as failing, with another test's error, and stopped at the first .mjs test it could not run, so crew members compared counts and showed red steps by hand (19 times in kit-consulting). Plain dev test started about 111 minutes of tests on a branch 1,388 files from main.

prove reports each case of a parametrized test by its id with its own result; only a selected name that no case answered to gets a row of its own, with the error of its own file.

prove lists the changed or named tests no runner here can run, with the reason, and proves the rest; it exits 2 only when none is left. A package.json test script that runs node --test, or its test scripts with node, gives a node runner when node is on the PATH: a node:test case by its title, a plain test script as one test, and a script its folder's files import as a helper. dev test and dev test run use it too.

Plain dev test does not start the selection of a branch 100 or more files from its base that reaches 50 or more test files: it gives the count and estimate, names the tests of the uncommitted changes as dev test run <files>, and exits 2; dev test --affected runs them all, and dev test plan says so. docs/testing.md and docs/commands.md describe it.

Verified: python3 -m unittest tests.test_testx: 91 OK on Python 3.15 and on /usr/bin/python3 3.9; dev test run on the 10 test files that use testx: 441 passed; dev test prove tests/test_testx.py: 7 of 7 new tests green 5 of 5 runs and all fail without the change; dev docs check on both docs: 0 issues
26.11.10 ships the dev test, delivery and Stop hook fixes reported while shipping 26.11.9

Verified: version files read 26.11.10 (git diff: 4 lines); tests.test_cli_completion OK (completions match the parser)
The guides and skills said every change since a local run needs a new one and that dev release waits for main's CI, so a timeout bump cost a 35-minute local run and a release waited for main to repeat a passed pull request run.

delivery.md, ci-cd.md and the delivery and cicd skills say when local CI evidence carries over: only timeout-minutes, concurrency (group, cancel-in-progress) or comments changed in committed GitHub workflows without YAML anchors, aliases, merge keys or tags, and actionlint and dev ci audit pass. A runner, a step or any other file still needs a local run, and resume keeps passed steps except scanners. They also say when dev release releases on a passed pull request run of the same tree, and that a failed run on HEAD still refuses.

The testing skill says that plain dev test does not start a wide branch's selection and exits 2.

Verified: dev docs check on the five files: 0 issues, 33 links OK, 0 Vale findings; python3 -m unittest tests.test_gitx_ci_shortcuts: 14 OK; carry-over, refusal and resume reproduced in a scratch repository
A node option whose value was the next word (--test-coverage-include src) gave node a broken command line, so dev test and dev test prove reported zero tests; --test-reporter spec added spec to the suite; a build before node --test (tsc && node --test dist/) was skipped, so the tests ran on stale output; and dev test run with no paths was held on a wide branch, which the docs reserve for plain dev test.

Node options are read against the options that take a value and the switches node has; an option devkit does not know, written without =, leaves the package without a runner instead of a wrong one. Options end at the first path, as in node. A step before the tests (another command, a node script that is no test, a pretest script) means no runner; a step after them changes nothing. Plain dev test alone holds a wide branch's selection; dev test run starts what it selects. The no-runner reason and the testing guide say how to get the runner back.

Verified: python3 -m unittest tests.test_testx (98 OK on 3.15.2 and /usr/bin/python3 3.9.6); dev test run on test_testx, test_testaudit, test_gitx, test_cli_wiring (266 passed); dev test prove tests/test_testx.py --since HEAD (7 of 7 fail without the change); dev docs check on both pages clean
The security review found two gaps in the CI host settings rule: a runs-on change kept the local evidence although another runner, such as a self-hosted one, runs the job differently, and the rule rested on devkit's own YAML parser alone while GitHub reads workflows with another one, so two parsers could read one file differently.

runs-on is no longer a host setting. On top of devkit's parsed comparison, two text checks must pass for each changed workflow: neither version uses a YAML anchor, alias, merge key, tag or directive (a scan of the text that errs toward finding one, but passes over run scripts, ${{ }} expressions and quoted globs), and every line git diff adds or removes is blank, a comment, or a timeout-minutes, concurrency, group or cancel-in-progress line indented by spaces, with no carriage return or other line break inside it. Each refusal names the file, the line and the reason. The help of dev push and dev ci states the new rule.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_gitx_ci_shortcuts tests.test_gitx (113 tests OK each, real actionlint included); dev test prove: the new runner, anchor, line and push tests fail without the change; the scan flags 0 of 86 workflows on this Mac
dev release matched a passed pull request run to main's running run by workflow name only. A ci.yml whose publish or integration job runs only on push (if: github.event_name == 'push') passes its PR run with that job skipped, so dev release tagged while main still ran the job, and a failure there shipped the release on a red main.

Every job still running or queued in HEAD's runs now needs a job of the same workflow and name that succeeded, not skipped, in the pull request runs of the commit with HEAD's tree (gh run view --json jobs). A job that already failed on HEAD, a run whose jobs gh cannot list yet, or a job the PR run never ran keeps the wait. A push-only job that already passed on main needs nothing from the PR run.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_gitx_ci_shortcuts tests.test_gitx (115 tests OK each); dev test prove: the push-only job and running-job tests fail without the change; dev ci --run --resume passed (4213 unit tests and the security scans, 28m36s)
the release shortcut now matches every job still running on HEAD, and the host-only CI rule refuses runs-on, anchors, aliases, merge keys, tags and directives; the docs, the delivery skill and the CHANGELOG said the earlier, looser rules

Verified: dev docs check on the four files: 0 structure issues, all links resolve, no Vale error
Three gaps in the node runner let dev test read or run what it should refuse. The JUnit readers looked for a DOCTYPE in the first 4,096 characters only, so a declaration after a longer comment expanded its entities: a 5,333-character report gave a 1,000,000-character case name on Python 3.9.6 and 3.15.2. dev test run ../outside.test.js ran a file outside the repository. A node test script with a pipe or a redirect (node --test | tee out.txt) put '|', 'tee' and 'out.txt' in the suite, so node skipped its own discovery.

Both JUnit readers now decide on the whole prolog: after a byte order mark, whitespace, the XML declaration, processing instructions and comments of any length, a '<!' refuses the report. A failure that quotes an HTML page (<!DOCTYPE html> in its text) is read again; the old window dropped such reports.

dev test run refuses a path whose real path is outside the repository (relative, absolute, or a symlink out of it) with 'no test runner for:', before anything runs.

A node test script whose test command has an unquoted |, > or < gets no runner, like a build step before the tests; a quoted | (a name pattern) and a pipe in a step after the tests keep it. docs/testing.md says both.

Verified: python3 (3.15.2) and /usr/bin/python3 (3.9.6) -m unittest tests.test_testx: 102 tests OK on each; dev test run tests/test_testx.py: 102 passed; dev test prove tests/test_testx.py --since HEAD: the 4 new tests pass 5 of 5 runs and fail without the change; dev docs check docs/testing.md: 0 issues
dev release could tag before a push-only job ran: GitHub lists some jobs only once they start (a reusable workflow, a dynamic matrix, a job waiting on needs), so a publish job the PR run skipped was not yet among main's running jobs and nothing held the release. A fork's PR run, which had no secrets, could also stand in, and two workflow files with one name were taken for one.

Every job of the PR run that did not succeed, skipped included, now holds the release until a job of the same name has succeeded on HEAD. A PR run counts only when its head came from this repository (gh api actions/runs/{id}: head_repository.id equals repository.id), and workflows are matched by workflowDatabaseId instead of workflowName. When gh cannot read a run's jobs or origin, the release keeps waiting.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_gitx tests.test_gitx_ci_shortcuts (117 tests pass on each; the 5 new release cases failed before the fix); dev ci --run --resume ran 4272 tests, 1 unrelated failure in testx.py
c4cc0ea put a literal U+FEFF in the _XML_PROLOG pattern, and tests.test_source_characters refuses hidden characters in source files

Verified: python3 and /usr/bin/python3 -m unittest tests.test_source_characters tests.test_testx: OK on both; the pattern still matches a prolog that starts with a byte order mark
The host-only rule checked only .github/workflows for uncommitted changes, but actionlint and zizmor also read their own configuration from disk: an uncommitted .github/actionlint.yaml or a root zizmor.yml could turn their findings off and vouch for a carry-over that HEAD's files would not pass.

The clean check now covers .github, zizmor.yml and zizmor.yaml (zizmor 1.32 reads zizmor.yml or zizmor.yaml at the root and in .github, not the dot-file names), and the refusal names the first uncommitted file.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_gitx tests.test_gitx_ci_shortcuts (117 tests pass on each; the actionlint and zizmor configuration cases pushed before the fix); a scratch repo showed an uncommitted root zizmor.yml turning 1 high finding into none
530e308 and 800b846 made the release shortcut count only this repository's PR runs, match workflow files by id, hold jobs the PR run did not pass, and widened the host-only clean check to .github and the root zizmor files

Verified: dev docs check on the four files: 0 structure issues, all links resolve
PR 13's CI failed one test on both Pythons: --test-coverage-include needs Node 22.5 and the macOS runner's Node is older, so node exited 1; --test-name-pattern takes its value as the next word too and exists since Node 18.11

Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx.RunTests.test_a_node_suite_with_an_option_value_as_the_next_word_runs: OK on Node 26.13
PR 13 failed on the macOS runner's Node 24 because the test script passed a folder, which Node 22 and 24 read as a module (Cannot find module .../test/); reproducing it showed Node 22's JUnit report names no file, so dev test prove dropped node cases there

Verified: tests.test_testx 102 OK on Node 20.20.2, 22.23.4, 24.22.2 and 26.13.0 with python3 and /usr/bin/python3; dev test prove: the 2 new tests fail without the change
@ancongui
ancongui merged commit c6d3eb0 into main Nov 10, 2026
3 checks passed
@ancongui
ancongui deleted the hotfix/26.11.10 branch November 10, 2026 16: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.

1 participant