Repository navigation
Pin gha-setup-swift to v0.5.0 in the Windows workflow - #32
Merged
Merged
Conversation
@main currently resolves to the v0.5.0 release. Pin the tag so the Windows job only picks up new versions of the action when we bump it.
Kyle-Ye
force-pushed
the
bugfix/windows_ci
branch
from
September 28, 2026 19:17
3c43b70 to
930b1c6
Compare
Kyle-Ye
marked this pull request as ready for review
September 28, 2026 19:18
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #32 +/- ##
=======================================
Coverage 96.32% 96.32%
=======================================
Files 108 108
Lines 8100 8100
=======================================
Hits 7802 7802
Misses 298 298 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
Pin
compnerd/gha-setup-swifttov0.5.0in the Windows workflow instead of tracking@main.@maincurrently points at the same commit asv0.5.0(bbae8ce), so this doesn't change behavior. It only stops the job from picking up new action versions implicitly.Investigation
The Windows job failed twice on 2026-09-28, both between 15:40 and 16:30 UTC:
main(run 36451099513): the action's ownswift --versioncheck exited with code 1 without printing anything, not even the action's own error messages.swift test, reportedswiftas not recognized. Both steps had identical environment variables.Neither the action version nor anything in this repository appears to be the cause:
Path. The runner appliesGITHUB_PATHthe same way to every step, so that change can't makeswiftdisappear between two steps with identical environments.The failures look like a transient problem on the runners at that time. There's no sign that pinning v0.4.1 would avoid them, and v0.4.1 adds every
Pathentry twice.Diagnostics
A temporary commit (3c43b70, dropped from this PR) ran six identical Windows jobs four times, 24 jobs in total. Each job recorded the Swift setup state after installing Swift and again after
swift test. All 24 passed. A typical report:windows-2025-vs202620260922.246.2, the same as in both failures.Pathhas 73 entries, including the Swift toolchain and runtime directories, which are also in the userPathin the registry.SDKROOTis set.swiftresolves to…\Toolchains\6.3.3+Asserts\usr\bin\swift.exe, andswift --versionworks.If the failure comes back, cherry-pick 3c43b70 to capture the same data on a failing runner.