Repository navigation
Ship the Release Caller Snippet and Retire the Not-Yet-Released Claim - #1479
Conversation
Three adopter-facing places said the release chain could not be adopted because the renamed .NET publish interface was not in a hub release. It shipped in 2.0.376, 211 releases ago, and the current release carries the post-fix interface with the package push in the caller's own job. Ship catalog/snippets/workflows/publish-release.yml, the NuGet-library full shape pinned to 2.0.587, and fill that shape's three placeholder pins so the snippet and the section agree byte for byte. Point the release-with-smoke smoke-build job at the hub's build-release-task.yml by pin. It called the repo's own copy by local path, a file spec/divergences.json dispositions retire, so a repo working both surfaces could satisfy neither. The pilot, PhotoCleaner, already carries the hub-pinned shape and no local copy. The job now grants contents: read, names its secrets rather than inheriting them, since inherit is never used on a cross-repository call, and lists its enable_* inputs, since every one of them defaults true on the task. The pin placeholders in shapes that still have no catalog snippet stay as they are, since replacing them is #1472's open fleet-level call rather than this one. Closes #1473 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The changes are documentation-and-snippet updates that consistently reflect the current released workflow interfaces and pins without introducing behavioral code risk.
Pull request overview
Ships the release-chain caller snippet and updates adopter documentation to remove stale "not yet released" guidance, aligning the documented and cataloged workflow shapes with the current released build-release task interface.
Changes:
- Add
catalog/snippets/workflows/publish-release.yml, a pinned, copyable release-caller workflow for NuGet-library repos. - Update
docs/reusable-workflows.mdto remove adopter-facing claims that the release chain cannot be adopted yet, and to reference the new snippet. - Update
catalog/snippets/workflows/README.mdto reflect thatpublish-release.ymlnow has a shipped snippet and document its role/guarantees.
File summaries
| File | Description |
|---|---|
| docs/reusable-workflows.md | Removes stale release-blocking claims and updates the documented caller shapes to reflect the shipped snippet and current pins. |
| catalog/snippets/workflows/README.md | Updates snippet eligibility guidance and adds publish-release.yml to the snippet index table. |
| catalog/snippets/workflows/publish-release.yml | Introduces the pinned release caller snippet (including the caller-owned NuGet publish job) for adopters to copy byte-for-byte. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…g, and the Release-Trigger Retirement (#1489) Promotes thirteen merged pull requests from `develop` to `main`. ## What this promotes - **#1486** State the `host-tools.json` carry rule and stop the empty-overlay warning. `spec/files.json` now requires the declaration unconditionally, and `host_gate.py` no longer warns on an empty one. - **#1484** Fan the validator's pytest leg out over a `python-versions` input, so a caller with more than one interpreter no longer silently loses its other legs to a pinned 3.13, with an entry guard that refuses a value `fromJson` would otherwise admit. - **#1476** Retire the publish-on-merge release trigger, which `spec/files.json` applied to an interface contract whose task has no publish-on-merge path. - **#1479** Ship the release caller snippet and retire the not-yet-released claim. - **#1474** Exclude `node_modules` from markdownlint and Docker lint discovery at any depth. - **#1468** Move the carried-surface cluster off decision, recording the measurements and what stays unmeasured on the issues that hold them. - **#1498** Correct the release-caller snippet's publish-on-merge claim, raised by CodeRabbit against this promotion and fixed on its own branch, since a promotion PR's head is `develop`. - **#1494** Settle the markdown lint exclusion seam as a nested config. - **#1492** Check declared deployment environments and fix the carried-payload rule. - **#1501** Move the session handoff to a chain of labeled issues. Two of its units are verbatim fidelity, `AGENTS.md` "Session Scope" and `GOVERNANCE.md` "Communicating with the User", so every fleet repo picks them up on its next resync. - **#1505** Refuse a bare handoff link rather than reading it as no successor, answering a finding raised against this promotion. - **#1504** Reject a deployment environment name or branch carrying surrounding whitespace, answering two more. - **#1506** Encode an environment name before it becomes a path segment, delete a branch that cannot fire, and dedupe a registry name by case, answering two more and declining one on a reproduction. ## Closing references A `develop`-targeted pull request registers no closing reference, so the issues those pull requests settled close with this promotion. #1470 is the one that needs a word. Two of its seven acceptance items are not met as literally written, and the maintainer's decision to close it here anyway, with the basis for both, is recorded on the issue itself. Closes #1483 Closes #1473 Closes #1487 Closes #1482 Closes #1475 Closes #1470 ## Left open deliberately - **#1499**, **#1500** follow-ups #1501 filed rather than fixed. - **#1503** the validator-looser-than-its-consumer class, filed from findings on this promotion and deliberately not closed by it. Five instances recorded, and the fix is a design decision rather than a check. - **#1497** the Docker delta list never says to remove the `push:` block. - **#1472** the fleet-level pin call, deliberately not pre-empted by #1479. - **#1321**, **#1464** carry #1468's decision record and remain in their own scope. ## Verification `origin/main..origin/develop` merges clean, no end-of-line conflict. Each promoted pull request ran the fleet gate set on its own branch before merging; this promotion adds no content of its own. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01817rckKywjfoaEV5WF9TKs
Summary
catalog/snippets/workflows/publish-release.yml, the NuGet-library release caller stub, pinned to6c88850128629bb449fd73c7fbf82968c6cd1557 # 2.0.587smoke-buildjob at the hub'sbuild-release-task.ymlby pin instead of the repo-local copy thatspec/divergences.jsondispositionsretireRoot Cause
Three places told an adopter the release chain was blocked on the renamed
.NET publish interface reaching a hub release. That interface shipped in
822af248and released as2.0.376, so the claim had been false for 211releases against a current
2.0.587. Nothing fails when a point-in-timesentence like that stops being true, which is why it went unnoticed.
The same staleness reached the guidance: "Adopting the Gates" told a
release-with-smoke repo to keep calling its own
build-release-task.ymlby local path, a file the audit dispositions
retire, so a repo workingboth surfaces could satisfy neither. The pilot, PhotoCleaner, already
carries the hub-pinned shape and no local copy.
Impact
The
publish-release.ymlcatalog snippet exists, so the workflow with themost per-repo surface now has a copyable snapshot rather than a shape an
adopter has to hand-resolve. The full shape in "Adopting the Release Chain"
is that snippet byte for byte. The smoke stub grants
contents: read,names its secrets rather than inheriting them (
inheritis never used on across-repository call), and lists its
enable_*inputs, since every one ofthem defaults
trueon the task.ptr727/aiopurpleaircan proceed with itsbuild-release-task.ymldeletion, which this was blocking.
Out of Scope
The
@<hub-main-commit-sha> # <release-tag>placeholders in shapes thathave no catalog snippet of their own stay as they are. Replacing them is
the fleet-level call in #1472, deliberately not pre-empted here.
Two pre-existing findings are filed rather than fixed, neither introduced
by this change:
docs/reusable-workflows.md"Adopting the Release Chain" says the smokejob passes "the paths-filter's
enable_*outputs", while the canonicalsingle-target stub emits one
releaseoutput.${{ github.ref_name }}and${{ github.run_id }}intorun:shell text, against theenv:-passingconvention the rest of the tree holds.
Verification
scripts/prose_lint.py --diff,scripts/repo_gate.py(eol, eol-coverage,sha-pin),
spec/validate.py, andscripts/docker_lint.py(markdownlint,cspell, editorconfig-checker, actionlint, shellcheck, shfmt,
PSScriptAnalyzer) all clean.
sha-pinfail on all three lines of the new snippet, so the gate demonstrably
reaches the added file rather than skipping it.
mechanically rather than by eye.
Settles #1473. A
develop-targeted pull request registers no closingreference, so the issue closes with the promotion.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CyuonvNAm8nwkpwzkqq4qU