Repository navigation
feat(api): check Seerr API compatibility in CI and track upstream weekly - #44
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
selmant
force-pushed
the
feat/seerr-api-compat
branch
from
November 3, 2026 20:44
f462634 to
8cc984b
Compare
This was referenced Nov 3, 2026
selmant
force-pushed
the
feat/seerr-missing-endpoints
branch
3 times, most recently
from
November 3, 2026 20:47
ab11602 to
a1889a4
Compare
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
upstream/seerr-api.yml is upstream Seerr's spec at af03562, kept byte-for-byte as the contract Foreseerr's /api/v1 must not break. Every operation Seerr doesn't have (104) is now marked x-foreseerr: true in seerr-api.yml; scripts/check-seerr-api.ts checks (and --fix applies) the markers. upstream/accepted-breaking.txt lists the known gaps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A documented operation nothing serves answers a bare 500 from the fallback. routes::spec_coverage checks both ways: every operation in seerr-api.yml has a handler in routes::router, and every handler is documented (the native desktop host's browser-cache redeem route is the one deliberate exception). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seerr API compatibility: oasdiff fails on any breaking change against the pinned Seerr spec not accepted in upstream/accepted-breaking.txt, and the x-foreseerr markers must match. Upstream Seerr sync (weekly, on demand): scripts/upstream-sync.sh lists the upstream commits after upstream/sync.json's reviewedThrough, sorted into security / port to Rust / cherry-pick / translations / skip, with the Seerr API changes, in one open upstream-sync issue. 'bump <sha>' marks a commit reviewed and pins its spec. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All 52 upstream commits since 59d5947 are ported or skipped (backend sync, frontend sync and missing-endpoints PRs), and Foreseerr now has every Seerr operation, so no breaking differences are accepted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
selmant
force-pushed
the
feat/seerr-api-compat
branch
from
November 3, 2026 20:53
8cc984b to
106a4ef
Compare
This was referenced Nov 3, 2026
Merged
5 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Foreseerr can no longer merge upstream Seerr (the backend is Rust now), but it promises to keep serving Seerr's
/api/v1API. This PR makes that promise something CI checks, and replaces merging with a weekly upstream review.Seerr API contract
upstream/seerr-api.ymlis upstream's spec ataf0356245, kept byte-for-byte. It is the contract.oasdiff breaking(image pinned by digest) against it and fails on any breaking change or warning that isn't listed with a reason inupstream/accepted-breaking.txt. That list is empty: with feat(api): restore ratingscombined and add overrideRule/advancedRequest #45 below this PR, Foreseerr has every Seerr operation and breaks none.x-foreseerr: true.scripts/check-seerr-api.tschecks that the markers match upstream exactly, and--fixadds or removes them.routes::spec_coveragetests: every documented operation has a Rust handler, and every handler is documented. Without a handler, a documented operation answers a bare 500. The native desktop host'sPOST /desktop/browser-cache/redeemis the one deliberate exception and is listed in the test.Upstream tracking
upstream/sync.jsonrecordsreviewedThrough, the last upstream commit that has been fully triaged.scripts/upstream-sync.sh reportlists the upstream commits after it, sorted into security / port to Rust / cherry-pick / translations / skip, plus Seerr API changes (oasdiff changelog, and breaks against our spec).bump <sha>marks a commit as reviewed and pins its spec.upstream-syncissue up to date.upstream/README.md. The README and migration guide now describe the API guarantee and point tosync.json.reviewedThroughisaf0356245, upstream's head today: all 52 commits since the last merge base are ported or deliberately skipped in #46 (backend), #45 (missing endpoints) and #43 (frontend).Stacked:
develop← #46 ← #45 ← this. #43 is independent. Merge in the order #46 → #45 → #43 → #44. GitHub retargets each PR as its base merges; with squash merges, rebase the next one ontodevelopbefore merging it.How Has This Been Tested?
cargo fmt --check,cargo clippy --all-targets --locked -- -D warnings,cargo test --locked: 724 passed on this stack (698 + 15 from fix(backend-rs): port upstream Seerr backend fixes through af0356245 #46 + 9 from feat(api): restore ratingscombined and add overrideRule/advancedRequest #45 + the 2 new coverage tests). The coverage tests failed before I fixed their matching (generic{id}/{action}handlers, literalmovie/tvhandlers), and they caught the undocumented redeem route.201back to200) fails withresponse-success-status-removed.check-seerr-api.ts: passes. Removing one marker fails, and--fixrestores the file byte-for-byte.scripts/upstream-sync.sh reportagainstupstream/developlisted the 52 unreviewed commits, with the twoMerge commit from forkadvisory fixes under Security. Afterbump af0356245, it reports nothing to do.actionlintandshellcheckare clean.bun run format:checkpasses. The route table regenerates without drift.develop(schedule /workflow_dispatch).Checklist:
bun run buildbun run i18n:extract🤖 Generated with Claude Code
Summary by CodeRabbit