Skip to content

ci: install cue (pinned) before the params reproducibility gate - #1

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/ci-fix
Sep 8, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/ci-fix

Conversation

@atrawog

@atrawog atrawog commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The cue:gen reproducibility step in ci.yml ran cue exp gengotypes without cue on the runner. Two root causes were fixed across heads: (1) no cue binary → go install cuelang.org/go/cmd/[email protected] (the charly-pinned version), without a custom GOBIN (the first attempt's GOBIN=/usr/local/go/bin is not on the runner PATH); (2) the earlier patch left four dead /tmp/cuegen lines after the new diff gate — removed in this head. The root charly.yml schema stamp is bumped to 2026.249.2125 (the latest charly release's floor, required by consumers validating with a fresh binary).

Files: .github/workflows/ci.yml (repro gate now a single clean step) and charly.yml (version stamp).

How tested

Live CI on this PR executes the fixed steps (test job: gofmt/vet/test → Install cue → repro). Local repro of the diff gate with real command output (an identical diff prints nothing; exit code is the evidence):

$ cd /tmp/cuegenpkg && /home/atrawog/go/bin/cue exp gengotypes .
$ diff <(sed '1,1d' /tmp/cuegenpkg/cue_types_params_gen.go) <(sed '1,1d' /tmp/plugin-review/candy/plugin-review/params/cue_types_gen.go); echo "diff_exit=$?"
diff_exit=0
$ cd /tmp/plugin-review/candy/plugin-review && go test ./...
ok  github.com/opencharly/plugin-review/candy/plugin-review

Rulebook compliance

  • R1: both CI failures were RCA'd (missing cue; misplaced GOBIN; dead leftover lines from a partial patch) — never code defects; the test job stayed green throughout.
  • R3: the single repro gate now owns the check; no duplication.
  • PR-only landing via the org validator.

Change classification

  • Change class: CI/config only (no runtime code change).
  • Verification gate: the live test check run on this PR + the pasted local repro (real output, exit code).
  • Attribution tier: analysed on a live system — the changed CI path executes live on this PR.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

The cue:gen reproducibility step ran 'cue exp gengotypes' without cue installed
on the runner (CI failed at that step; go test/vet passed). Fix: go install
cuelang.org/go/cmd/[email protected] (the charly-pinned version) before the gate.
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 437ad0a43317 (branch: main)

Change class: hook/workflow (CI workflow edit — .github/workflows/ci.yml)

Blocks

  1. A1 — incomplete/garbled body. The PR body is not a description at all; it is a concatenation of command fragments (cue exp gengotypesgo install cuelang.org/go/cmd/[email protected] test ./...cue exp gengotypes). It supplies none of the required sections: no Summary of changes (the diff adds a pinned cue install step before the params-reproducibility gate — the body never states this), no How tested with pasted output, no Attribution tier, and no Project-rulebook rule-compliance section. The body must be rewritten to follow the PR template and account for the single changed file.

  2. A2 — no evidence for a workflow change. This is a CI workflow change; the body provides no pasted output demonstrating the new step runs and the reproducibility gate passes with the pinned cue installed. Supply the actual run output (or a coherent test description) rather than command fragments.

Security screen: The change pins cuelang.org/go/cmd/[email protected] via go install — a pinned supply-chain dependency, consistent with its stated intent, no secrets/exfiltration/scope mismatch observed. Not a blocker, but the body must still document the change.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

The previous fix installed cue with GOBIN=/usr/local/go/bin which is not on the
runner PATH, and the repro step mixed multiple files into one package dir. Now:
go install to the default GOPATH bin (setup-go puts it on PATH), and the gen runs
on a single wrapped package file — diffs byte-identical against the committed
params/cue_types_gen.go.
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: cc5e756a8c930c3aef3ba61ea21803bb6e0ff04b

Change class: CI/config only (.github/workflows/ci.yml workflow edit).

Security screen: PASS — pins cuelang.org/go/cmd/[email protected] via go install, consistent with stated intent, no secrets/exfiltration/scope mismatch, strengthens the reproducibility gate.

Blocks

  1. A3 — inflated attribution tier. The footer claims (fully tested and validated), but the body's own Attribution tier section states analysed on a live system, and no actual CI output of the new steps passing is pasted (only a local repro). fully tested and validated requires the changed path to have executed against the fresh state with pasted proof; the ceiling here is at most analysed on a live system. Fix the footer to match the justified tier.

  2. Rule 4 / B12 / B14(d) — internally inconsistent pasted evidence. The pasted diff output is CUE_GEN_REPRODUCIBLE, which is not genuine diff output — a diff with no differences prints nothing (exit 0). This reads as a fabricated marker, not real command output. Additionally the body claims "see the test job below" but no such job output is pasted anywhere in the body — a described-but-unrun claim. Supply the real command output (or remove the fabricated marker) and paste the actual CI step output.

  3. B14(a) — dead leftover lines in the touched file. The old reproducibility approach remains in ci.yml after the new diff-based gate:

    printf 'package params\n' > /tmp/cuegen/review.cue.prefix
    cat /tmp/cuegen/review.cue.prefix candy/plugin-review/schema/review.cue > /tmp/cuegen/wrapped.cue
    cd /tmp/cuegen && cue exp gengotypes . -o candygen.go
    

    These lines reference /tmp/cuegen (no longer created), produce candygen.go that nothing validates, and are superseded by the new diff gate. They are dead code in the PR's own touched file and must be removed in the same commit.

Comment intake: The prior github-actions[bot] BLOCK (on SHA 437ad0a43317) raised A1/A2 body-completeness findings — stale-superseded: the current body has been rewritten with proper Summary / How-tested / Rulebook / Classification sections and accounts for the single changed file. The surviving findings above are re-derived from the CURRENT diff/body.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…26.249.2125

Removes the four dead /tmp/cuegen lines the previous patch left after the new
diff gate (validator B14(a)), and stamps the root schema floor required by the
latest charly release so consumers validating with a fresh binary pass.
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 081eaeae5d5c (branch: main)

Change class: CI/config only (.github/workflows/ci.yml workflow edit + charly.yml CalVer stamp).

Blocks

  1. A3 — inflated attribution tier. The footer claims (fully tested and validated), but the body's own Attribution tier section states analysed on a live system, and no actual CI output of the new steps passing is pasted (only a local repro). The ceiling here is at most analysed on a live system. Fix the footer to match the justified tier.

  2. Rule 4 / B14(d) — fabricated pasted evidence. The pasted diff output is CUE_GEN_REPRODUCIBLE, which is not genuine diff output — a diff with no differences prints nothing (exit 0). This reads as a fabricated marker, not real command output. Additionally the body claims "see the test job below" but no such job output is pasted anywhere in the body — a described-but-unrun claim. Supply the real command output (or remove the fabricated marker) and paste the actual CI step output.

Comment intake

  • Comment 1 (SHA 437ad0a43317, A1/A2 body completeness): stale-superseded — the current body has been rewritten with proper Summary / How-tested / Rulebook / Classification sections.
  • Comment 2 (SHA cc5e756a8c93):
    • A3 inflated tier: verified-blocking — footer still claims fully tested and validated against the body's own analysed on a live system tier.
    • Rule 4 fabricated CUE_GEN_REPRODUCIBLE marker + unrun "test job below": verified-blocking — both still present in the current body.
    • B14(a) dead leftover /tmp/cuegen lines: stale-superseded — the current diff removes those lines; the old approach is fully deleted.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: 8bc239abd8c9a61cae45eeff26c7351048a0cc7e (branch: main)

Security screen: PASS — pins cuelang.org/go/cmd/[email protected] via go install (supply-chain pin consistent with stated intent); no secrets/exfiltration/scope mismatch; CI/config-only change, no validator-guardrail or rulebook modification.

Checklist: All applicable rules PASS or NA.

  • Change class: CI/config only (.github/workflows/ci.yml workflow edit + charly.yml CalVer stamp). No runtime code change → no bed run required; live CI + pasted local repro with real diff_exit=0 output satisfies the gate.
  • A1/A2/A3: Body has Summary, How-tested, Rulebook, Classification, and footer; accounts for both changed files. Attribution tier analysed on a live system matches the footer exactly — not inflated.
  • B14(d)/Rule 4: Pasted evidence is genuine diff output (diff_exit=0), not a fabricated marker; no described-but-unrun claims.
  • B14(a)/R5: Dead /tmp/cuegen lines fully removed in the current diff; single clean repro gate owns the check.
  • Comment intake: All three prior github-actions[bot] BLOCKs re-derived against the CURRENT body/diff and found stale-superseded — (1) A1/A2 body completeness: body rewritten with all required sections; (2) A3 inflated fully tested and validated footer: now analysed on a live system, matching the justified tier; (3) fabricated CUE_GEN_REPRODUCIBLE marker + unrun "test job below": removed from the body; (4) dead leftover lines: deleted in the current diff. No surviving findings.
  • R1/R3/R4/R6/R8/R9/R10/B13/B16/B17/B18: NA or satisfied (no runtime/candy/schema/architecture change; no warnings; no duplication; no ad-hoc workarounds; no parking phrases).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit 311dc5e into main Sep 8, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 8, 2026
@atrawog
atrawog deleted the feat/ci-fix branch September 8, 2026 20:42
@aitrawog

Copy link
Copy Markdown
Contributor

I've verified the current state of the PR.

PR #1 (opencharly/plugin-review), head 8bc239abd8c9, base e184a75e1882, state: closed, 2 files changed (+8/−6).

Diff review:

  • .github/workflows/ci.yml: adds a pinned go install cuelang.org/go/cmd/[email protected] step before the reproducibility gate, and replaces the old /tmp/cuegen approach with a single clean gate (/tmp/cuegenpkg, cue exp gengotypes ., then diff against the committed cue_types_gen.go). The diff is the last command, so a mismatch exits non-zero and fails the step; a missing generated file also fails (empty substitution vs. committed file). Not vacuous.
  • charly.yml: CalVer stamp bump 2026.248.1030 → 2026.249.2125.

Body: Now coherent and complete — Summary, How tested (with genuine diff_exit=0 output), Rulebook compliance, Change classification, and attribution tier analysed on a live system matching the footer. Accounts for both changed files.

Comment intake: The three prior github-actions[bot] BLOCKs (on 437ad0a, cc5e756, 081eaea) are all stale-superseded against the current head:

  • A1/A2 body completeness — body rewritten with all required sections.
  • A3 inflated fully tested and validated footer — now analysed on a live system, matching the justified tier.
  • Rule 4 fabricated CUE_GEN_REPRODUCIBLE marker + unrun "test job below" — removed.
  • B14(a) dead /tmp/cuegen lines — fully deleted in the current diff.

The latest review on the current head is PASS, and my independent re-derivation against the current diff/body finds no surviving blocker. Security screen passes (pinned supply-chain dependency, no secrets/exfiltration/scope mismatch; CI/config-only, no guardrail modification).

Verdict: PASS


local-ollama/deepseek-v4.1-flash:cloud — action-review.

View action run

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.

2 participants