Repository navigation
Website tests: the two facts that moved to ShowKit are checked against its pinned version - #1302
Merged
Merged
Conversation
…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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The problem
The
WebsiteCI job fails onmain, so it blocks every PR that toucheswebsite/,docs/release-notes/orci.yml(for example #1300, run 47051172625). Two website tests read Swift files that are no longer in this repo:autoGainDoc.test.tsPackages/ShowRecorderKit/Sources/AutoGain/AutoGainRule.swiftSources/AutoGain/AutoGainRule.swift(#1294)channelArmingCopy.test.tsPackages/ShowRecorderKit/Sources/Recording/ChannelArmMenuItem.swiftSources/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.tsholds the two facts the tests need (the auto-gain target-18dBFS, and the menu names "Don't arm channel" / "Arm channel"), copied from ShowKit 0.2.0.showKit()reads the ShowKit version fromPackages/ShowRecorderKit/Package.swiftand 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 toPackages/ShowRecorderKit/Package.swiftnow 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/checkoutseither, 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
main:2 failed | 1086 passed | 2 skipped, bothENOENTon the two paths above (locally on Linux, and in run 47051172625).yarn lint,yarn test:run(1088 passed | 2 skipped),yarn build,scripts/spelling-check.sh.0.1.0, both tests fail withShowRecorder pins ShowKit 0.2.0, but website/tests/showKit.ts was confirmed at 0.1.0: see that file.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 changesci.yml, so every job runs.Not done here
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 buildrewriteswebsite/lib/pageDates.tson a clean checkout ofmain(/changelogand the/guides/recordpages get newer dates). Left alone here.🤖 Generated with Claude Code
https://claude.ai/code/session_01VCgWWseQZtUzcSRzjqqQJQ