ci: configure Pi review backend and formal review on Vega #21
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pi-ai-review"
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?
Update the automated AI review workflow to use the native Pi review backend on Vega with
strata/strata, route the workflow toruns-on: vega, and enable formal PR review decisions.Fixed the initial CI failures in
b66522e: Vega is now a declared actionlint runner label, and the review job adds/run/current-system/sw/binto 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.
Automated code review
Reviewed commit:
b66522e9526233bd3590547884672bb89279a6dbVerdict: 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-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: 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_approvalshould be reviewed.Tests and validation
Questions
Review limitations
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 batchCHANGELOG.md: reviewed — included in a context-limited batchVERSION: reviewed — included in a context-limited batchpackage.json: reviewed — included in a context-limited batchReview metadata
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.
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.