test(bake): assert canonical and staging populations match #1263
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!1263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rigger/1201-bake-list-assertion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #1201
Contract
internal/bake owns the canonical toolkit-self reusable workflow population, while cmd/rt/prep retains its staging mirror because the prep loop and the existing #997/#1000 source-parsing mutation harness consume that declaration directly.
This PR adds bake.CanonicalFiles(), which returns a defensive copy of the ordered canonical population, and a typed Go assertion in cmd/rt that the canonical and staging populations are equal. The existing Bats equality and mutation controls remain unchanged as defense in depth.
Controls
Verification
4216bf95e8c9d3d2bd5bNo review request or merge action was made by Rigger.
Verified and approved at exact head
c9d3d2bd5be747bfe96fbf051e8b030b13402705.bake.CanonicalFiles()returns a defensive copy of the canonical ordered population.TestBakeRefFilesMatchCanonicalFilescompares that accessor with the actualcmd/rtstaging declaration usingslices.Equal; the two real source-side deletion probes both made this assertion fail.go test -count=1 ./...,go test -race -count=1 ./...,go vet ./...,go build ./...,golangci-lint, all 163 Bats, andgit diff --check.No findings. The PR is open/mergeable and the live combined status is terminal success (28 contexts).
Verified and approved at exact head
c9d3d2bd5be747bfe96fbf051e8b030b13402705.bake.CanonicalFiles()returns a defensive copy of the canonical ordered population.TestBakeRefFilesMatchCanonicalFilescompares that accessor with the actualcmd/rtstaging declaration usingslices.Equal; the two real source-side deletion probes both made this assertion fail.go test -count=1 ./...,go test -race -count=1 ./...,go vet ./...,go build ./...,golangci-lint, all 163 Bats, andgit diff --check.No findings. The PR is open/mergeable and the live combined status is terminal success (28 contexts).