chore(gates): share toolkit-self checkout detection #1097
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!1097
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/1079-shared-toolkit-discriminator"
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 #1079
Scope
manifest-check and post-cut now use one named isToolkitSelfCheckout seam to distinguish release-toolkit's own checkout from an adopter checkout. The helper checks for .forgejo/workflows/reusable-release.yml; both callers retain their existing behavior and messages.
The old duplicate implementation in manifest_check.go and inline post-cut probe are gone. The helper is deliberately named as the future call site for any additional toolkit-self behavior.
AC disposition
Verification
7185d28f6756e8f7e808456472f8d5The default shellcheck invocation still reports the pre-existing informational SC2016 in scripts/contract-paths-check.sh; no shell script is changed here.
Exact-head review at
13b66161de: REQUEST_CHANGES. The shared isToolkitSelfCheckout seam is correctly added and used by both manifest-check and post-cut, and its absent/present control passes. However, this head is based at7185d28while the PR base isa8168da, and its base-relative diff silently rolls back landed release-toolkit#1087 work. It changes mirror-release.yml back to runs_on=docker and the old since_tag expression; changes reusable-mirror-release.yml back to rejecting the caller-supplied tag_name plus default since_tag combination, skipping every existing release including incomplete ones instead of adopting it, and downloading assets through the wrong API URL; removes the adopted summary contract from tests/workflows.bats; and deletes changelog.d/1087-mirror-backfill-fixes.fixed.md. The PR body only describes #1079 and does not disclose this release-path regression. Restore the base branch #1087 changes or otherwise preserve them while keeping this seam isolated before approval. Local Go test/vet pass, and Forgejo CI is terminal-success at 26/26.13b66161de0227933f34Exact-head follow-up superseding REQUEST_CHANGES 6250: APPROVED at
0227933f34. The base-relative diff is now exactly the five #1079 seam files; the shared isToolkitSelfCheckout implementation is used by manifest-check and post-cut, and the absent/present control passes. The previous #1087 rollback is gone. Go tests/vet, formatting, and diff checks pass. The only red context is gitea-twin-check / check (25/26 overall): go run ./cmd/rt gitea-twin --check reports the same three generated .gitea/workflows mismatches on base22822dddand this head, while this PR changes none of the source or generated workflow files. That is an inherited baseline failure requiring separate disposition before merge, not a content finding against #1079.0227933f34456472f8d5Exact-head follow-up at
456472f8d5: REQUEST_CHANGES. The five-file #1079 seam diff is sound, the shared helper has absent/present coverage, the exact tree passes Go tests/vet, and gitea-twin --check reports 9/9 matches. Forgejo CI is terminal-success at 26/26. One artifact blocker remains: the PR Verification section presents Integrated current main base22822ddd68and Head0227933f34as the verification anchors, but the live PR now has basec7402395b8and head456472f8d5. Update those fields to the exact current values, or explicitly label the old values historical; do not leave a current Verification section naming bytes this review did not read.Exact-head follow-up at
456472f8d5: APPROVED. The PR Verification section now records the live integrated base56e8f7e808and this exact head, so the prior artifact blocker is resolved. The five-file #1079 diff still cleanly centralizes isToolkitSelfCheckout for manifest-check and post-cut, with absent/present controls and caller coverage preserved. Exact-head Go tests, vet, diff checks, and Forgejo CI 26/26 pass; no content blocker remains.Exact-head follow-up at
456472f8d5: APPROVED. The PR Verification section now records the live integrated base56e8f7e808and this exact head, so the prior artifact blocker is resolved. The five-file #1079 diff still cleanly centralizes isToolkitSelfCheckout for manifest-check and post-cut, with absent/present controls and caller coverage preserved. Exact-head Go tests, vet, diff checks, and Forgejo CI 26/26 pass; no content blocker remains.