Skip to content

ci: stop calling the v1 migration gates from the trusted tools - #3199

Merged
Quick104 merged 1 commit into
mainfrom
t3/ci-tolerate-v1-retirement
Nov 11, 2026
Merged

Quick104 merged 1 commit into
mainfrom
t3/ci-tolerate-v1-retirement

Conversation

@Quick104

@Quick104 Quick104 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #886
Validation tasks: none

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.

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

  • 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.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

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.

Macroscope summarized 0319b2a.

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 28, 2026
@silo-kody

silo-kody Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

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 settings
Review 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

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The Go checks makefile changes which contract verifications run and how the subprocess guard builds its expected package list.

Changes: Go CI checks

Layer / File(s) Summary
Contract verification commands
.github/actions/ci-tools/go-checks.mk
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.
Subprocess package matching
.github/actions/ci-tools/go-checks.mk
The subprocess guard builds its expected package list from existing paths matched by UNCACHED and IMMUTABLE, instead of using those variables’ literal values.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Possibly related PRs

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: Passed 5

Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: removing v1 migration gates from the trusted CI tools.
Description check Passed The description directly explains the CI target changes, the package consistency check, sequencing, validation, and risks.
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T02:59:05.930243Z 0319b2a New commits
🔒 Security Review ✅ Completed 2026-11-05T03:01:35.800143Z 0319b2a New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • 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-triage silo-triage Bot 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]>
@Quick104
Quick104 force-pushed the t3/ci-tolerate-v1-retirement branch from e9c9595 to 0319b2a Compare November 5, 2026 02:57

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

contracts:
$(MAKE) -j1 -f Makefile verify-settings-bindings verify-playback-fixtures verify-route-inventory
$(MAKE) -j1 -f Makefile verify-migration-ledger verify-apiv2-openapi CONTRACT_GO_TESTS=0
$(MAKE) -j1 -f Makefile verify-apiv2-openapi CONTRACT_GO_TESTS=0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Data Integrity & Integration · Quick win

Supported by static analysis

Script executed:

set -u
printf '%s\n' '--- changed files and diff ---'
git diff --stat 2d5f22e7d704799e3bd456e1517d6e5cee3cfbc5 0319b2a7f33804f3c708d218810800d6876019a5 -- .github/actions/ci-tools/go-checks.mk Makefile .github .github/workflows docs AGENTS.md CLAUDE.md 2>/dev/null || true
git diff --unified=80 2d5f22e7d704799e3bd456e1517d6e5cee3cfbc5 0319b2a7f33804f3c708d218810800d6876019a5 -- .github/actions/ci-tools/go-checks.mk Makefile 2>/dev/null || true

printf '%s\n' '--- target definitions and references ---'
rg -n -F --glob '*.mk' --glob 'Makefile*' -e 'verify-v1-route-freeze' -e 'verify-migration-ledger' -e '^contracts:' -e '^test-go:' . 2>/dev/null || test "$?" -eq 1

printf '%s\n' '--- merge sequencing and branch protection references ---'
rg -n -i --glob '!vendor/**' --glob '!node_modules/**' -e 'branch protection' -e 'protected branch' -e 'merge queue' -e 'merge sequencing' -e 'retirement' -e 'v1.*freeze' -e 'migration.*ledger' .github docs . 2>/dev/null || test "$?" -eq 1

printf '%s\n' '--- workflow and repository configuration files ---'
find .github -maxdepth 3 -type f -print 2>/dev/null | sort
find . -maxdepth 2 \( -iname '*policy*' -o -iname '*merge*' -o -iname '*branch*' \) -type f -print 2>/dev/null | sort

Repository: Silo-Server/silo-server

Length of output: 45654


Script executed:

printf '%s\n' '--- reviewed revision files ---'
git ls-tree -r --name-only 0319b2a7f33804f3c708d218810800d6876019a5 -- .github Makefile docs | sed -n '1,240p'
printf '%s\n' '--- exact relevant files at reviewed revision ---'
for f in .github/actions/ci-tools/go-checks.mk Makefile; do
  if git cat-file -e 0319b2a7f33804f3c708d218810800d6876019a5:$f 2>/dev/null; then
    printf '\n--- %s ---\n' "$f"
    git show 0319b2a7f33804f3c708d218810800d6876019a5:"$f" | nl -ba | sed -n '1,260p'
  fi
done
printf '%s\n' '--- merge-control/configuration candidates ---'
git ls-tree -r --name-only 0319b2a7f33804f3c708d218810800d6876019a5 | grep -E '(^|/)(CODEOWNERS|dependabot|renovate|branch|merge|policy|contributing|release|workflow|workflows)([^/]*)$|\\.ya?ml$' | sed -n '1,300p'

Repository: Silo-Server/silo-server

Length of output: 32389


Script executed:

git diff --unified=20 2d5f22e7d704799e3bd456e1517d6e5cee3cfbc5 0319b2a7f33804f3c708d218810800d6876019a5 -- .github/actions/ci-tools/go-checks.mk
printf '%s\n' '--- reviewed target context ---'
git show 0319b2a7f33804f3c708d218810800d6876019a5:"Makefile" 2>/dev/null | nl -ba | grep -C 25 -E 'verify-v1-route-freeze|verify-migration-ledger|^contracts:|^test-go:' || true
printf '%s\n' '--- repository policy files and references ---'
git ls-tree -r --name-only 0319b2a7f33804f3c708d218810800d6876019a5 | grep -E '(^|/)(CODEOWNERS|CONTRIBUTING|RELEASE|POLICY|SECURITY|WORKFLOW|MERGE|BRANCH|AGENTS|CLAUDE)|\\.ya?ml$' | head -300
for f in $(git ls-tree -r --name-only 0319b2a7f33804f3c708d218810800d6876019a5 | grep -E '(^|/)(CODEOWNERS|CONTRIBUTING|RELEASE|POLICY|SECURITY|WORKFLOW|MERGE|BRANCH|AGENTS|CLAUDE)|\\.ya?ml$' | head -100); do
  case "$f" in
    .github/workflows/*|.github/CODEOWNERS|CODEOWNERS|CONTRIBUTING*|RELEASE*|POLICY*|AGENTS.md|CLAUDE.md)
      printf '\n--- %s ---\n' "$f"
      git show 0319b2a7f33804f3c708d218810800d6876019a5:"$f" 2>/dev/null | grep -in -E 'merge|queue|branch|protect|retire|v1|ledger|route|contract|required' | head -160 || true
      ;;
  esac
done

Repository: Silo-Server/silo-server

Length of output: 17755


Script executed:

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.

@Quick104
Quick104 merged commit a9c7580 into main Nov 11, 2026
28 checks passed
@Quick104
Quick104 deleted the t3/ci-tolerate-v1-retirement branch November 11, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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 size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant