fix(ci): restore lint and review execution on Vega #286
No reviewers
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config!286
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/vega-review-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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/nixand 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.
Automated code review
Reviewed commit:
8ce9750ea950406d70e482c2750f70274ca1de06Verdict: 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
-ignoreflags into a shared config (.github/actionlint.yaml) with aself-hosted-runner.labelslist coveringnovaandvega, and add a PATH step to the review job. The label list matches everyruns-on:value in the checked-out tree (.forgejo/workflows/attic-cache.yml:68,170,268,383,497,598usenova;.forgejo/workflows/ai-review.yml:21usesvega), 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'spaths:filters, and the new PATH step uses a$GITHUB_*special-file variable that the repository otherwise never uses. The glob semantics of actionlint'spathskey and the runtime environment of thevegarunner cannot be established from the supplied evidence.Blocking findings
None.
Important findings
$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 theFORGEJO_spelling:printf 'tea-bin=...' >> "$FORGEJO_OUTPUT"at.forgejo/workflows/attic-cache.yml:303,304,printf 'follow_ups=...' >> "$FORGEJO_OUTPUT"at line 375, andprintf 'delivery_failures=...' >> "$FORGEJO_OUTPUT"at lines 465, 481, 487.$GITHUB_PATHand$GITHUB_OUTPUTappear nowhere else in the repository; only non-file context variables ($GITHUB_SHA,$GITHUB_REPOSITORY,$GITHUB_SERVER_URL,$GITHUB_TOKEN) are used.Impact: If the
vegarunner exports only theFORGEJO_PATHvariant,>> "$GITHUB_PATH"redirects to an empty file name, the step fails, and theRun advisory reviewstep 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:andpull_request:paths:filters (.forgejo/workflows/attic-cache.yml:6-25and26-47) list.forgejo/workflows/*.yml,**/*.nix,flake.lock, and specificscripts//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 gatingruns-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 bothpaths:lists, or keep the config adjacent to the workflows it configures.Config
pathsscope 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 onlyai-review.ymlandattic-cache.ymldirectly under.forgejo/workflows/, i.e. no subdirectories.Impact: The two patterns are not the same set: a future
*.yamlworkflow under.forgejo/workflows/would never be linted, so itsruns-on:label would not be checked against theself-hosted-runner.labelslist 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 withfind), and scope the config to the same paths it is actually invoked on.Tests and validation
Questions
pathsglob.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 toai-review.ymlorattic-cache.yml, and the lint step at.forgejo/workflows/attic-cache.yml:86would now fail onspecifying action "https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@main" in invalid format— the exact error the removed-ignoresuppressed.command: /run/current-system/sw/bin/pi,.forgejo/ai-review.yml:5), and the added step is the onlyrun:step in thereviewjob; 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?.forgejo/ai-review.yml:64states 'the review action runs in a container without Nix'. If that is accurate for the current runner,/run/current-system/sw/binwould not exist in the step's environment and the append would be inert. Which execution environment is current forruns-on: vega?-config-file .github/actionlint.yamlintentional, 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
forgejo-runner validate(.forgejo/workflows/attic-cache.yml:84, line 90) were not run, so 'the lint step passes' is not established from evidence.pathskey (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.https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@mainand the Forgejo runner implementation are not in the checked-out tree, so$GITHUB_PATH/$FORGEJO_PATHavailability, thevega/novarunner registrations, and the container-vs-host execution environment cannot be verified from supplied evidence./run/current-system/sw/bin, thepiexecutable) 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.runs-on:labels and externaluses:URLs; label usage in the base-only version ofai-review.ymloutside 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 batchReview metadata
Automated code review
Reviewed commit:
8ce9750ea950406d70e482c2750f70274ca1de06Verdict: 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.yamlregisters exactly the labels used byruns-on:in the two workflows present in the checkout (attic-cache.yml usesnovaat six job sites, ai-review.yml:21 usesvega), and it moves the external-action format ignore from the removed command-line-ignoreinto a path-scoped rule. The remaining reviewable risk is the new ai-review.yml PATH step, which uses the$GITHUB_PATHspecial-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-fileflag itself is redundant (.github/actionlint.yamlis 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
$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 withif [ -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' ifGITHUB_OUTPUTappears 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 definingGITHUB_PATH.Impact: If the runner does not export
GITHUB_PATH, the redirection target expands to an empty string and the step fails before theforgejo-auto-pr-reviewaction 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 ofFORGEJO_PATH/GITHUB_PATHis set and fail loudly if neither is. Confirm against the vega runner's environment rather than assuming GitHub compatibility aliases exist.Suggestions
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 isuses: 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.ymland thespecifying action ... in invalid formaterror 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.ymlbefore the gate is relied upon.Tests and validation
Questions
$GITHUB_PATH, or only theFORGEJO_*set that the rest of this repository uses?actionlint -config-file .github/actionlint.yaml .forgejo/workflows/*.ymlcommand 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.labelsare["${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 barevega/novato matchruns-on:in the workflows. Is the runner-side label naming intentionally different from theruns-on:values, or should one of the two be aligned?/run/current-system/sw/binsufficient for the review action, given the runner'shostPackages(modules/services/forgejo-runner.nix:69-79) supply nodejs/git/nix from store paths rather than from/run/current-system/sw/bin?Review limitations
forgejo-runner validate --directory .(attic-cache.yml:90) were not run, so the gate's post-change status is unverified.https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@mainis 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.pathsglob 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..forgejo/workflows/ai-review.ymland.forgejo/workflows/attic-cache.ymlexist in the checkout, so label usage and external-action usage elsewhere in the repository cannot be assessed against the newself-hosted-runner.labelsand path-scoped ignore./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 batchReview metadata
Automated code review
Reviewed commit:
8ce9750ea950406d70e482c2750f70274ca1de06Verdict: 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.yamlregisters thenova/vegalabels used byruns-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-ignorefor the fully qualifiedforgejo-auto-pr-reviewaction URL into that config, which the lint step at attic-cache.yml lines 84-86 now loads with-config-file.hosts/vega/default.nixline 27 importsmodules/profiles/pi-pangolin.nix, which setspi = 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 ownpaths:filters.Blocking findings
None.
Important findings
None.
Suggestions
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 pushpaths:filter (lines 7-24) and the pull_requestpaths: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 bothpaths:filter lists in attic-cache.yml so the shared lint configuration is itself covered by the gate it configures.Tests and validation
Questions
$GITHUB_PATHforrun:steps and apply the recorded value to the followinguses:step (ai-review.yml lines 32 and 37)? If$GITHUB_PATHis unset, the>> "$GITHUB_PATH"redirect has an empty target and the step errors instead of extending PATH..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.novaandvegaregistered 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
https://git.nimmog.uk/nimmo/forgejo-auto-pr-review@mainis not vendored in this repository; its required host tools and PATH expectations could not be inspected..forgejo/workflows/ai-review.ymlread by the review action were not supplied and could not be checked.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 batchReview metadata