Skip to content

test(contracts): update request ID in ignore-unmatched 404 fixture - #2511

Merged
Quick104 merged 2 commits into
mainfrom
fix/ci-failures
Oct 15, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/ci-failures

Conversation

@Quick104

@Quick104 Quick104 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

The v2 contract fixture test fails on main for the "ignore unmatched item not found" case. The fixture's expected instance request ID is out of date. The contract run gives requests sequential IDs, so when fixtures run before this one add requests, this fixture's ID changes. This most likely happened when #2438 and #2440 merged close together. This change updates the expected ID so CI passes again.

Approach

Change the fixture's instance from urn:silo:request:0000000000000000000002fe to urn:silo:request:000000000000000000000302, which is the ID the test run now produces. The problem body is otherwise unchanged. This affects test data only: no runtime code and no API contract change.

Validation

  • v2 contract fixture tests:

Evidence

Evidence: none, no user-visible change

Risks

None identified. Because the fixture's ID depends on how many requests run before it, it will need updating again whenever earlier fixtures add or remove requests.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Agent SDK
  • Tool(s): Claude Agent SDK
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted
  • Adversarial review: n/a

Note

Update 404 fixture request ID and rebuild PGS large-object-budget test input

  • Changes the expected problem-instance URI in ignore_unmatched_item_not_found.json from the value ending in 0002fe to the value ending in 0302
  • Reworks the PGSStreamParser large object-budget test in pgs.test.ts to build its input with Uint8Array chunks instead of spreading tens of megabytes into number arrays
  • Test expectations (four-screen scenario, composition start times) are unchanged
  • Behavioral Change: fixture consumers now see the updated problem-instance URI ending in 0302

Macroscope summarized b926eb2.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-10-15T14:04:59.940890Z b926eb2 New commits
🔒 Security Review ✅ Completed 2026-10-15T14:06:15.666134Z b926eb2 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 triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: deef66b1-f3e4-4ca6-a47b-d99469fbbef1
📥 Commits

Reviewing files that changed from the base of the PR and between abfaef1 and b926eb2.

📒 Files selected for processing: 1
  • web/src/player/utils/pgs.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

📝 Walkthrough

The not-found fixture now uses a request identifier ending in 302. The large PGS test now assembles its input from Uint8Array chunks before parsing the stream.

Changes: Not-found fixture update

Layer / File(s) Summary
Update fixture identifier
contracts/api/v2/fixtures/ignore_unmatched_item_not_found.json
The fixture’s instance URI now uses a request identifier ending in 302 instead of 2fe.

PGS test stream assembly

Layer / File(s) Summary
Build large PGS input from byte buffers
web/src/player/utils/pgs.test.ts
The large PGS test stores segments and object data in Uint8Array chunks, combines them into a stream, and parses it.

Priority: ⬇️ Low

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

Change: Other

Merge Risk: ⚪ Minimal · up to b926e

No merge-blocking issue is established. Run the pending v2 contract fixture test and the PGS test before merging.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly identifies the fixture update and matches a primary change in the pull request. It does not mention the PGS test change, but the title need not cover every change.
Description check Passed The description is related to the changeset. It explains the fixture ID update and includes the PGS test input refactor in the generated summary.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

- Build each object fragment as a zero-filled Uint8Array instead of spreading 36 MB through number arrays, which was slow enough to time out on busy CI runners
- Patch the segment header length to cover the zero-filled payload
@silo-kody

silo-kody Bot commented Oct 15, 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 ❌
⚠️ 1 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

@Quick104
Quick104 merged commit 2137fe1 into main Oct 15, 2026
18 of 19 checks passed
@Quick104
Quick104 deleted the fix/ci-failures branch October 15, 2026 14:09
rangoDJ added a commit to rangoDJ/silo-server that referenced this pull request Oct 16, 2026
Main's Silo-Server#2511 regenerated contracts/api/v2/fixtures/ignore_unmatched_item_not_found.json,
which was stale on main and failed TestContractFixtures here. Main's
Silo-Server#2522 also lints new code more widely; its nestif check flagged
episodeSeries, so the scope check moves into markInScope, unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant