Skip to content

Gate release publication on CI and package smoke tests - #51

Open
compnew2006 wants to merge 1 commit into
UserJoo9:mainfrom
compnew2006:codex/qm-07-release-gates
Open

compnew2006 wants to merge 1 commit into
UserJoo9:mainfrom
compnew2006:codex/qm-07-release-gates

Conversation

@compnew2006

Copy link
Copy Markdown
Contributor

Problem

A version tag started package publication independently of CI and the packaging smoke test. A failed check on the tagged commit did not gate that workflow. The smoke workflow also skipped changes to payload inputs such as the runtime modules, entry point and requirements when they changed outside packaging directories.

Changes

  • Reuse CI and the packaging smoke workflow from the same tag run, using the tagged checkout. The build waits for both.
  • Separate package construction from publication. The publish job downloads assets produced by the build job in the same run and is the only job with write access to repository contents. Pin the external steps that run with that access.
  • Expand packaging-smoke triggers to cover the packaged runtime and dependency inputs. Add tests for the release dependencies, permissions and path filters.

Before and after

Scenario Before After
A tag points to a commit that fails CI or a package install check The release workflow can continue independently Publishing depends on both jobs succeeding on the tagged commit
The entry point or dependencies change The packaging smoke workflow can skip the change Runtime payload paths trigger the smoke workflow
The build and tests need source access The release workflow grants write access by default Build and tests use read-only access and publishing alone gets write access

Publishing now takes longer because Linux tests and package checks gate the release. No tags, secrets or release settings were changed to verify this PR. This change follows the existing release versioning policy.

Integration with signed updates

This PR and #48 both modify the release tail. The combined version must preserve #48's GPG setup and signing step in the gated build job before staging the assets. Include the staged SHA256SUMS and SHA256SUMS.sig in the publish job alongside the packages, and keep the fail-on-unmatched-files option. Resolve the two workflow hunks in the PR that merges second.

Verification

  • Workflow contract tests failed before implementation and passed after the gates were added.
  • Local CI and packaging contract tests passed (40 tests), and Git whitespace checks passed.
  • The local full suite reproduced the existing macOS updater fixture failure also seen on upstream main. The pinned action references were checked against their upstream repositories. No tag-triggered publish run was dispatched.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant