Skip to content

chore(ci): register release workflows on main - #56

Merged
c-vigo merged 2 commits into
mainfrom
chore/55-register-release-workflows
Feb 18, 2026
Merged

c-vigo merged 2 commits into
mainfrom
chore/55-register-release-workflows

Conversation

@c-vigo

@c-vigo c-vigo commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Copies 3 release-related workflows (prepare-release.yml, release.yml, post-release.yml) and 4 required composite actions (setup-env, build-image, test-image, test-integration) from dev to main
  • This registers the workflow_dispatch triggers in the GitHub Actions tab, which currently cannot discover workflows that only exist on non-default branches
  • No existing workflows on main are removed or modified

Context

GitHub only indexes workflow_dispatch workflows present on the default branch. Since these release workflows have never existed on main, they are invisible to gh workflow run, the REST API, and the Actions UI. See #55 for full details.

Scope

Release-only -- other new workflows (ci.yml, codeql.yml, scorecard.yml, security-scan.yml) are excluded and will arrive with the full dev merge.

Post-merge verification

  • prepare-release.yml and release.yml appear in Actions tab
  • gh workflow run prepare-release.yml --ref dev -f version=0.2.2 -f dry-run=true succeeds
  • No existing workflows on main are broken

Refs: #55

Copy release-related workflows and their required composite actions
from dev to main so GitHub registers the workflow_dispatch triggers
in the Actions tab.

Workflows: prepare-release, release, post-release
Actions: setup-env, build-image, test-image, test-integration

Refs: #55

@gerchowl gerchowl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review findings

High – Release can proceed before all required CI checks are complete

In release.yml, the "Find and verify PR" step only rejects FAILURE/ERROR conclusions and requires at least one SUCCESS. Checks that are still PENDING, IN_PROGRESS, QUEUED, or null are silently ignored — so a release can proceed while checks are still running.

Suggestion: Also reject when any check has a non-terminal conclusion:

CI_PENDING=$(echo "$STATUS_ROLLUP" | jq '[.[] | select(.conclusion == null or .conclusion == "" or .conclusion == "PENDING")] | length')
if [ "$CI_PENDING" != "0" ]; then
  echo "ERROR: PR #$PR_NUMBER has $CI_PENDING checks still in progress"
  exit 1
fi

Medium – Test actions can silently switch the workspace commit during release

Both test-image/action.yml and test-integration/action.yml run actions/checkout internally without a ref input. In release.yml, the build-and-test job first checks out finalize_sha, but these internal checkouts resolve to the event's GITHUB_SHA (HEAD of the dispatched branch), not the pinned SHA. If the release branch receives commits between dispatch and test execution (e.g., from the sync-issues workflow triggered during finalize), tests may run against different code than the build.

Suggestion: Add a ref input to both composite actions and pass finalize_sha from the calling workflow, or remove the internal checkout and rely on the job-level checkout.


Low – install-just input is defined but not honored

In setup-env/action.yml, the install-just input defaults to 'true' but the "Install just" step has no if condition — it always runs. Every other optional tool (podman, node, devcontainer-cli, bats) has an if: guard; this one is missing.

Fix: Add if: inputs.install-just == 'true' to the step.


Low – macOS stat fallback is dead code

In build-image/action.yml, the tar verification step uses stat -f%z ... || stat -c%s .... The -f%z form is macOS syntax. Since this action only runs on ubuntu-22.04 runners, the macOS branch always silently fails. Not a bug, but misleading.

Suggestion: Remove the macOS fallback or add a comment explaining it's there for local testing.

Add bare-minimum workflow YAML files (ci.yml, codeql.yml, scorecard.yml,
security-scan.yml) to enable GitHub to recognize and register security
and quality workflows. Each includes minimal job structure with checkout.

Refs: #55
@c-vigo
c-vigo merged commit be61c3f into main Feb 18, 2026
4 checks passed
@c-vigo
c-vigo deleted the chore/55-register-release-workflows branch February 18, 2026 07:49
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.

Register release workflows on default branch (main)

2 participants