Skip to content

ci: fix Windows zlib lookup and runner compatibility (#124) - #125

Merged
odrobnik merged 4 commits into
mainfrom
agent/issue-124
Dec 2, 2026
Merged

odrobnik merged 4 commits into
mainfrom
agent/issue-124

Conversation

@odrobnik

@odrobnik odrobnik commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #124.

Windows CI now recognizes vcpkg’s libzs.lib filename while preserving all existing library names and the copy to z.lib.

Pin the Windows job to windows-2022: the Visual Studio 2026 STL on windows-latest requires Clang 22 or newer, while Swift 6.4.2 ships Clang 21. The workflow documents returning to windows-latest once Swift provides a compatible Clang version. Compiler/STL compatibility checks remain enabled.

Validation: workflow regression checks, strict lint, the required macOS build with tests, and the full serial test suite passed. Windows execution remains pending CI: the latest run failed linking a SwiftPM documentation plugin with lld-link: error: not supported; the earlier run on the pinned runner linked that plugin and reached package compilation before cancellation. The plugin failure is not established as fixed.

Recent vcpkg static zlib installs use libzs.lib, so the Windows job must recognize that name before it can build. Retain every existing candidate and the z.lib linker alias.

Verified the extracted lookup logic rejects libzs.lib on the baseline and accepts it after the fix, while retaining all older names. Required macOS swiftbuild build, full serial tests, strict SwiftLint, and diff checks pass. Windows execution remains for PR CI; test count unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 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-12-01T22:53:35.270442Z 8904317 PR opened
ℹ️ 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.

@odrobnik

odrobnik commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

The failed Windows job confirms that the lookup now selects libzs.lib. Compilation fails later in BoringSSL with STL1000: Unexpected compiler version, expected Clang 22 or newer. The runner's MSVC headers require Clang 22, while Swift 6.4.2 supplies Clang 21; those toolchain settings and dependencies are unchanged by this PR.

The required local macOS build, full serial tests, strict lint, and diff checks passed again. No code change or push is needed for this unrelated runner failure. Requesting one unchanged retry to check runner variation; the same runner image may reproduce the incompatibility. Windows acceptance remains pending.

@odrobnik

odrobnik commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

The retry request was rejected by GitHub with HTTP 403: “The workflow run containing this job is already running.” No new retry started. The runner toolchain incompatibility remains unresolved, Windows acceptance is still pending, and this PR has no additional code changes or pushes.

The Visual Studio 2026 STL on windows-latest rejects Swift 6.4.2 clang 21 while compiling BoringSSL. Use the VS 2022 runner until Swift ships clang 22 or newer, preserving the compiler compatibility check and the libzs.lib lookup fix.

Verified YAML regression assertions, strict SwiftLint, the required macOS swiftbuild build with tests, and the full serial test suite. Windows verification remains for PR CI; test count unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@odrobnik odrobnik changed the title ci: find vcpkg libzs.lib on Windows (#124) ci: fix Windows zlib lookup and runner compatibility (#124) Dec 1, 2026
@odrobnik

odrobnik commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Pushed 6e7bcbf to this PR: Windows CI now uses windows-2022, with a comment explaining the VS 2026 STL / Clang 21 incompatibility and the condition for returning to windows-latest (Swift ships Clang >= 22). The libzs.lib lookup fix and alias behavior remain intact, and no compiler/STL compatibility override was added.

The required macOS build, full serial tests, strict lint, and YAML regression checks passed. Updated the PR title and description to cover both fixes. Windows execution remains pending CI on the new commit.

Co-authored-by: Codex <noreply@openai.com>
@odrobnik

odrobnik commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Agent summary

The change is ready for review.

Keep the compiler compatibility guard enabled on the pinned VS 2022 runner. The additional override is unnecessary for that configuration and does not reach the SwiftPM plugin link command that failed in the latest run.

The earlier run with the runner pin linked the same plugin and reached BoringSSL compilation before cancellation. Preserve the runner and zlib fixes while removing only the override flags and their comment.

Workflow regression checks, strict SwiftLint, required macOS swiftbuild build with tests, and the full serial suite pass. Windows verification remains pending CI; test count unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@odrobnik

odrobnik commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Pushed cad3d79, removing the later-added compiler/STL mismatch overrides to honor the requested configuration. The workflow retains windows-2022, the Clang compatibility explanation, all six zlib names, and the guarded copy to z.lib. The PR description now reflects that configuration and the remaining Windows verification limit.

The latest Windows failure is a bare lld-link: error: not supported while linking GenerateDoccReference; its command does not use the removed flags. The earlier run on the pinned runner linked that same plugin successfully and reached BoringSSL compilation before cancellation, so a transient runner failure is plausible but unconfirmed. This cleanup does not establish a fix for that linker error; the new commit triggers fresh CI.

Workflow regression checks, strict lint, the required macOS build with tests, and the full serial test suite passed. No Windows execution was available locally.

@odrobnik odrobnik left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the .github/workflows/swift.yml changes on cad3d79.

  • zlib lookup: libzs.lib has been added to the candidate list. All the existing names are still there and keep their priority (zs.lib first). The guarded Copy-Item to z.lib and the error message that lists every candidate still work, so issue #124's first acceptance criterion is met.
  • Runner pin: windows-2022 comes with a comment explaining the VS 2026 STL / Clang 21 mismatch and saying when to switch back. The comments that used to mention windows-latest (vcpkg, Git Bash) were updated to match. No other workflow refers to windows-latest. The compiler/STL override flags were removed, as stated in the thread.
  • CI on this head is green, including build-windows, so issue #124's second acceptance criterion ("build-windows passes on the PR") is now met. The lld-link plugin failure mentioned in the description did not happen again on this run.

No findings.

👍 No findings.

Reviewed by Claude · opus

@odrobnik
odrobnik merged commit caa5d13 into main Dec 2, 2026
5 checks passed
@odrobnik
odrobnik deleted the agent/issue-124 branch December 2, 2026 00:06
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.

ci: Windows build can't find zlib (vcpkg now ships libzs.lib)

1 participant