Repository navigation
ci(lint): pin the SwiftLint job to ubuntu-24.04 while SwiftLint links libxml2.so.2 - #1117
Conversation
… libxml2.so.2 The ubuntu-26.04 runner image (ubuntu-latest) dropped libxml2.so.2 in its 2026-11-01 build, and every released SwiftLint Linux binary (0.57 through 0.65.1) dynamically links it, so `Lint / SwiftLint (changed files)` dies before linting a single file on every PR. Neither an apt install (26.04 ships only libxml2.so.16) nor a SwiftLint bump (realm/SwiftLint#6967, binaries built against .so.16, is still unreleased) can fix it today; upstream's own workaround is ubuntu-24.04, which still ships libxml2.so.2. Scoped to the swift-lint job only; the exit condition (bump the pin and go back to ubuntu-latest once #6967 ships) is recorded next to the pin. Closes #1116 Co-Authored-By: Claude Fable 5.1 <[email protected]>
… (probe, reverted next) The swift-lint job only runs swiftlint when the PR changes a Swift file; the pin alone would be "proven" by a skipped step. This commit touches one test file so the job lints it on the 24.04 image. Reverted immediately after the run; the run URL is the evidence on #1116. part of #1116 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
PM merge record, head Why it was urgent: the Options were weighed with evidence, and the evidence overrode my own steer. I had suggested preferring the library install; the session tested it and found 26.04 ships only The exit condition is written next to the pin, not just in the PR: when the upstream fix ships, bump Proof is the green check on this PR, since the failure lives in the runner image and a local lint pass proves nothing. Only the |
The probe run proved swiftlint 0.57.1 executes on the ubuntu-24.04 image with a real Swift file in the change set: https://github.com/wei18/Sudoku/actions/runs/42824234021/job/129857196153 part of #1116 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Merging at head The merge record above still applies. |
Closes #1116
What
Pins the
swift-lintjob (and only that job) toubuntu-24.04. Theubuntu-latest(26.04) image build of 2026-11-01 removedlibxml2.so.2; every released SwiftLint Linux binary links it (realm/SwiftLint#6966), so the job failed before linting on PR #1115 and will on every PR until upstream ships realm/SwiftLint#6967.Options weighed (details in #1116)
libxml2.so.16, no fix..so.16yet (#6967 open);swiftlint-staticlacks the SourceKit rules..mise.tomland return toubuntu-latestwhen #6967 is released.mise installon macOS would also hit the currently-404ingaqua:tuist/tuist@4(seen locally in a fresh worktree; separate problem).Proof
A YAML-only PR makes the job skip the lint step ("No Swift files changed"), which proves nothing, so a temporary one-line Swift touch was pushed and reverted: that run executed swiftlint 0.57.1 on
Image: ubuntu-24.04againstPackages/GameShellKit/Tests/GameShellUITests/RegularBoardContainerTests.swiftand passed — https://github.com/wei18/Sudoku/actions/runs/42824234021/job/129857196153 (the failing 26.04 run for comparison: https://github.com/wei18/Sudoku/actions/runs/42821456808/job/129847739169). The squash of this PR is the YAML change only. A local lint pass proves nothing here (the failure lives in the runner image). No other job changes.🤖 Generated with Claude Code