Run Docker image through unified auto-review binary #131

Merged
jwilger merged 1 commit from issue-119-unified-docker-binary into main 2026-05-07 06:36:31 -07:00
Owner

Summary

  • update the gateway image command to launch /bin/auto-review gateway
  • add an image contract check for unified command, no stale ar-gateway entrypoint, and /bin/auto-review plus /bin/git contents
  • update the existing CLI flake contract to expect the public image command

Verification

  • nix develop -c cargo fmt --all -- --check
  • nix build .#checks.x86_64-linux.ar-gateway-docker-image-unified-binary-contract
  • nix develop -c cargo test -p ar-cli cli::tests::flake_publishes_auto_review_as_the_only_operator_binary -- --nocapture
  • nix flake check

Closes #119

## Summary - update the gateway image command to launch `/bin/auto-review gateway` - add an image contract check for unified command, no stale `ar-gateway` entrypoint, and `/bin/auto-review` plus `/bin/git` contents - update the existing CLI flake contract to expect the public image command ## Verification - `nix develop -c cargo fmt --all -- --check` - `nix build .#checks.x86_64-linux.ar-gateway-docker-image-unified-binary-contract` - `nix develop -c cargo test -p ar-cli cli::tests::flake_publishes_auto_review_as_the_only_operator_binary -- --nocapture` - `nix flake check` Closes #119
feat(gateway): run image through unified binary
All checks were successful
CI / Nix flake check (pull_request) Successful in 3m19s
CI / auto_review semantic review (pull_request) Successful in 2s
auto_review auto_review: no findings
Publish release / release-publish (pull_request) Has been skipped
9a069bfc92
auto-review left a comment

The PR updates the Docker image command to use a unified auto-review binary and adds a contract check for the image. The changes appear safe to merge, but verify the new binary path is correct in all deployment environments.

Walkthrough

  • crates/ar-cli/src/cli.rs:
    • Updated the command to launch the gateway using /bin/auto-review instead of ${ar-cli}/bin/auto-review.
  • flake.nix:
    • Modified the Docker image configuration to use /bin/auto-review for the command.
    • Added a new contract check to ensure the Docker image uses the unified CLI and does not contain stale entrypoints.
    • The contract check verifies the presence of /bin/auto-review and /bin/git in the Docker image layers.
The PR updates the Docker image command to use a unified auto-review binary and adds a contract check for the image. The changes appear safe to merge, but verify the new binary path is correct in all deployment environments. ## Walkthrough - **crates/ar-cli/src/cli.rs**: - Updated the command to launch the gateway using `/bin/auto-review` instead of `${ar-cli}/bin/auto-review`. - **flake.nix**: - Modified the Docker image configuration to use `/bin/auto-review` for the command. - Added a new contract check to ensure the Docker image uses the unified CLI and does not contain stale entrypoints. - The contract check verifies the presence of `/bin/auto-review` and `/bin/git` in the Docker image layers.
Sign in to join this conversation.
No reviewers
No milestone
No project
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
Slipstream/auto_review!131
No description provided.