Repository navigation
fix(ci): use status-aware smoke-test release lookup - #356
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the smoke-test repository dispatch workflow to correctly detect whether a GitHub Release exists for a tag (by checking gh api exit status), and documents the fix in both the canonical and workspace-template changelogs.
Changes:
- Update
assets/smoke-test/.github/workflows/repository-dispatch.ymlto branch ongh apisuccess/failure when looking upreleases/tags/<tag>. - Create the release when the lookup fails (missing tag), instead of incorrectly treating the error output as an existing release.
- Add corresponding “Fixed” entries to
CHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
CHANGELOG.md |
Documents the smoke-test release lookup fix. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry for the workspace template copy. |
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Fixes release existence detection using gh api exit status and adjusts the create/edit flow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Updates the smoke-test repository dispatch workflow to more reliably detect whether a GitHub Release for a tag already exists, and documents the fix in both the root and workspace-template changelogs.
Changes:
- Adjust release lookup logic to branch on
gh apiexit status rather than treating “empty output” as “no release”. - Create a missing release when lookup indicates a 404, and error out on other lookup failures.
- Add changelog entries describing the behavior change.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
CHANGELOG.md |
Documents the smoke-test release lookup behavior fix. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry for the workspace template copy. |
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Updates release existence detection and release creation/edit flow based on lookup outcome. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Fixes a false-positive release lookup in the smoke-test
repository_dispatchworkflow where a missing tag release (404) was treated as an existing release because the script relied on non-empty stdout instead of command status.The workflow now branches on
gh apiexit status so missing tags correctly follow the release-create path, and existing releases still validate and update release notes.Type of Change
fix-- Bug fixfeat-- New featuredocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/smoke-test/.github/workflows/repository-dispatch.yml|| true+ stdout-emptiness release detection with status-awareif EXISTING_RELEASE=$(gh api ...).prereleasecheck) andgh release editpathgh release createpath instead of failing withprerelease=nullCHANGELOG.md### Fixedentry for issue#355assets/workspace/.devcontainer/CHANGELOG.mdsync-manifesthook from root changelog updateChangelog Entry
Fixed
assets/smoke-test/.github/workflows/repository-dispatch.ymlto branch ongh apiexit status when queryingreleases/tags/<tag>prerelease=nullmismatchTesting
just test)Manual Testing Details
npx bats tests/bats/just.bats(13/13 passing)Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #355