You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: fail fast in the reusable AI-report workflow when analyzer is set without setup #421
Follow-up from the ci-external-analyzer-support review council (iteration 4, LOW advisory).
Problem
The reusable AI-report workflow does not fail fast when a caller passes analyzer without setup. The scaffolded templates always pair them (and a contract test pins that tie), but the reusable workflow is the public consumer contract: a hand-written caller can set analyzer and forget setup, and the job then installs opencode and only fails later when gaze report --analyzer=... cannot find the analyzer binary on a fresh runner — an opaque "analyzer not found" far from the misconfiguration.
Proposal
Add an early guard at the top of the gaze-ai-report job (both the report and skipped-report paths, or a shared pre-step): when inputs.analyzer != '' and inputs.setup == '', emit a ::error:: naming both inputs and exit 1 before any toolchain install runs. Pin it in cmd/gaze/ci_workflow_test.go's contract test (guard + error message + exit, per the enforcement-pinning pattern).
Adjacent scope while there: the iteration-4 advisory also noted the contract test pins guards only for the variables this change introduced ($ANALYZER/$LANGUAGE/$COVERPROFILE) while $MODEL_ARG and the threshold guards stay consumption-only pinned, and Set up Go plus the gaze install steps are in neither the content pins nor the step-order assertions — the same dropped-guard failure mode for pre-existing wiring.
Activity