fix(ci): restore lint and review execution on Vega #286

Merged
nimmo merged 1 commit from fix/vega-review-ci into main 2026-10-08 07:38:32 +01:00
Owner

The move to Vega made actionlint reject the review workflow's runner label, blocking action #1115 before any builds. Define the Nova/Vega custom labels in a shared actionlint configuration and use it in the Attic regression gate. Add NixOS system tools to the review job PATH so the native Pi action can resolve host tools.

Validation: all workflows pass actionlint and native Forgejo schema validation; shell scripts pass ShellCheck; updater remediation and pin-lifecycle regression suites pass. Vega's /run/current-system/sw/bin/nix and Pi executable were verified read-only. MR CI must pass before merging.

Tracks #285. No Nix module, flake lock, host activation or staging script changes.

The move to Vega made actionlint reject the review workflow's runner label, blocking action #1115 before any builds. Define the Nova/Vega custom labels in a shared actionlint configuration and use it in the Attic regression gate. Add NixOS system tools to the review job PATH so the native Pi action can resolve host tools. Validation: all workflows pass actionlint and native Forgejo schema validation; shell scripts pass ShellCheck; updater remediation and pin-lifecycle regression suites pass. Vega's `/run/current-system/sw/bin/nix` and Pi executable were verified read-only. MR CI must pass before merging. Tracks #285. No Nix module, flake lock, host activation or staging script changes.
fix(ci): register Vega label and expose NixOS review tools
Some checks failed
Build and Push Attic Cache / test (pull_request) Successful in 1m42s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Failing after 2m6s
8ce9750ea9
clankbot left a comment

Automated code review

Reviewed commit: 8ce9750ea950406d70e482c2750f70274ca1de06

Verdict: Requires further work

Resolve the blocking or important findings and investigate failed deterministic checks before merging.

Overall assessment

The three changes move the two actionlint -ignore flags into a shared config (.github/actionlint.yaml) with a self-hosted-runner.labels list covering nova and vega, and add a PATH step to the review job. The label list matches every runs-on: value in the checked-out tree (.forgejo/workflows/attic-cache.yml:68,170,268,383,497,598 use nova; .forgejo/workflows/ai-review.yml:21 uses vega), and the ignore regex text is byte-identical to the removed CLI argument, so the relocation is textually faithful. Two gaps are visible in the supplied material: the new config file is not covered by the Attic gate's paths: filters, and the new PATH step uses a $GITHUB_* special-file variable that the repository otherwise never uses. The glob semantics of actionlint's paths key and the runtime environment of the vega runner cannot be established from the supplied evidence.

Blocking findings

None.

Important findings

  • New PATH step uses $GITHUB_PATH, a variable name the repository never otherwise uses for special files (.forgejo/workflows/ai-review.yml:32; medium confidence)
    The added step is run: echo /run/current-system/sw/bin >> "$GITHUB_PATH" (.forgejo/workflows/ai-review.yml:32). Every other write to a runner special file in the checked-out tree uses the FORGEJO_ spelling: printf 'tea-bin=...' >> "$FORGEJO_OUTPUT" at .forgejo/workflows/attic-cache.yml:303,304, printf 'follow_ups=...' >> "$FORGEJO_OUTPUT" at line 375, and printf 'delivery_failures=...' >> "$FORGEJO_OUTPUT" at lines 465, 481, 487. $GITHUB_PATH and $GITHUB_OUTPUT appear nowhere else in the repository; only non-file context variables ($GITHUB_SHA, $GITHUB_REPOSITORY, $GITHUB_SERVER_URL, $GITHUB_TOKEN) are used.
    Impact: If the vega runner exports only the FORGEJO_PATH variant, >> "$GITHUB_PATH" redirects to an empty file name, the step fails, and the Run advisory review step at line 35 never executes — the review job would be silently broken by this change rather than fixed. The failure mode is also invisible: no other step in this job would reveal it.
    Suggested fix: Use the same variable spelling the rest of the repository uses for runner special files (>> "$FORGEJO_PATH"), or make the target explicit and fail loudly, e.g. printf '%s\n' /run/current-system/sw/bin >> "${GITHUB_PATH:?}", so an unset variable is a clear error rather than a redirect to an empty file name.

Suggestions

  • Shared actionlint config is outside the Attic gate's trigger paths (.forgejo/workflows/attic-cache.yml:7; medium confidence)
    The push: and pull_request: paths: filters (.forgejo/workflows/attic-cache.yml:6-25 and 26-47) list .forgejo/workflows/*.yml, **/*.nix, flake.lock, and specific scripts//tests//remediation//benchmarks/ paths; there is no .github/** entry. The new config lives at .github/actionlint.yaml, and the only consumer is the lint step at line 84-86.
    Impact: A later commit editing only .github/actionlint.yaml — e.g. adding a runner label or loosening an ignore — would not re-run the lint step, so an incorrect label list would stop gating runs-on: values until some other tracked path also changes. This MR is unaffected because it also changes .forgejo/workflows/attic-cache.yml.
    Suggested fix: Add .github/actionlint.yaml (or .github/**) to both paths: lists, or keep the config adjacent to the workflows it configures.

  • Config paths scope and the linted file set use different globs (.forgejo/workflows/attic-cache.yml:86; medium confidence)
    The changed invocation passes the file argument .forgejo/workflows/*.yml (line 86), while the new config scopes its ignore list to .forgejo/workflows/**/*.{yml,yaml} (.github/actionlint.yaml:7). The tree currently contains only ai-review.yml and attic-cache.yml directly under .forgejo/workflows/, i.e. no subdirectories.
    Impact: The two patterns are not the same set: a future *.yaml workflow under .forgejo/workflows/ would never be linted, so its runs-on: label would not be checked against the self-hosted-runner.labels list this change introduced — the same class of failure the change was made to catch. Conversely, if actionlint's ** requires at least one intermediate directory, the relocated ignore would not apply to the two files that are actually linted today.
    Suggested fix: Make the two patterns agree, e.g. pass .forgejo/workflows/*.{yml,yaml} to actionlint (or build the file list with find), and scope the config to the same paths it is actually invoked on.

Tests and validation

  • No configured deterministic checks.

Questions

  • Does actionlint's paths glob .forgejo/workflows/**/*.{yml,yaml} match files located directly in .forgejo/workflows/ (no intermediate directory)? If ** requires at least one path segment, the relocated ignore no longer applies to ai-review.yml or attic-cache.yml, and the lint step at .forgejo/workflows/attic-cache.yml:86 would now fail on specifying action "https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main" in invalid format — the exact error the removed -ignore suppressed.
  • Is the added PATH step required at all? The review provider is invoked by absolute path (command: /run/current-system/sw/bin/pi, .forgejo/ai-review.yml:5), and the added step is the only run: step in the review job; the only following step is the external action at line 35. What consumes the appended PATH entry — the action's own shell steps, or the host provider?
  • The unchanged comment at .forgejo/ai-review.yml:64 states 'the review action runs in a container without Nix'. If that is accurate for the current runner, /run/current-system/sw/bin would not exist in the step's environment and the append would be inert. Which execution environment is current for runs-on: vega?
  • Is -config-file .github/actionlint.yaml intentional, given the file is placed at a path actionlint may also discover by default — i.e. is the flag there to be explicit, or is a second config source expected?

Review limitations

  • No tooling was executed: actionlint, ShellCheck, and forgejo-runner validate (.forgejo/workflows/attic-cache.yml:84, line 90) were not run, so 'the lint step passes' is not established from evidence.
  • actionlint's glob semantics for the config paths key (whether ** matches zero directory levels, and whether brace expansion {yml,yaml} is supported) were inferred from the config's shape, not from actionlint source or a run.
  • The external action https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main and the Forgejo runner implementation are not in the checked-out tree, so $GITHUB_PATH/$FORGEJO_PATH availability, the vega/nova runner registrations, and the container-vs-host execution environment cannot be verified from supplied evidence.
  • Live host state on Vega (/run/current-system/sw/bin, the pi executable) is attested only by the repository's own configuration strings (modules/profiles/ai-runtime.nix:50, .forgejo/ai-review.yml:5) and the untrusted PR text, not by an inspection of the host.
  • Only the checked-out tree was searched for runs-on: labels and external uses: URLs; label usage in the base-only version of ai-review.yml outside the supplied diff was not inspected.

Diff coverage

  • .forgejo/workflows/ai-review.yml: reviewed — included in a context-limited batch
  • .forgejo/workflows/attic-cache.yml: reviewed — included in a context-limited batch
  • .github/actionlint.yaml: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 1
  • Previous automated review: none found
  • Findings: 3
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `8ce9750ea950406d70e482c2750f70274ca1de06` ## Verdict: Requires further work Resolve the blocking or important findings and investigate failed deterministic checks before merging. ### Overall assessment The three changes move the two actionlint `-ignore` flags into a shared config (`.github/actionlint.yaml`) with a `self-hosted-runner.labels` list covering `nova` and `vega`, and add a PATH step to the review job. The label list matches every `runs-on:` value in the checked-out tree (`.forgejo/workflows/attic-cache.yml:68,170,268,383,497,598` use `nova`; `.forgejo/workflows/ai-review.yml:21` uses `vega`), and the ignore regex text is byte-identical to the removed CLI argument, so the relocation is textually faithful. Two gaps are visible in the supplied material: the new config file is not covered by the Attic gate's `paths:` filters, and the new PATH step uses a `$GITHUB_*` special-file variable that the repository otherwise never uses. The glob semantics of actionlint's `paths` key and the runtime environment of the `vega` runner cannot be established from the supplied evidence. ### Blocking findings None. ### Important findings - **New PATH step uses `$GITHUB_PATH`, a variable name the repository never otherwise uses for special files** (.forgejo/workflows/ai-review.yml:32; medium confidence) The added step is `run: echo /run/current-system/sw/bin >> "$GITHUB_PATH"` (`.forgejo/workflows/ai-review.yml:32`). Every other write to a runner special file in the checked-out tree uses the `FORGEJO_` spelling: `printf 'tea-bin=...' >> "$FORGEJO_OUTPUT"` at `.forgejo/workflows/attic-cache.yml:303,304`, `printf 'follow_ups=...' >> "$FORGEJO_OUTPUT"` at line 375, and `printf 'delivery_failures=...' >> "$FORGEJO_OUTPUT"` at lines 465, 481, 487. `$GITHUB_PATH` and `$GITHUB_OUTPUT` appear nowhere else in the repository; only non-file context variables (`$GITHUB_SHA`, `$GITHUB_REPOSITORY`, `$GITHUB_SERVER_URL`, `$GITHUB_TOKEN`) are used. Impact: If the `vega` runner exports only the `FORGEJO_PATH` variant, `>> "$GITHUB_PATH"` redirects to an empty file name, the step fails, and the `Run advisory review` step at line 35 never executes — the review job would be silently broken by this change rather than fixed. The failure mode is also invisible: no other step in this job would reveal it. Suggested fix: Use the same variable spelling the rest of the repository uses for runner special files (`>> "$FORGEJO_PATH"`), or make the target explicit and fail loudly, e.g. `printf '%s\n' /run/current-system/sw/bin >> "${GITHUB_PATH:?}"`, so an unset variable is a clear error rather than a redirect to an empty file name. ### Suggestions - **Shared actionlint config is outside the Attic gate's trigger paths** (.forgejo/workflows/attic-cache.yml:7; medium confidence) The `push:` and `pull_request:` `paths:` filters (`.forgejo/workflows/attic-cache.yml:6-25` and `26-47`) list `.forgejo/workflows/*.yml`, `**/*.nix`, `flake.lock`, and specific `scripts/`/`tests/`/`remediation/`/`benchmarks/` paths; there is no `.github/**` entry. The new config lives at `.github/actionlint.yaml`, and the only consumer is the lint step at line 84-86. Impact: A later commit editing only `.github/actionlint.yaml` — e.g. adding a runner label or loosening an ignore — would not re-run the lint step, so an incorrect label list would stop gating `runs-on:` values until some other tracked path also changes. This MR is unaffected because it also changes `.forgejo/workflows/attic-cache.yml`. Suggested fix: Add `.github/actionlint.yaml` (or `.github/**`) to both `paths:` lists, or keep the config adjacent to the workflows it configures. - **Config `paths` scope and the linted file set use different globs** (.forgejo/workflows/attic-cache.yml:86; medium confidence) The changed invocation passes the file argument `.forgejo/workflows/*.yml` (line 86), while the new config scopes its ignore list to `.forgejo/workflows/**/*.{yml,yaml}` (`.github/actionlint.yaml:7`). The tree currently contains only `ai-review.yml` and `attic-cache.yml` directly under `.forgejo/workflows/`, i.e. no subdirectories. Impact: The two patterns are not the same set: a future `*.yaml` workflow under `.forgejo/workflows/` would never be linted, so its `runs-on:` label would not be checked against the `self-hosted-runner.labels` list this change introduced — the same class of failure the change was made to catch. Conversely, if actionlint's `**` requires at least one intermediate directory, the relocated ignore would not apply to the two files that are actually linted today. Suggested fix: Make the two patterns agree, e.g. pass `.forgejo/workflows/*.{yml,yaml}` to actionlint (or build the file list with `find`), and scope the config to the same paths it is actually invoked on. ### Tests and validation - No configured deterministic checks. ### Questions - Does actionlint's `paths` glob `.forgejo/workflows/**/*.{yml,yaml}` match files located directly in `.forgejo/workflows/` (no intermediate directory)? If `**` requires at least one path segment, the relocated ignore no longer applies to `ai-review.yml` or `attic-cache.yml`, and the lint step at `.forgejo/workflows/attic-cache.yml:86` would now fail on `specifying action "https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main" in invalid format` — the exact error the removed `-ignore` suppressed. - Is the added PATH step required at all? The review provider is invoked by absolute path (`command: /run/current-system/sw/bin/pi`, `.forgejo/ai-review.yml:5`), and the added step is the only `run:` step in the `review` job; the only following step is the external action at line 35. What consumes the appended PATH entry — the action's own shell steps, or the host provider? - The unchanged comment at `.forgejo/ai-review.yml:64` states 'the review action runs in a container without Nix'. If that is accurate for the current runner, `/run/current-system/sw/bin` would not exist in the step's environment and the append would be inert. Which execution environment is current for `runs-on: vega`? - Is `-config-file .github/actionlint.yaml` intentional, given the file is placed at a path actionlint may also discover by default — i.e. is the flag there to be explicit, or is a second config source expected? ### Review limitations - No tooling was executed: actionlint, ShellCheck, and `forgejo-runner validate` (`.forgejo/workflows/attic-cache.yml:84`, line 90) were not run, so 'the lint step passes' is not established from evidence. - actionlint's glob semantics for the config `paths` key (whether `**` matches zero directory levels, and whether brace expansion `{yml,yaml}` is supported) were inferred from the config's shape, not from actionlint source or a run. - The external action `https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main` and the Forgejo runner implementation are not in the checked-out tree, so `$GITHUB_PATH`/`$FORGEJO_PATH` availability, the `vega`/`nova` runner registrations, and the container-vs-host execution environment cannot be verified from supplied evidence. - Live host state on Vega (`/run/current-system/sw/bin`, the `pi` executable) is attested only by the repository's own configuration strings (`modules/profiles/ai-runtime.nix:50`, `.forgejo/ai-review.yml:5`) and the untrusted PR text, not by an inspection of the host. - Only the checked-out tree was searched for `runs-on:` labels and external `uses:` URLs; label usage in the base-only version of `ai-review.yml` outside the supplied diff was not inspected. ### Diff coverage - `.forgejo/workflows/ai-review.yml`: **reviewed** — included in a context-limited batch - `.forgejo/workflows/attic-cache.yml`: **reviewed** — included in a context-limited batch - `.github/actionlint.yaml`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md - Commits considered: 1 - Previous automated review: none found - Findings: 3 </details>
clankbot left a comment

Automated code review

Reviewed commit: 8ce9750ea950406d70e482c2750f70274ca1de06

Verdict: Requires further work

Resolve the blocking or important findings and investigate failed deterministic checks before merging.

Overall assessment

Two of the three changed files interact with the existing tree in ways that can be checked: .github/actionlint.yaml registers exactly the labels used by runs-on: in the two workflows present in the checkout (attic-cache.yml uses nova at six job sites, ai-review.yml:21 uses vega), and it moves the external-action format ignore from the removed command-line -ignore into a path-scoped rule. The remaining reviewable risk is the new ai-review.yml PATH step, which uses the $GITHUB_PATH special-file name while every other step-output write in this repository uses the Forgejo namespace ($FORGEJO_OUTPUT), and which is not covered by any supplied validation. The -config-file flag itself is redundant (.github/actionlint.yaml is actionlint's default configuration path) but is not demonstrably wrong from supplied evidence, so it is reported only as a verification item.

Blocking findings

None.

Important findings

  • New PATH step uses $GITHUB_PATH, outside the $FORGEJO_* namespace this repository otherwise relies on (.forgejo/workflows/ai-review.yml:32; medium confidence)
    ai-review.yml:32 adds run: echo /run/current-system/sw/bin >> "$GITHUB_PATH". Every other step-output write in the checkout uses the Forgejo namespace: attic-cache.yml:303-304, 375, 465, 481, 487 (>> "$FORGEJO_OUTPUT"), and scripts/auto-update-workflow-route.sh:39 guards it with if [ -n "${FORGEJO_OUTPUT:-}" ], i.e. treats the Forgejo variable as possibly unset. tests/nixos-update-remediation-regressions.sh:42-44 fails with 'Forgejo workflow must use its native output file variable' if GITHUB_OUTPUT appears in a workflow, showing the repository treats GitHub aliases as unavailable. Nothing in the supplied tree (modules/services/forgejo-runner.nix, hosts/vega/default.nix) shows the vega runner defining GITHUB_PATH.
    Impact: If the runner does not export GITHUB_PATH, the redirection target expands to an empty string and the step fails before the forgejo-auto-pr-review action runs, so the review job and the check it reports on pull requests are blocked. The PR's stated validation covers the Attic gate, not this workflow, so the break would not be caught by the supplied regression steps.
    Suggested fix: Use the convention already established in this repository ($FORGEJO_PATH), or make the step independent of the special-file name, e.g. set the PATH for the consuming step directly (run: export PATH="$PATH:/run/current-system/sw/bin" combined with the action's own environment) or write to whichever of FORGEJO_PATH/GITHUB_PATH is set and fail loudly if neither is. Confirm against the vega runner's environment rather than assuming GitHub compatibility aliases exist.

Suggestions

  • Path-scoped ignore key may not match the flat file paths passed to actionlint (.github/actionlint.yaml:7; medium confidence)
    The ignore for the external-action format error moved from the removed command-line -ignore (attic-cache.yml diff, line 84) to the key .forgejo/workflows/**/*.{yml,yaml}. The gate at attic-cache.yml:86 invokes actionlint with the shell glob .forgejo/workflows/*.yml, which expands to flat paths such as .forgejo/workflows/ai-review.yml; the only external action in the tree is uses: https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main (ai-review.yml:36), which is exactly the pattern the removed ignore covered.
    Impact: If the ** segment does not match zero directories, or if brace expansion is not supported in config path keys, the rule never applies to .forgejo/workflows/ai-review.yml and the specifying action ... in invalid format error returns, failing the lint step at attic-cache.yml:84-86. The failure mode is a hard gate failure rather than a silent regression, so it would be visible but blocking.
    Suggested fix: Add the flat pattern alongside the recursive one (e.g. ".forgejo/workflows/*.{yml,yaml}" and ".forgejo/workflows/**/*.{yml,yaml}"), or verify once against the installed actionlint that the existing key matches .forgejo/workflows/ai-review.yml before the gate is relied upon.

Tests and validation

  • No configured deterministic checks.

Questions

  • Does the vega runner (modules/services/forgejo-runner.nix, services.forgejo-runner) export GitHub-compatible special-file variables such as $GITHUB_PATH, or only the FORGEJO_* set that the rest of this repository uses?
  • Was the new actionlint -config-file .github/actionlint.yaml .forgejo/workflows/*.yml command actually executed after the change? No run output is supplied, and no test in tests/ references actionlint or .github/actionlint.yaml, so the gate's passing status is unverified from the checkout.
  • The runner module's default labels are ["${hostName}:host", "host:host"] (modules/services/forgejo-runner.nix:21-27) and hosts/vega/default.nix:157 does not override them, yet the new config registers bare vega/nova to match runs-on: in the workflows. Is the runner-side label naming intentionally different from the runs-on: values, or should one of the two be aligned?
  • Is appending /run/current-system/sw/bin sufficient for the review action, given the runner's hostPackages (modules/services/forgejo-runner.nix:69-79) supply nodejs/git/nix from store paths rather than from /run/current-system/sw/bin?

Review limitations

  • No tool execution was performed: actionlint, ShellCheck, and forgejo-runner validate --directory . (attic-cache.yml:90) were not run, so the gate's post-change status is unverified.
  • The external action at https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main is not in the checkout, so which tools it resolves from PATH - and therefore whether the new PATH step is necessary or sufficient - cannot be established.
  • actionlint's option parser and its config paths glob semantics (single-dash long options, ** matching zero directories, brace expansion in keys) are not present in the supplied tree; the corresponding finding is stated as a verification item rather than a demonstrated defect.
  • Only .forgejo/workflows/ai-review.yml and .forgejo/workflows/attic-cache.yml exist in the checkout, so label usage and external-action usage elsewhere in the repository cannot be assessed against the new self-hosted-runner.labels and path-scoped ignore.
  • The ai-review.yml provider comment stating the review action 'runs in a container without Nix' (pre-existing, unchanged) cannot be reconciled with the new host path /run/current-system/sw/bin; the live action implementation was not supplied.

Diff coverage

  • .forgejo/workflows/ai-review.yml: reviewed — included in a context-limited batch
  • .forgejo/workflows/attic-cache.yml: reviewed — included in a context-limited batch
  • .github/actionlint.yaml: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 1
  • Previous automated review: none found
  • Findings: 2
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `8ce9750ea950406d70e482c2750f70274ca1de06` ## Verdict: Requires further work Resolve the blocking or important findings and investigate failed deterministic checks before merging. ### Overall assessment Two of the three changed files interact with the existing tree in ways that can be checked: `.github/actionlint.yaml` registers exactly the labels used by `runs-on:` in the two workflows present in the checkout (attic-cache.yml uses `nova` at six job sites, ai-review.yml:21 uses `vega`), and it moves the external-action format ignore from the removed command-line `-ignore` into a path-scoped rule. The remaining reviewable risk is the new ai-review.yml PATH step, which uses the `$GITHUB_PATH` special-file name while every other step-output write in this repository uses the Forgejo namespace (`$FORGEJO_OUTPUT`), and which is not covered by any supplied validation. The `-config-file` flag itself is redundant (`.github/actionlint.yaml` is actionlint's default configuration path) but is not demonstrably wrong from supplied evidence, so it is reported only as a verification item. ### Blocking findings None. ### Important findings - **New PATH step uses `$GITHUB_PATH`, outside the `$FORGEJO_*` namespace this repository otherwise relies on** (.forgejo/workflows/ai-review.yml:32; medium confidence) ai-review.yml:32 adds `run: echo /run/current-system/sw/bin >> "$GITHUB_PATH"`. Every other step-output write in the checkout uses the Forgejo namespace: attic-cache.yml:303-304, 375, 465, 481, 487 (`>> "$FORGEJO_OUTPUT"`), and scripts/auto-update-workflow-route.sh:39 guards it with `if [ -n "${FORGEJO_OUTPUT:-}" ]`, i.e. treats the Forgejo variable as possibly unset. tests/nixos-update-remediation-regressions.sh:42-44 fails with 'Forgejo workflow must use its native output file variable' if `GITHUB_OUTPUT` appears in a workflow, showing the repository treats GitHub aliases as unavailable. Nothing in the supplied tree (modules/services/forgejo-runner.nix, hosts/vega/default.nix) shows the vega runner defining `GITHUB_PATH`. Impact: If the runner does not export `GITHUB_PATH`, the redirection target expands to an empty string and the step fails before the `forgejo-auto-pr-review` action runs, so the review job and the check it reports on pull requests are blocked. The PR's stated validation covers the Attic gate, not this workflow, so the break would not be caught by the supplied regression steps. Suggested fix: Use the convention already established in this repository (`$FORGEJO_PATH`), or make the step independent of the special-file name, e.g. set the PATH for the consuming step directly (`run: export PATH="$PATH:/run/current-system/sw/bin"` combined with the action's own environment) or write to whichever of `FORGEJO_PATH`/`GITHUB_PATH` is set and fail loudly if neither is. Confirm against the vega runner's environment rather than assuming GitHub compatibility aliases exist. ### Suggestions - **Path-scoped ignore key may not match the flat file paths passed to actionlint** (.github/actionlint.yaml:7; medium confidence) The ignore for the external-action format error moved from the removed command-line `-ignore` (attic-cache.yml diff, line 84) to the key `.forgejo/workflows/**/*.{yml,yaml}`. The gate at attic-cache.yml:86 invokes actionlint with the shell glob `.forgejo/workflows/*.yml`, which expands to flat paths such as `.forgejo/workflows/ai-review.yml`; the only external action in the tree is `uses: https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main` (ai-review.yml:36), which is exactly the pattern the removed ignore covered. Impact: If the `**` segment does not match zero directories, or if brace expansion is not supported in config path keys, the rule never applies to `.forgejo/workflows/ai-review.yml` and the `specifying action ... in invalid format` error returns, failing the lint step at attic-cache.yml:84-86. The failure mode is a hard gate failure rather than a silent regression, so it would be visible but blocking. Suggested fix: Add the flat pattern alongside the recursive one (e.g. `".forgejo/workflows/*.{yml,yaml}"` and `".forgejo/workflows/**/*.{yml,yaml}"`), or verify once against the installed actionlint that the existing key matches `.forgejo/workflows/ai-review.yml` before the gate is relied upon. ### Tests and validation - No configured deterministic checks. ### Questions - Does the vega runner (modules/services/forgejo-runner.nix, services.forgejo-runner) export GitHub-compatible special-file variables such as `$GITHUB_PATH`, or only the `FORGEJO_*` set that the rest of this repository uses? - Was the new `actionlint -config-file .github/actionlint.yaml .forgejo/workflows/*.yml` command actually executed after the change? No run output is supplied, and no test in tests/ references actionlint or `.github/actionlint.yaml`, so the gate's passing status is unverified from the checkout. - The runner module's default `labels` are `["${hostName}:host", "host:host"]` (modules/services/forgejo-runner.nix:21-27) and hosts/vega/default.nix:157 does not override them, yet the new config registers bare `vega`/`nova` to match `runs-on:` in the workflows. Is the runner-side label naming intentionally different from the `runs-on:` values, or should one of the two be aligned? - Is appending `/run/current-system/sw/bin` sufficient for the review action, given the runner's `hostPackages` (modules/services/forgejo-runner.nix:69-79) supply nodejs/git/nix from store paths rather than from `/run/current-system/sw/bin`? ### Review limitations - No tool execution was performed: actionlint, ShellCheck, and `forgejo-runner validate --directory .` (attic-cache.yml:90) were not run, so the gate's post-change status is unverified. - The external action at `https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main` is not in the checkout, so which tools it resolves from PATH - and therefore whether the new PATH step is necessary or sufficient - cannot be established. - actionlint's option parser and its config `paths` glob semantics (single-dash long options, `**` matching zero directories, brace expansion in keys) are not present in the supplied tree; the corresponding finding is stated as a verification item rather than a demonstrated defect. - Only `.forgejo/workflows/ai-review.yml` and `.forgejo/workflows/attic-cache.yml` exist in the checkout, so label usage and external-action usage elsewhere in the repository cannot be assessed against the new `self-hosted-runner.labels` and path-scoped ignore. - The ai-review.yml provider comment stating the review action 'runs in a container without Nix' (pre-existing, unchanged) cannot be reconciled with the new host path `/run/current-system/sw/bin`; the live action implementation was not supplied. ### Diff coverage - `.forgejo/workflows/ai-review.yml`: **reviewed** — included in a context-limited batch - `.forgejo/workflows/attic-cache.yml`: **reviewed** — included in a context-limited batch - `.github/actionlint.yaml`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md - Commits considered: 1 - Previous automated review: none found - Findings: 2 </details>
clankbot left a comment

Automated code review

Reviewed commit: 8ce9750ea950406d70e482c2750f70274ca1de06

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

The three changed files are internally consistent: .github/actionlint.yaml registers the nova/vega labels used by runs-on: in .forgejo/workflows/attic-cache.yml (lines 68, 170, 268, 383, 497, 598) and .forgejo/workflows/ai-review.yml (line 21), and re-homes the previously inline -ignore for the fully qualified forgejo-auto-pr-review action URL into that config, which the lint step at attic-cache.yml lines 84-86 now loads with -config-file. hosts/vega/default.nix line 27 imports modules/profiles/pi-pangolin.nix, which sets pi = inputs.llm-agents.packages.${system}.pi (line 26), so a system-installed Pi binary on Vega is a real target for the added PATH step. No defect is demonstrated in the supplied diff. One scope gap is reportable: the new config file is not covered by the lint gate's own paths: filters.

Blocking findings

None.

Important findings

None.

Suggestions

  • New actionlint config is outside the lint gate's trigger paths (.forgejo/workflows/attic-cache.yml:7; medium confidence)
    The lint step now consumes a new required input: actionlint \ -config-file .github/actionlint.yaml \ .forgejo/workflows/*.yml (attic-cache.yml lines 84-86). The push paths: filter (lines 7-24) and the pull_request paths: filter (lines 25-42) list .forgejo/workflows/*.yml, **/*.nix, flake.lock, and specific script/test paths; neither matches .github/actionlint.yaml. A repository-wide search shows this config is referenced only by that step.
    Impact: A commit touching only .github/actionlint.yaml - e.g. adding a future host label or a new ignore pattern - does not re-run the lint gate, so a malformed or stale config can be merged unlinted and only surface as an actionlint failure on the next unrelated workflow/nix push, at which point it blocks the Attic build and the auto-update rollout.
    Suggested fix: Add .github/actionlint.yaml (or .github/**) to both paths: filter lists in attic-cache.yml so the shared lint configuration is itself covered by the gate it configures.

Tests and validation

  • No configured deterministic checks.

Questions

  • Does the Forgejo action runner on Vega populate $GITHUB_PATH for run: steps and apply the recorded value to the following uses: step (ai-review.yml lines 32 and 37)? If $GITHUB_PATH is unset, the >> "$GITHUB_PATH" redirect has an empty target and the step errors instead of extending PATH.
  • Does actionlint's config glob .forgejo/workflows/**/*.{yml,yaml} (actionlint.yaml line 7) match files located directly in .forgejo/workflows/, i.e. does ** match zero path segments? If not, the moved ignore no longer applies to ai-review.yml line 37 (uses: https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main) and the lint step would fail. The supplied material does not include actionlint's glob semantics.
  • Are nova and vega registered as permitted runner labels in Forgejo itself, or only as actionlint allow-list entries? The config change satisfies the linter only; the supplied material cannot show the review job will actually be scheduled on Vega.

Review limitations

  • No actionlint, ShellCheck, or Forgejo runner is available here, and I did not execute repository code or the CI gate, so 'all workflows pass actionlint' and the PR's CI claims are unverified.
  • The external action https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main is not vendored in this repository; its required host tools and PATH expectations could not be inspected.
  • Forgejo's registered runner labels, the live Vega environment, and the base-commit copy of .forgejo/workflows/ai-review.yml read by the review action were not supplied and could not be checked.
  • Only the three changed files were examined; unchanged code elsewhere in the two workflows was not re-reviewed, and no defect is claimed there.
  • The regression suites named in the PR description were not run and are not touched by this diff.

Diff coverage

  • .forgejo/workflows/ai-review.yml: reviewed — included in a context-limited batch
  • .forgejo/workflows/attic-cache.yml: reviewed — included in a context-limited batch
  • .github/actionlint.yaml: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 1
  • Previous automated review: none found
  • Findings: 1
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `8ce9750ea950406d70e482c2750f70274ca1de06` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The three changed files are internally consistent: `.github/actionlint.yaml` registers the `nova`/`vega` labels used by `runs-on:` in `.forgejo/workflows/attic-cache.yml` (lines 68, 170, 268, 383, 497, 598) and `.forgejo/workflows/ai-review.yml` (line 21), and re-homes the previously inline `-ignore` for the fully qualified `forgejo-auto-pr-review` action URL into that config, which the lint step at attic-cache.yml lines 84-86 now loads with `-config-file`. `hosts/vega/default.nix` line 27 imports `modules/profiles/pi-pangolin.nix`, which sets `pi = inputs.llm-agents.packages.${system}.pi` (line 26), so a system-installed Pi binary on Vega is a real target for the added PATH step. No defect is demonstrated in the supplied diff. One scope gap is reportable: the new config file is not covered by the lint gate's own `paths:` filters. ### Blocking findings None. ### Important findings None. ### Suggestions - **New actionlint config is outside the lint gate's trigger paths** (.forgejo/workflows/attic-cache.yml:7; medium confidence) The lint step now consumes a new required input: `actionlint \ -config-file .github/actionlint.yaml \ .forgejo/workflows/*.yml` (attic-cache.yml lines 84-86). The push `paths:` filter (lines 7-24) and the pull_request `paths:` filter (lines 25-42) list `.forgejo/workflows/*.yml`, `**/*.nix`, `flake.lock`, and specific script/test paths; neither matches `.github/actionlint.yaml`. A repository-wide search shows this config is referenced only by that step. Impact: A commit touching only `.github/actionlint.yaml` - e.g. adding a future host label or a new ignore pattern - does not re-run the lint gate, so a malformed or stale config can be merged unlinted and only surface as an actionlint failure on the next unrelated workflow/nix push, at which point it blocks the Attic build and the auto-update rollout. Suggested fix: Add `.github/actionlint.yaml` (or `.github/**`) to both `paths:` filter lists in attic-cache.yml so the shared lint configuration is itself covered by the gate it configures. ### Tests and validation - No configured deterministic checks. ### Questions - Does the Forgejo action runner on Vega populate `$GITHUB_PATH` for `run:` steps and apply the recorded value to the following `uses:` step (ai-review.yml lines 32 and 37)? If `$GITHUB_PATH` is unset, the `>> "$GITHUB_PATH"` redirect has an empty target and the step errors instead of extending PATH. - Does actionlint's config glob `.forgejo/workflows/**/*.{yml,yaml}` (actionlint.yaml line 7) match files located directly in `.forgejo/workflows/`, i.e. does `**` match zero path segments? If not, the moved ignore no longer applies to ai-review.yml line 37 (`uses: https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main`) and the lint step would fail. The supplied material does not include actionlint's glob semantics. - Are `nova` and `vega` registered as permitted runner labels in Forgejo itself, or only as actionlint allow-list entries? The config change satisfies the linter only; the supplied material cannot show the review job will actually be scheduled on Vega. ### Review limitations - No actionlint, ShellCheck, or Forgejo runner is available here, and I did not execute repository code or the CI gate, so 'all workflows pass actionlint' and the PR's CI claims are unverified. - The external action `https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main` is not vendored in this repository; its required host tools and PATH expectations could not be inspected. - Forgejo's registered runner labels, the live Vega environment, and the base-commit copy of `.forgejo/workflows/ai-review.yml` read by the review action were not supplied and could not be checked. - Only the three changed files were examined; unchanged code elsewhere in the two workflows was not re-reviewed, and no defect is claimed there. - The regression suites named in the PR description were not run and are not touched by this diff. ### Diff coverage - `.forgejo/workflows/ai-review.yml`: **reviewed** — included in a context-limited batch - `.forgejo/workflows/attic-cache.yml`: **reviewed** — included in a context-limited batch - `.github/actionlint.yaml`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md - Commits considered: 1 - Previous automated review: none found - Findings: 1 </details>
nimmo merged commit 01319da7f4 into main 2026-10-08 07:38:32 +01:00
nimmo deleted branch fix/vega-review-ci 2026-10-08 07:38:33 +01:00
Sign in to join this conversation.
No reviewers
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config!286
No description provided.