ci: configure Pi review backend and formal review on Vega #21

Merged
nimmo merged 2 commits from feat/pi-ai-review into dev 2026-10-07 22:55:11 +01:00
Owner

Update the automated AI review workflow to use the native Pi review backend on Vega with strata/strata, route the workflow to runs-on: vega, and enable formal PR review decisions.

Update the automated AI review workflow to use the native Pi review backend on Vega with `strata/strata`, route the workflow to `runs-on: vega`, and enable formal PR review decisions.
ci: configure Pi review backend and formal review on Vega
Some checks failed
AI pull-request review / review (pull_request) Failing after 4s
Branch and package checks / check (pull_request) Failing after 5s
Build and Push Attic Cache / build (pull_request) Failing after 5s
7af8ea53ec
fix(ci): register Vega and expose NixOS review tools
All checks were successful
Branch and package checks / check (pull_request) Successful in 6s
Build and Push Attic Cache / build (pull_request) Successful in 10s
AI pull-request review / review (pull_request) Successful in 43s
b66522e952
Author
Owner

Fixed the initial CI failures in b66522e: Vega is now a declared actionlint runner label, and the review job adds /run/current-system/sw/bin to subsequent step PATHs. Verified Nix and Pi at that location on Vega without changing host services.

Added the required version bump to 2.5.0-dev4. All workflows pass actionlint and native Forgejo validation; the CPU package build passes its 206 Node and 60 Python tests. Pushing this commit triggers fresh checks.

Fixed the initial CI failures in b66522e: Vega is now a declared actionlint runner label, and the review job adds `/run/current-system/sw/bin` to subsequent step PATHs. Verified Nix and Pi at that location on Vega without changing host services. Added the required version bump to 2.5.0-dev4. All workflows pass actionlint and native Forgejo validation; the CPU package build passes its 206 Node and 60 Python tests. Pushing this commit triggers fresh checks.
Collaborator

Automated code review

Reviewed commit: b66522e9526233bd3590547884672bb89279a6db

Verdict: Requires further work

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

Overall assessment

The pull request migrates the AI review backend from Ollama on 'nova' to Pi on 'vega', updates workflow configurations for NixOS compatibility, and increments versioning. The previous finding regarding hardcoded paths was refuted by human evidence showing successful execution via PATH injection.

Blocking findings

None.

Important findings

  • Timeout increase lacks explicit justification in PR description (.forgejo/workflows/ai-review.yml:20; medium confidence)
    timeout-minutes: 40 (increased from 30)
    Impact: The timeout was increased by 33%. While likely necessary for the new backend, the PR description does not explicitly justify this increase. If the previous Ollama job completed in less time, this might indicate performance issues with the new setup.
    Suggested fix: Add a comment or commit message note explaining why the timeout was increased (e.g., 'Pi model inference is slower than local Ollama').

Suggestions

  • Formal review configuration may be unexpected (.forgejo/ai-review.yml:30; high confidence)
    formal_review: true
    allow_approval: false
    allow_request_changes: false
    Impact: The workflow is configured to perform a formal review but explicitly disallows approval or requesting changes. This means the AI will generate a detailed report but cannot directly influence the PR status via its own decision. This is a safe configuration but might be unexpected if the goal was to automate approvals.
    Suggested fix: Ensure this behavior aligns with the team's intent. If the goal is purely informational, this is correct. If automation was desired, allow_approval should be reviewed.

Tests and validation

  • package-checks: success

Questions

  • Does the 'pi' command on Vega support all the flags provided in the args list (e.g., --no-mcp, --no-extensions)?
  • Is the 'strata/strata' model available and correctly referenced in the Pi backend's registry?

Review limitations

  • I cannot verify the actual execution of the workflow on the 'vega' runner beyond the provided human report.
  • I cannot confirm the availability or correctness of the 'pi' binary or 'strata/strata' model in the target environment.
  • The review is based solely on the provided diff and documentation; runtime behavior is not tested.

Diff coverage

  • .forgejo/ai-review.yml: reviewed — included in a context-limited batch
  • .forgejo/workflows/ai-review.yml: reviewed — included in a context-limited batch
  • .github/actionlint.yaml: reviewed — included in a context-limited batch
  • CHANGELOG.md: reviewed — included in a context-limited batch
  • VERSION: reviewed — included in a context-limited batch
  • package.json: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: qwen3.6:35b-a3b-q8_0
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, README.md
  • Commits considered: 2
  • Previous automated review: updated
  • Findings: 2
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `b66522e9526233bd3590547884672bb89279a6db` ## Verdict: Requires further work Resolve the blocking or important findings and investigate failed deterministic checks before merging. ### Overall assessment The pull request migrates the AI review backend from Ollama on 'nova' to Pi on 'vega', updates workflow configurations for NixOS compatibility, and increments versioning. The previous finding regarding hardcoded paths was refuted by human evidence showing successful execution via PATH injection. ### Blocking findings None. ### Important findings - **Timeout increase lacks explicit justification in PR description** (.forgejo/workflows/ai-review.yml:20; medium confidence) timeout-minutes: 40 (increased from 30) Impact: The timeout was increased by 33%. While likely necessary for the new backend, the PR description does not explicitly justify this increase. If the previous Ollama job completed in less time, this might indicate performance issues with the new setup. Suggested fix: Add a comment or commit message note explaining why the timeout was increased (e.g., 'Pi model inference is slower than local Ollama'). ### Suggestions - **Formal review configuration may be unexpected** (.forgejo/ai-review.yml:30; high confidence) formal_review: true allow_approval: false allow_request_changes: false Impact: The workflow is configured to perform a formal review but explicitly disallows approval or requesting changes. This means the AI will generate a detailed report but cannot directly influence the PR status via its own decision. This is a safe configuration but might be unexpected if the goal was to automate approvals. Suggested fix: Ensure this behavior aligns with the team's intent. If the goal is purely informational, this is correct. If automation was desired, `allow_approval` should be reviewed. ### Tests and validation - package-checks: **success** ### Questions - Does the 'pi' command on Vega support all the flags provided in the args list (e.g., --no-mcp, --no-extensions)? - Is the 'strata/strata' model available and correctly referenced in the Pi backend's registry? ### Review limitations - I cannot verify the actual execution of the workflow on the 'vega' runner beyond the provided human report. - I cannot confirm the availability or correctness of the 'pi' binary or 'strata/strata' model in the target environment. - The review is based solely on the provided diff and documentation; runtime behavior is not tested. ### Diff coverage - `.forgejo/ai-review.yml`: **reviewed** — included in a context-limited batch - `.forgejo/workflows/ai-review.yml`: **reviewed** — included in a context-limited batch - `.github/actionlint.yaml`: **reviewed** — included in a context-limited batch - `CHANGELOG.md`: **reviewed** — included in a context-limited batch - `VERSION`: **reviewed** — included in a context-limited batch - `package.json`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: qwen3.6:35b-a3b-q8_0 - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, README.md - Commits considered: 2 - Previous automated review: updated - Findings: 2 </details>
Author
Owner

Run #245 completed successfully on the exact MR head b66522e. The reported PATH concern is disproved by the live job: the PATH step precedes the build and action, Nix ran successfully, and the review action completed. Vega is confirmed NixOS with executable /run/current-system/sw/bin/pi. No code correction is warranted for this speculative finding.

The MR still displays the interrupted pull_request check from #242: Vega's runner restarted and cancelled that job. The successful manual dispatch has a separate context. The API rerun endpoint is unsupported on this server, so reopening this same MR will trigger its normal required pull_request checks without changing the code or gates.

Note: the successful review reports the existing Qwen model. It validates the workflow execution, but does not establish that the proposed Pi provider was exercised; the review action uses trusted base configuration.

Run #245 completed successfully on the exact MR head b66522e. The reported PATH concern is disproved by the live job: the PATH step precedes the build and action, Nix ran successfully, and the review action completed. Vega is confirmed NixOS with executable `/run/current-system/sw/bin/pi`. No code correction is warranted for this speculative finding. The MR still displays the interrupted pull_request check from #242: Vega's runner restarted and cancelled that job. The successful manual dispatch has a separate context. The API rerun endpoint is unsupported on this server, so reopening this same MR will trigger its normal required pull_request checks without changing the code or gates. Note: the successful review reports the existing Qwen model. It validates the workflow execution, but does not establish that the proposed Pi provider was exercised; the review action uses trusted base configuration.
Author
Owner

Final merge assessment: all required checks pass on b66522e (#246–248). The remaining important finding concerns missing prose explaining the 40-minute job timeout; it identifies no correctness or security defect. This is a bounded maximum for a job that builds/tests the package before review, not a required execution duration or evidence of a performance regression. The latest job completed in 43 seconds. It does not block merging.

Formal reviews are intentionally advisory: approval and request-changes permissions remain disabled. Pi/Strata runtime acceptance remains separate because pre-merge review used the trusted base's Qwen configuration.

Final merge assessment: all required checks pass on b66522e (#246–248). The remaining important finding concerns missing prose explaining the 40-minute job timeout; it identifies no correctness or security defect. This is a bounded maximum for a job that builds/tests the package before review, not a required execution duration or evidence of a performance regression. The latest job completed in 43 seconds. It does not block merging. Formal reviews are intentionally advisory: approval and request-changes permissions remain disabled. Pi/Strata runtime acceptance remains separate because pre-merge review used the trusted base's Qwen configuration.
nimmo deleted branch feat/pi-ai-review 2026-10-07 22:55:12 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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/redview!21
No description provided.