Skip to content

ci: run ai-review binary from workspace target dir#5

Merged
pierrick-fonquerne merged 1 commit into
mainfrom
fix/ai-review-binary-path
Jun 3, 2026
Merged

ci: run ai-review binary from workspace target dir#5
pierrick-fonquerne merged 1 commit into
mainfrom
fix/ai-review-binary-path

Conversation

@pierrick-fonquerne

Copy link
Copy Markdown
Contributor

Scope

Fix the AI Review reusable workflow so the compiled binary is found at runtime.

Root cause

tools/ai-review is a member of the workspace defined at the repository root (Cargo.toml with [workspace]). Cargo places all build artifacts in the workspace target directory (./target), never in the member crate directory. The Run step invoked ./tools/ai-review/target/release/ai-review, which never existed, so every run failed with exit code 127. This stayed hidden because callers failed earlier at workflow validation (missing top-level permissions block).

Changes

  • Run step now executes ./target/release/ai-review.
  • rust-cache workspaces entry aligned to the workspace root (.).

Validation

Canary after merge: re-run AI Review on an open caller PR (nubster-identity#109) and confirm the review and describe checks pass.

The ai-review crate is a member of the workspace defined at the
repository root, so cargo emits the release binary to ./target,
not tools/ai-review/target. The Run step pointed at the crate
directory and exited 127. Point Run at the workspace target dir
and align the rust-cache workspace entry.
@pierrick-fonquerne pierrick-fonquerne merged commit 0638c28 into main Jun 3, 2026
3 checks passed
@pierrick-fonquerne pierrick-fonquerne deleted the fix/ai-review-binary-path branch June 3, 2026 13:55
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.

1 participant