Skip to content

feat(ci): add lightweight post-release Go install smoke test - #338

Merged
jflowers merged 3 commits into
unbound-force:mainfrom
jflowers:opsx/add-lightweight-post-release-go-install
Nov 15, 2026
Merged

jflowers merged 3 commits into
unbound-force:mainfrom
jflowers:opsx/add-lightweight-post-release-go-install

Conversation

@jflowers

Copy link
Copy Markdown
Collaborator

Closes #297.

Summary

Adds .github/workflows/post-release-install-check.yml — a lightweight post-release smoke test that verifies the exact tag just published installs from proxy.golang.org.

Workflow behavior

  • Triggers: workflow_run of Release gated on conclusion == 'success' + workflow_dispatch with required tag input
  • Tag resolution: dispatch input (with v-prefix guard) or most recent non-draft release via gh api repos/$REPO/releases (3 attempts, 10s backoff; includes prereleases, excludes drafts — gh release view would return Latest non-prerelease only)
  • Install: go install github.com/unbound-force/gaze/v2/cmd/gaze@<tag> with temporary GOBIN/GOMODCACHE under RUNNER_TEMP (3-attempt go install with 30s backoff)
  • Assertions: go version -m "$GOBIN/gaze" asserting module path github.com/unbound-force/gaze/v2 + exact version with distinct ::error:: diagnostics, plus gaze --version
  • Safety: No checkout (consumers install from module proxy, not this tree), workflow-level permissions: {} with job-level contents: read, pinned actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 with go-version: "1.25" and cache: false, timeout-minutes: 15, concurrency post-release-install-check cancel-in-progress: false
  • Why not schedule canary: Canary already exists for daily checks; this complements it for release-time verification (see feat: add lightweight post-release Go install smoke test #297 Non-Goals — no pre-merge network, no workflow meta-tests, no protected-identifier snapshots)

Verification

  • PYENV_VERSION=3.10.19 yamllint -c .yamllint.yml PASS
  • actionlint PASS
  • go version -m parsing verified against matching/mismatching sample build-info (3 cases PASS)
  • gh api repos/unbound-force/gaze/releases --jq '[.[] | select(.draft == false)][0].tag_name' → v2.3.0 dry-run PASS

Remaining (post-merge)

  • 3.3 After merge, dispatch on main with current latest tag and confirm both assertions pass
  • 3.4 After next release, confirm workflow_run fired automatically

Constitution alignment

No production Go code changed — CI-only. Passes Accuracy (exact tag match), Minimal Assumptions (no checkout, temp dirs), Actionable Output (distinct errors), Testability (deterministic local checks).

OpenSpec change: openspec/changes/add-lightweight-post-release-go-install/

@jflowers
jflowers marked this pull request as ready for review November 15, 2026 00:46
uf-divisor
uf-divisor previously approved these changes Nov 15, 2026

@uf-divisor uf-divisor 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.

Council Review: APPROVE WITH ADVISORIES

6/6 dispatched reviewers succeeded; 5 returned APPROVE and 1 (divisor-sre) returned APPROVE WITH ADVISORIES. The consolidated verdict is APPROVE WITH ADVISORIES — 3 findings (1 MEDIUM, 2 LOW), no CRITICAL or HIGH.

What this PR does well: least-privilege design (workflow-level permissions: {} with job-level contents: read), SHA-pinned action with version comment (CI-001/CI-003), header comment block (CI-011), deliberate queue concurrency with justification (CI-012), bounded retries with distinct ::error:: diagnostics, no checkout, no secrets beyond github.token, and complete OpenSpec artifacts covering issue #297's 5 acceptance criteria and non-goals. All 6 CI checks pass; local actionlint and go version -m parsing validation pass.

Advisories (inline on .github/workflows/post-release-install-check.yml):

  1. [MEDIUM] release-verification (line 142): default GOPROXY falls through to direct, so the check verifies default-source installability rather than proxy.golang.org availability — contradicting the spec MUST and design D4.
  2. [LOW] tag-resolution (line 100): the automatic path resolves "most recent non-draft release" at execution time; queued back-to-back releases can verify the wrong tag with a silent false pass.
  3. [LOW] observability (line 59): the 15-minute timeout leaves little headroom over the worst-case retry path, so the terminal ::error:: diagnostic may not run.

These advisories do not block merge; they are accuracy-of-claim improvements suitable for a fast follow-up, ideally before the first automatic post-merge verification run (tasks 3.3/3.4).

This review was generated by /uf.review-pr (AI-assisted).

Add .github/workflows/post-release-install-check.yml that verifies
the exact published tag installs from proxy.golang.org via
go install + go version -m assertions (module path and exact version)
with distinct ::error:: diagnostics. Triggered on workflow_run of
Release (conclusion == success) plus workflow_dispatch with required
tag input. Uses temporary GOBIN/GOMODCACHE under RUNNER_TEMP with
bounded retries, no checkout, workflow-level permissions: {} with
job-level contents: read, pinned actions/setup-go@40f1582 # v5.6.0 (go 1.25, cache false),
15m timeout, and concurrency group post-release-install-check.

Update AGENTS.md CI/CD entries and Recent Changes.
Closes unbound-force#297.

OpenSpec change: add-lightweight-post-release-go-install
Co-Authored-By: internal-model
@jflowers
jflowers force-pushed the opsx/add-lightweight-post-release-go-install branch from bc1d2cc to 494c4ef Compare November 15, 2026 22:23
@jflowers
jflowers enabled auto-merge (rebase) November 15, 2026 22:35
@jflowers
jflowers disabled auto-merge November 15, 2026 22:36
@jflowers
jflowers enabled auto-merge (rebase) November 15, 2026 22:39
@jflowers
jflowers disabled auto-merge November 15, 2026 22:54
@jflowers
jflowers enabled auto-merge (rebase) November 15, 2026 23:03
@jflowers
jflowers disabled auto-merge November 15, 2026 23:05
@jflowers
jflowers enabled auto-merge (rebase) November 15, 2026 23:23
@jflowers
jflowers disabled auto-merge November 15, 2026 23:25
@uf-divisor
uf-divisor self-requested a review November 15, 2026 23:33
@jflowers
jflowers merged commit af28f39 into unbound-force:main Nov 15, 2026
6 checks passed
@jflowers
jflowers deleted the opsx/add-lightweight-post-release-go-install branch November 15, 2026 23:57
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.

feat: add lightweight post-release Go install smoke test

2 participants