Skip to content

Website tests: the two facts that moved to ShowKit are checked against its pinned version - #1302

Merged
Skeyelab merged 1 commit into
mainfrom
fix/website-tests-showkit-sources
Dec 3, 2026
Merged

Skeyelab merged 1 commit into
mainfrom
fix/website-tests-showkit-sources

Conversation

@Skeyelab

@Skeyelab Skeyelab commented Dec 3, 2026

Copy link
Copy Markdown
Member

The problem

The Website CI job fails on main, so it blocks every PR that touches website/, docs/release-notes/ or ci.yml (for example #1300, run 47051172625). Two website tests read Swift files that are no longer in this repo:

Test File it read Where it went
autoGainDoc.test.ts Packages/ShowRecorderKit/Sources/AutoGain/AutoGainRule.swift ShowKit Sources/AutoGain/AutoGainRule.swift (#1294)
channelArmingCopy.test.ts Packages/ShowRecorderKit/Sources/Recording/ChannelArmMenuItem.swift ShowKit Sources/Meters/ChannelArmMenuItem.swift (#1296)

Neither PR changed a file under website/, so the Website job was skipped on both and nobody saw it.

The fix

website/tests/showKit.ts holds the two facts the tests need (the auto-gain target -18 dBFS, and the menu names "Don't arm channel" / "Arm channel"), copied from ShowKit 0.2.0. showKit() reads the ShowKit version from Packages/ShowRecorderKit/Package.swift and fails when it is not the version the copy was confirmed at, with a message that points at the file. The two tests still check the pages against those values. No other website test reads a path that is missing.

One line in ci.yml: a change to Packages/ShowRecorderKit/Package.swift now runs the Website job, so a new ShowKit pin fails in its own PR until the copy is confirmed, not in the next unrelated website PR.

Why a copy, not ShowKit's source

Reading the real source at the pinned tag would need it on disk wherever the tests run. The Website job has no SwiftPM checkout, so it would need a clone step; and locally a fresh worktree has no .build/checkouts either, so the website tests would fail (or have to be skipped) until a Swift build had run, which this Linux box can't do. A copy with a version guard works everywhere, offline, with one small file. Its cost: each ShowKit bump needs a look at two source files and a one-line edit. Both values are the same in ShowKit 0.3.1, the newest tag.

Checked

  • Red on main: 2 failed | 1086 passed | 2 skipped, both ENOENT on the two paths above (locally on Linux, and in run 47051172625).
  • Green on this branch, on Linux: yarn lint, yarn test:run (1088 passed | 2 skipped), yarn build, scripts/spelling-check.sh.
  • With the confirmed version set to 0.1.0, both tests fail with ShowRecorder pins ShowKit 0.2.0, but website/tests/showKit.ts was confirmed at 0.1.0: see that file.
  • Not run locally: the rest of VERIFY_QUICK=1 ./scripts/verify.sh (package tests don't build on Linux), the Docker image and the nginx redirect test. CI runs them; this PR changes ci.yml, so every job runs.

Not done here

  • The Website job still doesn't run when a Swift file that a website test reads is moved or renamed inside this repo (Packages/ShowRecorderKit/Sources/Recording/, Sources/WatchRemote/, Watch/). Adding those paths to the same filter would catch it, at the price of a Website run on most Kit PRs.
  • yarn build rewrites website/lib/pageDates.ts on a clean checkout of main (/changelog and the /guides/record pages get newer dates). Left alone here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ

…t its pinned version

The Website job failed on every PR that ran it: autoGainDoc and channelArmingCopy read AutoGainRule.swift and
ChannelArmMenuItem.swift, which left for ShowKit in #1294 and #1296. Their values are now copied in
website/tests/showKit.ts, which fails when Package.swift pins a ShowKit version other than the one they were
confirmed at. A change to that Package.swift now runs the Website job, so a new pin shows there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant