Repository navigation
fix: first cuts, drift outputs, own-run jobs and stage gates for the delivery benches - #5477
Merged
Merged
Conversation
lex00
enabled auto-merge
November 22, 2026 17:04
lex00
force-pushed
the
wave/followups-2
branch
from
November 22, 2026 17:07
6b89e15 to
1af2db9
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 22, 2026
…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
force-pushed
the
wave/followups-2
branch
from
November 22, 2026 17:21
1af2db9 to
8c87dcf
Compare
lex00
enabled auto-merge
November 22, 2026 17:21
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.
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
release.first, which the pipeline hook passes asrelease cut auto --first <v>(default0.1.0). Before this, a repo with no release refused the cut withrelease-next-no-previous(A promotion repo's first merge fails in its release-cut hook: release cut auto has no previous release to bump terragucci#1526, The pipeline claim fails at the release cut: a new project has no first release sql-yodeler#406).<job>-foundjob carries the red. Forgejo's runner drops a failed job's outputs, so the agent jobs that read them were skipped (agent/drift: the agent job is skipped after the drift job exits 2 terragucci#1528).release cut --own-run-jobs <names>. The names come from the generated pipeline. A resumed run, or one past the last wave, leaves the flag out (tg-rollback and tg-promote stop at base-applied: the release cut finds the merge commit not green terragucci#1531).chant run --components, a redeploy, a fan-out or a rollback into an environment a pipeline stage gates waits at that stage's gate.release.bin, and falls back tochantwhen that binary is missing.terragucci and sql-yodeler benched against a pack of this branch. Every terragucci row passes,
agent/driftincluded. sql-yodeler'spipelinerow now reaches the prod approval and stops there on INTENTIUS/sql-yodeler#411, which is sql-yodeler's.Local gate
just checkran 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-lexiconspasses.