Repository navigation
Harden the release and CI pipelines after review - #38
Merged
Merged
Conversation
Release: the publish job skips the upload when the version is already on the Gallery, so a re-run after a late failure is safe; the package hash comes from the build job's output; the GitHub Release step is idempotent and the wait for the Gallery listing moved after it. AGENTS.md documents what to do when a release run fails. Tools: every build, test and docs tool is pinned to an exact version in RequiredModules.psd1. CI resolves them once and shares the folder between jobs; test-local imports each tool at its pinned version and prints it. Checks: the analyzer stage also fails on plain-text password and credential-type warnings; a Pester run with no passing test fails; master CI runs are no longer cancelled; release/** branches no longer run twice. Co-Authored-By: Claude <noreply@anthropic.com>
build.ps1 exits 0 after an aborted build, so the stage reported success when a Gallery download failed (HTTP 502) and no module was written. The stage now requires a manifest written by the build, and repeats a failed first-time resolve of the build tools from an empty folder. Co-Authored-By: Claude <noreply@anthropic.com>
CI: runs outside pull requests get a concurrency group per commit, so a waiting master run is never replaced; the tools artifact is kept as long as the build artifact. test-local: repeat the build only when a pinned tool is missing, remove a half-filled tools folder after the last attempt too, and require the manifest of the version being built. Release: a version found on the Gallery fails a first attempt and is accepted only on a re-run; a conflict on a re-run counts as uploaded; a draft release for the tag is published. AGENTS.md tags the dry-run SHA. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Pull Request
Description
Hardens the release and CI pipelines after a review of the 0.5.0 release process. Merging this publishes
nothing; no tag is pushed.
Related Issue
None.
Type of Change
Changes Made
Release workflow (
.github/workflows/release.yml):failure is safe.
AGENTS.mddocuments what to do when a release run fails.Tools:
RequiredModules.psd1.Tests/test-local.ps1imports each tool at its pinned version and prints it.Checks:
build.ps1exits 0 after an aborted build, so a failedGallery download (HTTP 502) used to report success. A failed first-time resolve of the build tools is retried.
masterare no longer cancelled by a newer push;release/**branches no longer run twice.Testing
./Tests/test-local.ps1passes (analyzer, manifest, Pester on PS 7 and 5.1, docs drift)486 Pester tests pass on PowerShell 7.6 and Windows PowerShell 5.1 after the rebase onto master (f10cce0).
The changed release workflow has not run yet; a dry run (
gh workflow run release.yml) follows the merge.Checklist
source/Public/(not applicable)🤖 Generated with Claude Code