Skip to content

fix: first cuts, drift outputs, own-run jobs and stage gates for the delivery benches - #5477

Merged
lex00 merged 9 commits into
mainfrom
wave/followups-2
Nov 22, 2026
Merged

lex00 merged 9 commits into
mainfrom
wave/followups-2

Conversation

@lex00

@lex00 lex00 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #5463
Closes #5474
Closes #5475

The second round of the follow-up wave on #5337. These are the chant fixes that the delivery benches' remaining rows needed.

terragucci and sql-yodeler benched against a pack of this branch. Every terragucci row passes, agent/drift included. sql-yodeler's pipeline row now reaches the prod approval and stops there on INTENTIUS/sql-yodeler#411, which is sql-yodeler's.

Local gate

just check ran once at the end of the wave. The build first failed on a type error in a test this branch added, fixed in the last commit. On the next run, at a load average near 57, 36,802 tests passed and 21 failed on the per-test time budget. Those 12 files passed when run again with two workers (213 tests). just check-lexicons passes.

…e at release.first (#1526 / sql-yodeler#406)

The release-cut hook a promotion pipeline's first stage runs
(`chant release cut auto --yes --wait-checks`) failed with
release-next-no-previous on a member with no release in its ledger and no
version tag, so a repository's first merge failed after its apply.

`chant release next` and `chant release cut auto` take `--first <version>`:
when the member has no previous release, the label is that version (its
prerelease with `--pre`), and `from.source` is `first`. A member with a
release bumps it as before, and without `--first` the refusal is unchanged.
The pipeline's `release.first` names the version, default 0.1.0, and the hook
passes it for the label `auto`, or for any label when `release.first` is set.
Floor RELEASE_NEXT_FIRST_FLOOR.

Refs INTENTIUS/terragucci#1526 and INTENTIUS/sql-yodeler#406.

Gate deferred to the end of the wave.
…rift issue (#5463)

`landAgentChange` replied only on a pull request number, and a drift run has
none, so the drift issue never heard about the agent's fix.

The drift Op's generated job sets CHANT_DRIFT_ISSUE_FILE, and
`keepDriftIssue` appends the issue's number to it when the run finds drift
(or to `issueFile`). The job hands the numbers on as `drift_issues` in its
outputs (GitHub, Forgejo) or CHANT_AGENT_DRIFT_ISSUES in its dotenv
(GitLab), and the drift agent's push job reads them. Once the pull request
is opened or updated, `land` comments its URL on each drift issue through
the forge's new `addIssueComment`, and records the issues on the run's
outcome (`driftIssues`). A later run for the same pull request skips an
issue an earlier run already told. Floor AGENT_DRIFT_ISSUE_FLOOR.

The pr-forge bundle ceiling moves from 60 KB to 62 KB for the issue comment.

Gate deferred to the end of the wave.
…nd job carries the red (terragucci#1528)

Forgejo runner 13.2.0 publishes job outputs only when the job succeeds. The drift run step and update's flag step wrote drift=true and then exited with the drift code, so the job failed and the agent or update job saw no output.

Both steps now exit 0 on drift after writing their outputs. A job named <drift-job>-found follows the drift job, runs when its drift output is 'true', uses the same runs-on, and exits with the drift code, so a run that found drift still shows red there. GitLab hands drift on through artifacts with when: always and a dotenv, and is unchanged.

Refs INTENTIUS/terragucci#1528.

Gate deferred to the end of the wave.
…ended on (terragucci#1531)

Under release.green forge-checks the merge's release cut runs inside the
run that applies, and the readers leave that whole run out. In a repo that
init set up nothing else checks the merge commit, so the cut refused every
merge, and on GitLab, with one pipeline per push, it could never pass.

release cut takes --own-run-jobs <name,...>. With it, the gate judges the
named jobs of the cut's own run beside the other workflows' checks: each
named job the forge reports must have passed, one still running is waited
on under --wait-checks, the cut's own job and the run's other entries stay
left out, and a run in which the forge reports none of the named jobs is
refused. Jobs are matched by GitHub's check run name (in the current run
only), the job of Forgejo's "<workflow> / <job> (<event>)" context, and the
job's name in the GitLab pipeline (read from the pipeline's jobs). The cut
line records the jobs that counted as green.ownRun, which release verify
shows and the gate signature covers. A cut without the flag judges as
before.

pipeline generate names the jobs: the product's firstWaveNeeds and every
job each of the last wave's jobs depends on, as the lexicon named them. It
writes them into the wave jobs' render command (pipeline spec --stage
<first> --own-run-jobs ...), which puts them on the release-cut hook.

The own-run refusal's fix no longer suggests release.green "chant"; it
names --own-run-jobs. New floor RELEASE_CUT_OWN_RUN_JOBS_FLOOR.

Refs INTENTIUS/terragucci#1531

Gate deferred to the end of the wave; ran the touched test files, the
pipeline tests, eslint on the touched files and the core typecheck.
…ts at that stage's gate (#5475)

Gate deferred to the end of the wave.
…ts gate (#5475)

chant components redeploy, chant components rollback (not --requested) and
chant components fan-out without --gate or --wave-gate now wait at the gate
of the pipeline stage they apply into, through componentRunStageGate, as
chant run --components does. The gate logic moves out of run.ts into
cli/handlers/stage-gate.ts, shared by all four.

Gate deferred to the end of the wave.
The release cut starts its compile child with the release.bin of the
member's .chant/pipeline.ts when it sets one, so a cut run as
yodel chant release cut compiles as yodel chant release compile. A member
with no release.bin, or no pipeline, compiles through chant as before, and
a release.bin that is not on the PATH falls back to chant.

Gate deferred to the end of the wave.
…rragucci#1531)

pipeline spec drops --own-run-jobs when it renders inside a follow-on run (a later wave, or a commit the run goes on with): none of the first run's jobs run there, so the cut named jobs it could not find and refused. The cut there counts no own-run jobs and needs a check from another workflow. The pipeline guide says so.

Gate deferred to the end of the wave; ran release-cut-own-run.test.ts and eslint on the touched files.
… field (#5475)

GateResolutionInput leaves version out; the fixture's extra field broke the build.
@lex00
lex00 enabled auto-merge November 22, 2026 17:21
@lex00
lex00 added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 6128390 Nov 22, 2026
10 checks passed
@lex00
lex00 deleted the wave/followups-2 branch November 22, 2026 17:36
lex00 added a commit to INTENTIUS/terragucci that referenced this pull request Nov 22, 2026
The release carries INTENTIUS/chant#5477. just ci renders the generated files again.

Beyond the workflows, the eight image Dockerfiles (choudoufu, terraform, terragrunt and tofu, each with its Chainguard variant) changed because they install the pinned chant version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant