Repository navigation
migration: older release, gate, run and plan records read under the release model (#4034) - #4069
Merged
Merged
Conversation
…der the release model, with the fields they lack reading as absent (#4034)
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 #4034
Older deploy, gate, run, plan and change-set records read under the release model with every new field absent, and nothing is rewritten. No source change was needed; this adds the proof and the docs.
packages/core/src/workspace/older-records.test.ts(24 tests) writes a fixture of older ledger lines byte for byte tochant/lifecyclein a temp repo, and reads them through the real readers:parseReleaseLedger,readReleaseLedger,readReleaseRecords,parseGateLedger,readRunLedger,readReleasePlan,workspaceStatus(againststatus.schema.json),formatStatus,releasesDocument,joinReleaseandchangeSetShowDocument. Every field added by workspace: run, gate and release records carry the commit sha, the CI locator and the admitting gate #4020, records: join commit, release, gate and deploy through the release digest #4043, releases: gate approvals bind the release digest, the environment and the change set #4045 and releases: implicit releases for projects with no components #4046 is asserted absent (missing, or null instatus), no line is skipped, no reader errors, and the branch tip never moves.components release,run --components,promote,rollbackandredeploydeploy records from theirappendReleaseRecordcall sites at the parent of workspace: run, gate and release records carry the commit sha, the CI locator and the admitting gate #4020; SQL Yodeler fromINTENTIUS/sql-yodelersrc/release/index.tsrecordRelease; chud-studio deploy and run records and release plan fromarugula-salad/studiotemplate/delivery/ops/release.op.ts; gate facts and resolutions (including a pr-apply gate) fromgate-ledger.tsbefore workspace: run, gate and release records carry the commit sha, the CI locator and the admitting gate #4020; a change-set document composed withchange-set.tsfrom before releases: gate approvals bind the release digest, the environment and the change set #4045. The values are made up; which keys are present is what each producer wrote.component: nulltemplates; a cut line with nosignaturereads assignature: null.reference/workspace-read-contract.mdx.Acceptance
Mapping older deploy records to releases (a derived link by commit and artifact digest, raised on #4043) is filed as #4068 rather than done here.
Checks
npx tsx scripts/typecheck.ts: no regressions (26 baselined)npx tsx scripts/check-lexicons.ts: no untracked tier-1 failuresGITHUB_SHA,GITHUB_RUN_IDandCIset, after rebasing on lifecycle: what triggers a release cut, and what a revoked commit does to releases cut from it #4033op/factory.e2e.test.tsfailureslint-docs-sentences(no regressions),lint-prompts,check-docs-diataxis,./scripts/build-docs.sh: passchant/lifecyclewas unchanged by the runs.