Skip to content

ci: full-history pr-ci ts checkout and drop the local-ci java-fast job - #592

Merged
dmealing merged 1 commit into
mainfrom
fm/mo-ci-runners-pr1
Nov 16, 2026
Merged

dmealing merged 1 commit into
mainfrom
fm/mo-ci-runners-pr1

Conversation

@dmealing

@dmealing dmealing commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Expected saving

Before After
pr-ci wall time per PR (ts lane mutation gate) about 31-47 min (full mutation pass: the checkout was shallow, so no merge base) about 9 min (diff-scoped pass)
local-ci per run java-fast + java-slow java-slow only: one job and about 4 runner-minutes fewer

The pr-ci numbers come from the planning report's measurement of a PR run (its ts-fast log reads "mutation scope: FULL - no merge base ... shallow checkout"). I could not run a real GitHub Actions job here. Locally I verified the cause: a depth-1 clone has no origin/main, so git merge-base fails and the gate takes the full pass; a full-history clone resolves the merge base. The measured effect lands on this PR's own pr-ci run.

The one thing lost by removing java-fast is the early (2-3 min) Java conformance verdict; no check is dropped, since java-slow's reactor runs the same classes.

What Changed

  • pr-ci.yml: the ts job checkout now uses fetch-depth: 0, so the mutation gate finds a merge base with origin/$GITHUB_BASE_REF and runs diff-scoped instead of a full pass (same as the gates job).
  • local-ci.yml: removed the java-fast job and its entry in the notify job's needs. java-slow's full reactor already runs every java and kotlin conformance class, so java is now a single job. Header and job comments updated to say so.
  • ci-ports-to-run.sh, ci-lane-map.txt, test-ci-ports-to-run.sh: dropped java-fast from the lane→port map, all_lanes, the lane-map comment and the test fixtures. ci-local.sh keeps --only java-fast as a local selector and conformance.yml's lane; only its comments changed.
Validation

Risk Assessment

✅ Low: Both changes match the intent. Every class the removed java-fast job ran lives in a reactor module that java-slow's mvn clean install runs with no surefire excludes, and the ts checkout now uses fetch-depth: 0 like gates.

Testing

Broad regression came from the configured scripts/ci-local.sh --affected --strict-toolchains, which passed. I ran three focused scenarios on top. The lane-selector tests pass with java-fast gone from the lane map. The parsed workflows have no dangling needs after the job's removal, and ts now checks out full history like gates. The conformance classes java-fast ran are all in reactor modules that java-slow builds with tests on, so no check was lost. A depth-1 clone cannot resolve the base commit, so the mutation gate falls back to the full pass; a full-history clone resolves the merge base and the gate can diff-scope. The real mutation gate and a real GitHub Actions run were not executed here; the merge-base check was done with git on clones.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Lane selector and workflow job set stay consistent after java-fast job removal (test-ci-ports-to-run.sh + workflow parse) ✅ pass live ports-test.txt: all checks passed; PyYAML parse of local-ci jobs [csharp, detect, gates, java-slow, notify, python, ts-fast, ts-slow, ts-unit], no dangling needs
No check lost: every conformance class java-fast ran is covered by java-slow's full reactor ✅ pass live Each class named in gate_conf_java and gate_conf_kotlin found under src/test in a reactor module; java-reactor runs mvn clean install with tests on; --only java-fast still lists both conformance s…
pr-ci ts job gets full history so mutation gate can diff-scope (merge base resolves) ✅ pass live merge-base.txt: depth-1 clone cannot resolve the base commit; full clone resolves merge-base 3514686. Parsed pr-ci.yml shows ts checkout fetch-depth 0
Evidence: lane selector tests
ok:   union reorders to canonical -> 'ts java python csharp'
ok:   union deduplicates -> 'ts java'
ok:   union single -> 'python'
ok:   union empty -> ''
ok:   union drops unknown tokens -> 'ts'
ok:   every lane green -> nothing to re-run -> ''
ok:   docs-only run skips a red java -> java still not green -> 'java'
ok:   one red ts lane selects the whole ts port -> 'ts'
ok:   skipped is walked past to the real verdict -> ''
ok:   cancelled is not green -> 'csharp'
ok:   a lane with no verdict in the window is not green -> 'python'
ok:   no history at all -> everything -> 'ts java python csharp'
ok:   every port-testing job in .github/workflows/local-ci.yml is mapped by lane_port -> ''
ok:   every lane in lane_port exists as a job in .github/workflows/local-ci.yml -> ''
all checks passed
Evidence: java-slow steps
metaobjects local CI  (mode: only:java-slow)
Steps that would run:
  + java-reactor (install)
  + integration-tests (java)
  + integration-tests (kotlin)
Evidence: java-fast still selectable locally
metaobjects local CI  (mode: only:java-fast)
Steps that would run:
  + conformance: java
  + conformance: kotlin
Evidence: merge-base shallow vs full
fatal: 35146869cc7e: not a valid SHA1
shallow: is-shallow=true commits=1 merge-base=fatal: Not a
full: is-shallow=true commits=2 merge-base=35146869cc7e

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Lane selector and workflow job set stay consistent after java-fast job removal (test-ci-ports-to-run.sh + workflow parse) ✅ pass live ports-test.txt: all checks passed; PyYAML parse of local-ci jobs [csharp, detect, gates, java-slow, notify, python, ts-fast, ts-slow, ts-unit], no dangling needs
No check lost: every conformance class java-fast ran is covered by java-slow's full reactor ✅ pass live Each class named in gate_conf_java and gate_conf_kotlin found under src/test in a reactor module; java-reactor runs mvn clean install with tests on; --only java-fast still lists both conformance s…
pr-ci ts job gets full history so mutation gate can diff-scope (merge base resolves) ✅ pass live merge-base.txt: depth-1 clone cannot resolve the base commit; full clone resolves merge-base 3514686. Parsed pr-ci.yml shows ts checkout fetch-depth 0
  • scripts/ci-local.sh --affected --strict-toolchains
  • Broad regression: configured scripts/ci-local.sh --affected --strict-toolchains ran before this turn and passed
  • bash scripts/test-ci-ports-to-run.sh (lane selector tests, incl. lane_port vs local-ci.yml job-list parity checks): all checks passed
  • MO_CI_LIST_ONLY=1 scripts/ci-local.sh --only java-slow and --only java-fast
  • Parsed pr-ci.yml, local-ci.yml and conformance.yml with PyYAML: every needs target is a real job, ts and gates both have fetch-depth 0
  • Located every test class named by gate_conf_java and gate_conf_kotlin in the Java reactor modules
  • Shallow vs full-history clone merge-base check
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…t job

pr-ci's ts job checked out at depth 1, so origin/$GITHUB_BASE_REF was not fetched,
git merge-base failed, and gate_completeness_diff fell back to the FULL mutation
pass. fetch-depth: 0 (as the gates job already sets) gives it a merge base.

local-ci's java-fast job ran java+kotlin conformance classes that java-slow's
`mvn clean install` (the full reactor, tests on) already runs. Remove the job and
its mentions in the ports-to-run map, its test and the lane docs. The
`--only java-fast` selector stays: conformance.yml still uses it.
@dmealing
dmealing merged commit 207d774 into main Nov 16, 2026
9 checks passed
@dmealing
dmealing deleted the fm/mo-ci-runners-pr1 branch November 16, 2026 13: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