Skip to content

feat(approve): pendingApprovals for where a change waits, and a two-stage pipeline e2e on Forgejo - #5487

Merged
lex00 merged 5 commits into
mainfrom
wave/followups-3
Nov 22, 2026
Merged

lex00 merged 5 commits into
mainfrom
wave/followups-3

Conversation

@lex00

@lex00 lex00 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #5479
Closes #5480

The last open lines on #5337 that are chant's.

INTENTIUS/sql-yodeler#411 uses pendingApprovals on sql-yodeler's branch, built against a pack of this one.

Local gate

just check ran once at the end of the wave, at a load average near 40. 37,280 tests passed and two failed. One found the floor table stale: the #5480 row was written by hand, and the last commit writes it with scripts/floor-table.ts. The other, a terraform example, ran over the per-test budget under load. Both files passed when run again with two workers, and just check-lexicons passes.

…ng facts

A wave's own gate fact and a hold's carry wave { number, name, op,
environment }, the environment being the spec's labels.Env else the
wave's name. Gate names and digests are unchanged; the wave-loop
transcripts gain the field and nothing else.

Refs #5480

gate deferred to the end of the wave
… environment

pendingApprovals({ env, plan?, ops?, pipeline? }) reads every gate ledger
of the member and returns the standing facts that wait in env, each with
its kind (wave, stage, component, op), op, gate, bound digest and approve
argv. A plan digest matches a fact's plan, change set or release digest.
Floor PENDING_APPROVALS_FLOOR; also exported from ci-product.

Refs #5480

gate deferred to the end of the wave
…ronment

With no op or gate, chant approve --env <env> [--plan <digest>] uses
pendingApprovals. One fact left is approved as chant approve <op> <gate>
would; none or several record nothing and list each with its approve line.

Closes #5480

gate deferred to the end of the wave
…tack

One small member on the harness's Forgejo and forgejo-runner: the first
merge applies the first stage and cuts release 0.1.0, counting the run's
own first wave (--own-run-jobs); a promote into prod waits at its stage
gate; chant approve --env prod --plan <digest> lets the next promote
through with nothing left waiting; a direct chant run --components into
prod waits at the same gate; a drift check that finds drift publishes its
outputs, starts the agent job and turns the found job red.

The drift finding is fixed (a shellCmd), the agent job stops at the
missing model, and the dev deploy runs on the host. Skips when Docker is
not running.

Closes #5479

gate deferred to the end of the wave
@lex00
lex00 enabled auto-merge November 22, 2026 22:00
@lex00
lex00 added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 75a445d Nov 22, 2026
10 checks passed
@lex00
lex00 deleted the wave/followups-3 branch November 22, 2026 22:21
@lex00 lex00 mentioned this pull request Nov 22, 2026
78 of 84 tasks
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