Skip to content

test: prune the suite and shorten the slowest checks - #4465

Merged
Quick104 merged 4 commits into
mainfrom
test/prune-half-test-suite
Nov 18, 2026
Merged

Quick104 merged 4 commits into
mainfrom
test/prune-half-test-suite

Conversation

@Quick104

@Quick104 Quick104 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Pull requests run thousands of routine feature checks, and several of the slowest tests spend most of their time generating oversized fixtures or waiting on independent operations. This change reduces the suite from 18,706 to 9,131 test declarations (9,575 fewer, or 51.2%) and documents which feature checks contributors should run when a PR can affect them.

Related issue: N/A

Validation tasks: none

Other clients: N/A (no client-visible change)

Approach

CI still runs all 950 PostgreSQL budget and contract checks. The backup import test uses fewer ordinary rows while still crossing the real write, lookup, and collection limits. Metadata refreshes wait through the real queue delay concurrently. Playback tests use shorter media with real FFmpeg, and the route analyzer shares fixture type checking. The CI recipe also runs packages that require uncached Go tests only once per PR after this change merges.

Validation

Local suite Before · 70438a242 After · 6627280db Time saved Result at 6627280db
Go suite 3m 41.1s 1m 38.4s 55.5% 13,015 passing test and subtest results, 1,437 skipped
PostgreSQL budgets and contracts 2m 51.9s 1m 30.3s 47.5% 950 of 950 checks passed
Vitest 3m 22.2s 1m 02.8s 68.9% 2,865 cases passed across 286 files

These are wall times from the same Linux host with Go 1.27.4, PostgreSQL 18 with pgvector, Jellyfin FFmpeg 8.1.3, and six Vitest workers. The Go runs used warm compilation caches with test result caching disabled. The jobs ran concurrently on separate CPU sets. One web run on the PR timed out in an access-group test. It passed in 1.18s during the full retry reported above, with the same five-second limit.

The current count includes two tests added on main and one restored on the PR after the timing runs. The restored test runs the patched Jellyfin Web player in Node and checks when a seek must request a new stream.

Within the pruned suite, the backup import check fell from 77.29s to 1.72s, series refresh from 45.35s to 11.79s, and FFmpeg subtitle timing from 38.95s to 12.23s. The full web suite varied across repeats of the fixture changes alone (54.0s to 61.2s and 55.5s to 54.6s).

Go build, vet, lint, generated contracts, migration checks, the query attribution race check, and repository checks passed. Web lint completed with 80 warnings and zero errors. Formatting, the production build, and the bundle budget passed.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-4465/

Risks

Some removed tests covered unique behavior. Contributors now exercise affected cases from the PR verification guide and record their results. That includes Plex and Emby pagination exhaustion and two live FFmpeg timestamp combinations. The smaller heap fixture still detects retained records but is less sensitive to a few extra bytes per item in a million-record import.

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 how the change was checked.

AI Disclosure

  • Harness: T3 Code with OpenAI Codex
  • Tool(s): OpenAI Codex and its subagents
  • Model(s): gpt-6.2-astra, gpt-6.2-sol
  • Involvement: AI-assisted. Agents made the changes and ran the checks. The maintainer chose the reduction target and approved moving some unique cases to PR verification.
  • Adversarial review: Sol reviewers traced removed assertions to surviving tests or PR checks and reviewed the shorter fixtures. Introducing per-row SQL or dropping a write at a chunk boundary still failed the backup tests. Review identified the loss of provider-specific pagination coverage, which the PR guide now calls out.

Note

Prune slow test suites and shorten the slowest checks

  • Deletes a large number of redundant or slow tests across Go and web packages, spanning areas like internal/jellycompat, internal/librarymonitor, internal/intromarkers, internal/taskmanager, internal/userdb, and admin page tests in web/src/pages
  • Speeds up remaining slow tests: the series complete-refresh integration test runs its series, season, and episode cases as parallel subtests, route-inventory fixture analyses reuse one loaded package set, PGS parser tests push large objects fragment by fragment, and relay hung-node tests run in parallel
  • stubRadixDom in adminPage.test-support.ts now only stubs DOM methods when they are absent, preserving existing implementations
  • The tests target in go-checks.mk runs the full test-go target for scheduled events; other events exclude configured UNCACHED packages from the regular run and execute them separately with count=1, via a new GO_TEST_PACKAGES variable in the Makefile
  • Risk: broad reduction in coverage — deleted suites include SQLite conformance runs in conformance_test.go, jellycompat compat-router telemetry tests, and librarymonitor tracker tests; no application runtime behavior changes

Macroscope summarized 60144a4.

@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T01:35:34.325980Z 60144a4 New commits
🔒 Security Review ✅ Completed 2026-11-18T01:37:15.414299Z 60144a4 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.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Warning

Review details and warnings were omitted to fit the comment limit.

@silo-triage silo-triage Bot added go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish labels Nov 18, 2026
@silo-kody

silo-kody Bot commented Nov 18, 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 ❌

@Quick104
Quick104 merged commit a1ef6ef into main Nov 18, 2026
17 checks passed
@Quick104
Quick104 deleted the test/prune-half-test-suite branch November 18, 2026 01:41
im85288 added a commit to im85288/silo-server that referenced this pull request Nov 18, 2026
Upstream's test pruning (Silo-Server#4452, Silo-Server#4465) removed the tests this branch
extended for probe repair and the on-disk check; the probe-repair case
moves to its own test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 19, 2026
Main rewrote StarRating for half stars (#4398); Left and Right now step half
a star there and pass through at either end. TourHost takes main's version,
which already restores focus to the primary button after a save (#4296).
The test files main pruned in #4465 stay deleted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 19, 2026
Resolve the seek conflict with main's takeSeek() helper (#4512), keeping
the draining-stream reconnect after it. Port the PR's lost-connection
tests onto main's pruned VideoPlayer.test.tsx (#4465) and take main's
deletion of mediaTimeline.test.ts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 19, 2026
Resolve conflicts with main's subtitle demux admission (#4318) and its
test pruning (#4465). serveWindowedSUP keeps this branch's rooted
Lookup and main's demux admission and slow-read warm. The refused-dir
kept-copy check moves to its own test, since main removed the table it
was a row of.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 19, 2026
Main pruned the test files this branch extended (#4465) and moved the
Home row pickers' meta line into collectionOptionMeta (#4410, #4471).
The pickers now show "Count unavailable" through that helper. Two test
helpers the pruning removed are restored next to their remaining
callers, and the translations sync from the catalog branch for
Silo-Server/silo-translations#95.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
grtn91 added a commit to grtn91/silo-server that referenced this pull request Nov 22, 2026
Conflicts: go.mod/go.sum (upstream's new replaces plus the SDK fork pin,
which now points at the SDK branch merged with SDK main, since main needs
SDK v0.35.0), the route list and a RequestSeasonsDialog import (both
sides kept), and the generated OpenAPI and web types (regenerated).
Five web test files upstream pruned in Silo-Server#4465 stay deleted, with this
branch's cases in them.

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

go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish size/XXXL 3000+ added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant