Repository navigation
ci: chant ci list --json for trunk commits and their state (#4021) - #4051
Merged
Merged
Conversation
5 tasks
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 #4021
Adds
chant ci list [--json] [--limit <n>] [--since <rev>] [--forge github]. It lists the first-parent commits ofci.green's branch inside the declared window, newest first. Each commit has a state (green,revokedorundecided) and the result of every required phase.pass), and a revoked tag marks its phasefailwith the failed run. An undecided commit's phases areunrecorded.--forge githubreads check runs for undecided commits only, through the sameCiForgeseam andevaluateCommitthatci tickuses, so those phases becomepass,failorpending.--since <rev>replaces the window and excludesrev, so a reader holding the last sha it saw can ask for what is new. An unknown rev fails withrevision-unknown.ci-list.schema.json, contract v1, floor chant 0.124.28, listed in the read contract's versions and output-schema tables. The boundary roster and the network-egress page gain the new carrier.GitLab and Forgejo get no status reader.
cli/ci.mdxrecords the decision: they're covered through chant's own run results (#4044), because each forge's job or status model would need its own retry and skip mapping, while a run result is the same everywhere.Acceptance
chant ci list --jsonwith a published schema and testscli/ci.mdx)Checks
npx tsx scripts/typecheck.ts: no regressions (26 baselined)npx tsx scripts/check-lexicons.ts: no untracked tier-1 failuresci-green.test.ts,read-contract.e2e.test.ts,test/boundary-roster.test.ts: 69 passedop/factory.e2e.test.tsfails three tests locally on a clean origin/main too (an environment issue, it passes in CI);work-lease.test.tsandlineage-adopt.test.tsfailed once and passed on rerun.lint-docs-sentences(no regressions),lint-prompts,check-docs-diataxis,./scripts/build-docs.sh: passchant ci list --limit 3and--jsonagainst chant's ownmain: green and undecided commits read correctly from local tags.No level-0 output changes:
ci last-greenoutput is unchanged.Follow-up noted for the trunk lane: a commit that failed but was never green stays
undecidedoffline, since no tag records a failure; seeing it as failed needs--forge.