fix(forgejo): use web compare diff route #73

Merged
jwilger merged 1 commit from fix/issue-71-incremental-compare-diff into main 2026-05-04 12:51:37 -07:00
Owner

Summary

  • Fetch incremental compare diffs from Forgejo's web compare .diff route instead of appending .diff to the API compare endpoint.
  • Preserve full-diff fallback for real missing compare targets while warning on the old request-construction failure shape.
  • Add focused regressions for compare-diff URL construction and fallback log classification.

Verification

  • nix develop -c cargo nextest run -p ar-forgejo get_compare_diff
  • nix develop -c cargo nextest run -p ar-orchestrator compare_diff
  • nix develop -c cargo fmt --all -- --check
  • nix develop -c cargo nextest run -p ar-forgejo
  • nix develop -c cargo nextest run -p ar-orchestrator
  • nix develop -c cargo clippy --workspace --all-targets -- -D warnings

Closes #71.

## Summary - Fetch incremental compare diffs from Forgejo's web compare `.diff` route instead of appending `.diff` to the API compare endpoint. - Preserve full-diff fallback for real missing compare targets while warning on the old request-construction failure shape. - Add focused regressions for compare-diff URL construction and fallback log classification. ## Verification - `nix develop -c cargo nextest run -p ar-forgejo get_compare_diff` - `nix develop -c cargo nextest run -p ar-orchestrator compare_diff` - `nix develop -c cargo fmt --all -- --check` - `nix develop -c cargo nextest run -p ar-forgejo` - `nix develop -c cargo nextest run -p ar-orchestrator` - `nix develop -c cargo clippy --workspace --all-targets -- -D warnings` Closes #71.
fix(forgejo): use web compare diff route
All checks were successful
CI / Nix flake check (pull_request) Successful in 2m32s
CI / auto_review semantic review (pull_request) Successful in 1s
auto_review auto_review: no findings
6d3c3ae39b
auto-review left a comment

This PR updates the Forgejo client to use the web compare .diff route for fetching diffs, addressing issue #71. The changes appear safe to merge, with improved error handling and additional test coverage for URL construction and fallback behavior.

Walkthrough

  • CHANGELOG.md: Updated to reflect the change in how Forgejo compare diffs are fetched, closing issue #71.
  • crates/ar-forgejo/src/client.rs: Modified the URL construction for fetching diffs to use the web compare .diff route. Updated tests to reflect this change.
  • crates/ar-orchestrator/src/dispatcher.rs: Adjusted error handling logic to differentiate between old API construction bugs and legitimate missing targets, with corresponding test updates.
This PR updates the Forgejo client to use the web compare `.diff` route for fetching diffs, addressing issue #71. The changes appear safe to merge, with improved error handling and additional test coverage for URL construction and fallback behavior. ## Walkthrough - **CHANGELOG.md**: Updated to reflect the change in how Forgejo compare diffs are fetched, closing issue #71. - **crates/ar-forgejo/src/client.rs**: Modified the URL construction for fetching diffs to use the web compare `.diff` route. Updated tests to reflect this change. - **crates/ar-orchestrator/src/dispatcher.rs**: Adjusted error handling logic to differentiate between old API construction bugs and legitimate missing targets, with corresponding test updates.
jwilger deleted branch fix/issue-71-incremental-compare-diff 2026-05-04 12:51:37 -07:00
jwilger referenced this pull request from a commit 2026-05-05 12:18:07 -07:00
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!73
No description provided.