You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: stop calling the v1 migration gates from the trusted tools - #3199
The trusted CI tools run from main against a pull request's Makefile. The pull request that retires /api/v1 deletes the migration ledger, its internal/contractledger package and the verify-v1-route-freeze target. main's copy of go-checks.mk still calls those targets and requires internal/contractledger in its list of packages whose tests start go, so that pull request cannot pass CI until main stops naming them.
Approach
Drop the verify-migration-ledger and verify-v1-route-freeze calls from the contracts lane.
Compare the subprocess-test package list against the listed packages that exist ($(wildcard …)), so a deleted package no longer fails the check.
On main the ledger targets and package still exist. make test-go keeps running the ledger package's tests, so the ledger stays checked until the retirement merges. This needs to merge before the /api/v1 retirement pull request.
Validation
Subprocess-test package check: matches on main and on the retirement branch.
Neither retired target is referenced by the new file.
Between this merge and the retirement merge, CI no longer runs the v1 route freeze or the ledger's section-assignment check. The retirement removes both.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
The Evidence section shows every change a user can see, or says there is none.
Remove v1 migration gates from the contracts CI target
Drops the verify-migration-ledger and verify-v1-route-freeze checks from the contracts target in go-checks.mk. The target still verifies settings bindings, playback fixtures, route inventory, and the API v2 contract.
Fixes the tests package consistency check: the want list now expands UNCACHED and IMMUTABLE via Make's wildcard before comparing, so it only contains packages that exist on disk.
Behavioral Change: CI no longer fails on migration-ledger or v1 route-freeze violations.
Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.
Reviewing changes in Silo
Include the related issue, expected behavior, and validation steps in the PR description.
For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
Follow this repository's AGENTS.md and CONTRIBUTING.md.
Request another review with @kody start-review in a PR comment.
React with 👍 or 👎 to give feedback on individual suggestions.
Review settingsReview Options
The following review options are enabled or disabled:
Options
Enabled
Bug
✅
Performance
✅
Security
✅
Business Logic
❌
⚠️ 2 Kody Rule(s) were not evaluated
These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:
Preserve optional store capabilities through production wrappers
Detach mandatory cleanup from request cancellation and bound its lifetime
The contracts target no longer runs verify-migration-ledger or verify-v1-route-freeze. It retains the OpenAPI check, base-ref fetch, and API v2 contract check.
The subprocess guard builds its expected package list from existing paths matched by UNCACHED and IMMUTABLE, instead of using those variables’ literal values.
Silo-Server/silo-server#2522: It changes the same contract target and subprocess package guard in the same makefile.
Suggested reviewers:darthshadow
Merge Risk: Minimal · up to 0319b
The v1 checks are intentionally paused until retirement; no current merge-blocking failure is established.
Architecture risk: Low · up to 0319b
The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.
Changed systems: None identified.
Architecture concerns
No architecture-level concerns identified.
Review details
Before / after behavior
observed — Modified behavior in .github/actions/ci-tools/go-checks.mk: The contracts target removes verify-migration-ledger from the combined verification command and removes the verify-v1-route-freeze invocation. The OpenAPI check and base-ref fetch remain.
observed — Modified behavior in .github/actions/ci-tools/go-checks.mk: The subprocess guard now forms its expected package list from wildcard-expanded UNCACHED and IMMUTABLE paths instead of their literal values.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly and concisely identifies the main change: removing v1 migration gates from the trusted CI tools.
Description check
The description directly explains the CI target changes, the package consistency check, sequencing, validation, and risks.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
silo-triageBot
added
api-v2
API v2 / Huma migration program (epic #135); long-running, stacked by phase
bug
Something isn't working
priority: P2
Limited scope, workaround exists, or polish
labels
Oct 28, 2026
The trusted CI tools run from main against a pull request's Makefile. Retiring
/api/v1 removes the migration ledger, its contract package and the v1 route
freeze target, so main's copy has to stop naming them before that change can
pass CI. The subprocess-test package list now ignores listed packages that no
longer exist.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 1681c9ab-e8e5-4dc1-984f-b64c5dade0d6
Commits
Reviewing files that changed from the base of the PR and between 2d5f22e and 0319b2a.
Files selected for processing: 1
.github/actions/ci-tools/go-checks.mk
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
printf'%s\n''--- remaining contract targets at reviewed revision ---'
git show 0319b2a7f33804f3c708d218810800d6876019a5:Makefile | nl -ba | sed -n '283,380p'printf'%s\n''--- CI ownership documentation ---'
git show 0319b2a7f33804f3c708d218810800d6876019a5:CONTRIBUTING.md | nl -ba | sed -n '250,272p'printf'%s\n''--- CI workflow references ---'
git grep -n -E 'go-checks|contracts|test-go|trusted|branch|merge' 0319b2a7f33804f3c708d218810800d6876019a5 -- .github/workflows .github/actions/ci-tools CONTRIBUTING.md AGENTS.md | sed -n '1,220p'
Repository: Silo-Server/silo-server
Length of output: 28647
Script executed:
git show 0319b2a7f33804f3c708d218810800d6876019a5:Makefile | nl -ba | sed -n '283,380p'; git show 0319b2a7f33804f3c708d218810800d6876019a5:CONTRIBUTING.md | nl -ba | sed -n '250,272p'; git grep -n -E 'go-checks|contracts|test-go|trusted|branch|merge' 0319b2a7f33804f3c708d218810800d6876019a5 -- .github/workflows .github/actions/ci-tools CONTRIBUTING.md AGENTS.md | sed -n '1,220p'
Repository: Silo-Server/silo-server
Length of output: 28525
Preserve the temporary v1 contract guard.
The trusted CI lane no longer runs verify-v1-route-freeze or verify-migration-ledger. test-go covers the Go ledger assertions, but it does not replace ledger extraction, section assignment, or the v1 route comparison with the merge base. Keep an equivalent guard until the retirement merge, unless enforced merge sequencing prevents unrelated pull requests during this interval.
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
api-v2API v2 / Huma migration program (epic #135); long-running, stacked by phasebugSomething isn't workingpriority: P2Limited scope, workaround exists, or polishsize/S0–49 added + deleted lines (all files); change volume, not priority.
1 participant
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.
Problem
Related issue: #886
Validation tasks: none
The trusted CI tools run from
mainagainst a pull request's Makefile. The pull request that retires/api/v1deletes the migration ledger, itsinternal/contractledgerpackage and theverify-v1-route-freezetarget.main's copy ofgo-checks.mkstill calls those targets and requiresinternal/contractledgerin its list of packages whose tests startgo, so that pull request cannot pass CI untilmainstops naming them.Approach
verify-migration-ledgerandverify-v1-route-freezecalls from the contracts lane.$(wildcard …)), so a deleted package no longer fails the check.On
mainthe ledger targets and package still exist.make test-gokeeps running the ledger package's tests, so the ledger stays checked until the retirement merges. This needs to merge before the/api/v1retirement pull request.Validation
mainand on the retirement branch.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3199/
Risks
Between this merge and the retirement merge, CI no longer runs the v1 route freeze or the ledger's section-assignment check. The retirement removes both.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Remove v1 migration gates from the
contractsCI targetverify-migration-ledgerandverify-v1-route-freezechecks from thecontractstarget in go-checks.mk. The target still verifies settings bindings, playback fixtures, route inventory, and the API v2 contract.testspackage consistency check: thewantlist now expandsUNCACHEDandIMMUTABLEvia Make'swildcardbefore comparing, so it only contains packages that exist on disk.Macroscope summarized 0319b2a.