Skip to content

ci: add published-tag consumer smoke workflow - #82

Merged
c-vigo merged 2 commits into
mainfrom
test/81-published-tag-smoke
Jul 15, 2026
Merged

c-vigo merged 2 commits into
mainfrom
test/81-published-tag-smoke

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Closes #81.

What

A new project-owned workflow, published-tag-smoke.yml, that runs the released artifact from its git tag — the way a consumer pins it (uses: vig-os/[email protected]) — and asserts it produces a signed commit with the expected content. Sibling of e2e-smoke, which only exercises uses: ./ from a branch checkout and so never covers the published tag ref after it is pushed.

Why it targets main directly

workflow_dispatch is only dispatchable when the workflow lives on the default branch. This is a deliberate, scoped deviation from the dev-first flow so we can trigger it for the already-pushed v0.3.0-rc1; sync-main-to-dev carries it back to dev for future releases. It is a brand-new file, so it does not touch the in-flight release/0.3.0 PR (#78) or the devkit-managed release workflows.

Design notes

  • Triggers: push: tags: ['v*.*.*'] (matches RCs v0.3.0-rc1 and finals v0.3.0; excludes the floating v0/v0.X tags that move on promotion) and workflow_dispatch with a ref input.
  • Fires on tag push because the release pipeline pushes tags with the Release App token (not GITHUB_TOKEN), so tag-push events trigger downstream workflows.
  • uses: forbids expressions, so the action is checked out at the tag into a path and run via uses: ./action-under-test — a faithful reproduction of a consumer pinning @<tag>.
  • Assertions mirror e2e-smoke: commit exists → is verification.verified == true → content round-trips; scratch branch deleted on exit. No recursion (scratch push is a branch, not a tag).

Validating this release

The push trigger will not retro-fire for the already-pushed v0.3.0-rc1. Once this merges to main, dispatch it manually against v0.3.0-rc1:

gh workflow run published-tag-smoke.yml --ref main -f ref=v0.3.0-rc1

Local checks green: actionlint clean, just precommit (prek --all-files, incl. yamllint + shellcheck) all pass.

Run the released artifact from its git tag, the way a consumer pins it
(`uses: vig-os/[email protected]`), and assert it produces a signed
commit. e2e-smoke only exercises `uses: ./` from a branch checkout; nothing
ran the published tag ref after it was pushed.

Triggers on any `v*.*.*` tag push (RCs and finals; the floating v0 / v0.X
tags are excluded so promotions don't re-trigger it) and on workflow_dispatch
with a `ref` input, so an already-pushed tag can be validated on demand.
Since `uses:` forbids expressions, the tag is checked out into a path and
run via `uses: ./action-under-test`. Assertions mirror e2e-smoke: the commit
exists, is signed, and round-trips the expected content.

Refs: #81
c-vigo added a commit that referenced this pull request Jul 15, 2026
Refs #85 (removal tracking).

## Why

The `Main protection` and `Release protection` rulesets require a
passing **`Dist Check`** status (GitHub Actions, integration `15368`).
The real check (`dist-check.yml`, #59) ships with **0.3.0** and is **not
yet on `main`**, so any PR whose head predates it — e.g. #82, and other
branches cut from the current `main` — can never report the context and
is permanently blocked.

## What

A temporary bootstrap workflow, `dist-check-stub.yml`, with a single job
named exactly **`Dist Check`** (the contractual context name, #60) that
always passes, triggered on `pull_request` to `main` and `release/**`.
It unblocks that class of PRs.

## Deliberate design

- **Distinct filename** (not `dist-check.yml`): sharing the real path
would cause an add/add merge conflict when `promote-release` merges
`release/0.3.0 -> main`, breaking the automated promotion.
- **Self-satisfying:** because it triggers on `pull_request`, this PR's
own head reports `Dist Check`, so — together with `CI Summary` from
`ci.yml` and your review fix — this PR merges through the ruleset
**without** a force/bypass.

## Lifecycle (important)

This is a scaffold that verifies nothing. **It must be deleted the
moment 0.3.0 is promoted to `main`** — once the real `dist-check.yml` is
there, both report `Dist Check` and the always-green stub would mask a
real failure. Tracked in #85.

Local checks: `actionlint` clean; `just precommit` (prek `--all-files`)
green.
@c-vigo
c-vigo merged commit 3795f71 into main Jul 15, 2026
10 checks passed
@c-vigo
c-vigo deleted the test/81-published-tag-smoke branch July 15, 2026 14:11
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.

Add published-tag consumer smoke: run the released artifact from its git tag

1 participant