Repository navigation
feat(approve): pendingApprovals for where a change waits, and a two-stage pipeline e2e on Forgejo - #5487
Merged
Conversation
…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
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 #5479
Closes #5480
The last open lines on #5337 that are chant's.
pendingApprovals(in@intentius/chant/lifecycle/pending-approvals, also exported fromci-product) lists what waits for approval in an environment. Each entry carries its kind and op, and the gate with the digest that binds it.chant approve --env <env> [--plan <digest>]uses it when no op or gate is given. The floor isPENDING_APPROVALS_FLOOR. The design and the answers to the issue's three questions are on approvals: one call for where a change waits, so products stop wiring gates themselves #5480. A lint warning for a stage asked twice is lint: warn when a pipeline stage and a component in it both ask for approval #5482.wavefield to 15 golden transcripts underpackages/core/src/__golden__/wave-loop/; gate names and digests are unchanged, so the change to those files is deliberate.packages/core/src/e2e-harness/two-stage-pipeline.e2e.test.tsdrives one member through a two-stage pipeline on chant's local Forgejo harness. It walks the six steps the issue lists, from the first merge and its cut to the drift job's red found job. A promote waits at the stage gate until onechant approve --envlets it through, and a direct run into that stage waits at the same gate. The drift finding is a fixedshellCmd, and the agent job stops where it would need a model. The suite takes about a minute and found no chant bugs.INTENTIUS/sql-yodeler#411 uses
pendingApprovalson sql-yodeler's branch, built against a pack of this one.Local gate
just checkran 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 withscripts/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, andjust check-lexiconspasses.