Skip to content

[Backport release-2.24] Add temporary mitigations for CI failures in windows-2022. (#5057) #5073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

KiterLuc
Copy link
Contributor

Backport 3bb0699 from #5057.


TYPE: NO_HISTORY
DESC: Add temporary mitigations for CI failures in windows-2022.

[SC-48975](https://app.shortcut.com/tiledb-inc/story/48975)

Visual Studio 2022 17.10 has been recently released and one of its
changes to MSVC is that the constructor of `std::mutex` became
`constexpr`. According to MSVC's binary compatibility guarantees, a
program must use a Visual C++ redistributable version at least as new as
the toolset that compiled the program. However, due to [a
defect](actions/runner-images#10004) on the
GitHub Actions `windows-2022` image, an old redistributable version was
picked, causing weird failures in CI.

This PR fixes these failures, by defining the
`_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR` symbol, which reverts the change
to `std::mutex`. Due to unexplained errors, I could not do that for the
standalone unit test workflow, and instead I changed that to use the
`windows-2019` image which does not exhibit this problem.

This PR should be reverted once the issue on GHA gets fixed.

---
TYPE: NO_HISTORY
@KiterLuc KiterLuc requested a review from teo-tsirpanis June 11, 2024 13:09
@KiterLuc KiterLuc merged commit f761f94 into release-2.24 Jun 11, 2024
61 checks passed
@KiterLuc KiterLuc deleted the backport-5057-to-release-2.24 branch June 11, 2024 17:04
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.

2 participants