Skip to content

ci: split CLI tests into two parallel jobs behind a stable required check #1518 - #1520

Merged
nc9 merged 1 commit into
mainfrom
ci/cli-tests-split-1518
Nov 1, 2026
Merged

nc9 merged 1 commit into
mainfrom
ci/cli-tests-split-1518

Conversation

@nc9

@nc9 nc9 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #1518. Workflow change: needs maintainer review, no merge before.

The CLI tests job ran six suites back to back: on main run 41308096807 it took 23 minutes against a 25-minute cap (apps/cli 603 s, audit-engine 372 s, rules 143 s, rest 125 s, crawler 121 s, report 2 s); a PR run took 24m54s and five were cancelled at the cap, which shows as a failed check.

Now two jobs run in parallel, grouped to balance (about 12 and 11 minutes, so 13 minutes of headroom each):

  • CLI tests (apps/cli and crawler): report, cli, crawler.
  • CLI tests (rules, engine and the rest): rules, rest, audit-engine.
  • CLI tests (same name, same job id cli-tests): a small aggregate job that needs both and quality, is skipped exactly when the old job was (quality not green), and otherwise fails unless both test jobs passed, so a cancelled or skipped half is red. build still needs cli-tests.

Every suite still runs once, none is skipped: scripts/test-suites.ts --check passes, its test passes (23), and ci.yml has a --run step for each of the six suites. actionlint is clean.

Ruleset: the required check CLI tests keeps its name, so no ruleset edit is needed. The two new job names (CLI tests (apps/cli and crawler), CLI tests (rules, engine and the rest)) are not required and need not be added.

The CI run on this PR is the timing evidence for the acceptance criteria; I will read it before calling this clean.

Skill: no change needed.

nik

@nc9
nc9 marked this pull request as ready for review November 1, 2026 14:33
@nc9
nc9 merged commit ccc06cb into main Nov 1, 2026
19 checks passed
@nc9
nc9 deleted the ci/cli-tests-split-1518 branch November 1, 2026 14:33
@claude

claude Bot commented Nov 1, 2026

Copy link
Copy Markdown

Review of the ci.yml split into two parallel jobs plus an aggregate CLI tests job.

I found no blocking problems. The required check keeps its name and job id, so build still gets the same gate. The aggregate job is skipped exactly when quality is not green, as the old job was. Otherwise it needs both halves to report success, so a failed, cancelled or skipped half turns it red. Every suite still has one --run step.

  • (low) ci.yml around the aggregate job: the aggregate uses !cancelled(). If the whole run is cancelled, the required check is skipped rather than failed. This matches the old job, so it is not a regression.
  • (nit) The comment explaining why the if: is explicit (it avoids the implicit success(), which also looks at changes) was removed. It still applies to all three jobs, so a short note on the aggregate job would stop someone "simplifying" it later.
  • (nit) The two test jobs run in parallel, so each repeats checkout and setup. That costs about 20s of runner time per job and is acceptable. The 12 and 11 minute estimates should be checked against this PR's own run, as the description says.

nc9 added a commit that referenced this pull request Nov 16, 2026
nc9 added a commit that referenced this pull request Nov 16, 2026
nc9 added a commit that referenced this pull request Nov 17, 2026
nc9 added a commit that referenced this pull request Nov 17, 2026
nc9 added a commit that referenced this pull request Nov 17, 2026
* origin/main: (23 commits)
  test(cli): e2e for a start-URL hop the egress guard refuses #1281
  fix(rules): trust the checker's wall verdict for bot-blocked links squirrelscan/repo#2747
  fix(rules): emit unverified link status meta only when numeric squirrelscan/repo#2747
  fix(links): classify bot-blocked external links #2747
  fix(utils): trim a token's trailing punctuation with a backwards scan, not a polynomial regex repo#2148
  fix(utils): re-copy the secret-url redactor from private main after repo#3433, so an indexed credential name leaves the link key repo#2148
  fix(utils): trim trailing slashes without a polynomial regex, encode the jwt dot explicitly in the test repo#2148
  feat(utils): canonicalLinkKey and the secret-url redactor move public, link-check docs repo#2148
  docs(parser): HTMLRewriter vs linkedom spike, benchmark and decision (repo#599)
  fix(rules): content/mojibake breaks at every element boundary (repo#1641)
  docs(dashboard): document website Details and Integrations settings tabs (repo#1108)
  fix(rules): fail-safe contextual lookup and universe-path test for no-contextual-inbound (repo#1669)
  fix(rules): replace raw NUL bytes with \0 escapes and gate them in CI (repo#1565)
  ci(changelog): exempt v0.0.78 and v0.0.79 tags that predate CHANGELOG.md #1520
  docs(changelog): add the missing v0.0.78 heading (repo#1520)
  ci(build): share release compile flags with a minified build-ci target (repo#1414)
  docs(rules): map Google spam policies to audit rules (repo#1333)
  feat(cli): add --rule-cache off|cold|warm arm to the template fan-out bench #1971
  fix(cli): list undecodable URLs in the partial report and JSON (repo#2557)
  fix(rules): font-consistency skip message no longer embeds a page count that differs between streaming and legacy paths (repo#1376)
  ...

Signed-off-by: Nik Cubrilovic <[email protected]>
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.

ci: the CLI tests job runs at the 25-minute cap and gets cancelled on large PRs

1 participant