Repository navigation
feat(#375): external-analyzer CI support for the reusable workflow and gaze init --ci - #422
Merged
jflowers merged 5 commits intoNov 26, 2026
Conversation
… workflow and init --ci
…lt, single renderer seam, step-order pins - defaultNodeVersion 20 → 24 (Node 20 reached EOL 2026-04-30); golden, docs, and test pins updated together, EOL currency note added - delete the now test-only renderCIWorkflowTemplate; Go golden and structure tests render through renderCIWorkflowTemplateForVariant, the same seam the write path uses for every variant - placeholder-residue check is now a generic dunder-token scan, so a cross-variant placeholder cannot vanish via empty substitution - pin Set up Python with.python-version passthrough (Node already had it) - assert the gaze-ai-report job's step order: toolchains < Setup analyzer < Run gaze AI report < Report skipped, Download coverage before both report steps (release_workflow_test.go gate-order precedent) - Python template upload sets if-no-files-found: error so a missing coverage.xml fails at the cause, not downstream - printCISkipWarning names all three recognized markers instead of prescribing go mod init to non-Go users - document detectCIVariant's deliberate Stat-error semantics - design.md records the analyzer-mode execution residual risk
…n inputs, pin guards and exits, follow-up issues - complete the Node 24 doc sweep missed spots: reusable workflow input description, ci-integration inputs table, init.md fixed-versions bullet, design.md D5 and proposal.md narrative (all said 20) - quote the with-block version placeholders in both templates (node-version: "24", python-version: "3.12") — unquoted values are YAML integer/float scalars feeding type: string inputs, and a hand edit of 3.10 parses as float 3.1; goldens and docs examples updated - Node template upload sets if-no-files-found: error: the staging mkdir -p still creates .gaze-artifact when coverage/ is empty, so the upload must fail loudly instead of deferring to the download - pin the assembly guards (if [ -n "$ANALYZER" ] / $LANGUAGE) and the enforcement pairings (::error:: message + exit 1) in the reusable-workflow contract test — detection without enforcement is the ci-gate-integrity failure class (unbound-force#101/unbound-force#108/unbound-force#116) - pin the skip warning's three-marker phrase so the remedy text cannot regress to Go-only guidance - deepen the python and go-mod-wins e2e subtests to assert the same Created-list reporting contract as the node subtest - docs: external-analyzers example pins @v2.6.0 and states the input-surface requirement (older tags fail at workflow load) - follow-up issues filed: unbound-force#419 (variant pin floor), unbound-force#420 (analyzer-mode canary)
jflowers
enabled auto-merge (rebase)
November 26, 2026 22:30
uf-divisor
approved these changes
Nov 26, 2026
uf-divisor
left a comment
Contributor
There was a problem hiding this comment.
Council Review: APPROVE WITH ADVISORIES
8/8 reviewers succeeded (7 APPROVE, 1 APPROVE WITH ADVISORIES). No CRITICAL or HIGH findings; 3 LOW advisories, all from the SRE reviewer.
Findings (all LOW — advisory, non-blocking)
- Node template assumes an npm lockfile —
internal/scaffold/assets/ci/gaze-ai-report-node.yml:48.npm cirequires a committedpackage-lock.json; variant detection keys only onpackage.json, so pnpm/yarn/bun projects scaffold a workflow whose first install step fails. The file is user-owned/editable and the npm error is actionable. - Python template installs unpinned test tooling —
internal/scaffold/assets/ci/gaze-ai-report-python.yml:48.pip install pytest pytest-covfloats to latest, diverging from the Go (go.mod) and Node (lockfile) variants; an upstream major release can break a consumer's scaffolded CI with no local change. - Analyzer-mode path has no CI execution —
.github/workflows/reusable_gaze_ai_report.yml:194. The dogfood job exercises Go mode only; verification is static contract tests. Tracked by #420 (analyzer-mode canary).
CI Status
All checks pass: CI OK (aggregate), Unit + Integration (Go 1.24/1.25), E2E (Go 1.24/1.25), MegaLinter, Gaze AI Report; Gitleaks/Auto-merge skipped as expected for a code PR.
Pre-flight
ci-aware mode: go test, golangci-lint, yamllint all covered by passing CI checks — no local execution needed. Verdict PASS.
This review was generated by /uf.review-pr (AI-assisted).
This was referenced Nov 26, 2026
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
External-analyzer CI support for the reusable gaze AI-report workflow and
gaze init --ci, so non-Go repositories run the same CI quality-report pipeline as Go projects.The reusable workflow (
.github/workflows/reusable_gaze_ai_report.yml) gains six optionalworkflow_callinputs —analyzer,language,packages,setup,node-version, andpython-version— with Go-preserving defaults: conditional toolchain setup steps, an env-indirected analyzer-install snippet, conditional--analyzer/--languageargument assembly (coverprofile dropped in analyzer mode, positional packages argument), and a skipped-report path that validates coverage-artifact arrival in both modes.gaze init --cinow detectspackage.jsonandpyproject.toml(go.modstill wins) and scaffolds ready-to-run Node and Python caller workflows: quoted toolchain pins (Node 24 LTS / Python 3.12), lockfile-backed installs, coverage staging that survives upload-artifact least-common-ancestor stripping (Node),if-no-files-found: erroron uploads, and analyzer installation in the report job via thesetupinput.Tests cover variant detection, golden files rendered through the production seam, YAML structure, pin parity with the reusable workflow, end-to-end scaffolding, and the full workflow input/step/step-order contract.
Closes #375
How to Test
Full CI-parity suite:
Focused tests for this change:
YAML lint on the workflow, templates, and goldens:
How to Demo
Manual end-to-end scaffolding — in a temp dir containing only a
package.json:Then inspect the generated
.github/workflows/gaze-ai-report.yml: it sets up Node 24, runsnpm ci, stages the coverage upload so upload-artifact's least-common-ancestor stripping cannot drop it, passesanalyzer/packages/node-version/setupinputs to the reusable workflow, and leaves thresholds commented out for later calibration.Key Files Changed
.github/workflows/reusable_gaze_ai_report.ymlinternal/scaffold/scaffold.gogaze init --civariant detection (go.mod,package.json,pyproject.toml) and Node/Python template renderinginternal/scaffold/assets/ci/gaze-ai-report-node.ymlinternal/scaffold/assets/ci/gaze-ai-report-python.ymlinternal/scaffold/ci_test.gocmd/gaze/ci_workflow_test.gocmd/gaze/main.godocs/guides/ci-integration.md,docs/reference/cli/init.md,README.mdopenspec/changes/ci-external-analyzer-support/17 files changed, +2065 / −80.
Known Issues
The review council returned APPROVE WITH ADVISORIES after 4 iterations; the remaining advisories are all LOW severity and deferred with durable follow-up handles:
This PR was generated by /uf.finale (AI-assisted).