Skip to content

Commit

Permalink
Merge pull request #17473 from protocolbuffers/cp-revert-hack
Browse files Browse the repository at this point in the history
Cherry-pick "Revert workaround for std::mutex issues on github windows runners" and "Downgrade CMake to 3.29 to workaround Abseil issue."
  • Loading branch information
zhangskz authored Jul 16, 2024
2 parents 861be78 + 8a579c1 commit c9839cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,12 @@ jobs:
arch: ${{ matrix.windows-arch || 'x64' }}
vsversion: ${{ matrix.vsversion }}

# Workaround for Abseil incompatibility with CMake 3.30 (b/352354235).
- name: Downgrade CMake
if: ${{ runner.os == 'Windows' }}
run: choco install cmake --version 3.29.6 --force
shell: bash

# Workaround for incompatibility between gcloud and windows-2019 runners.
- name: Install Python
if: ${{ matrix.python-version }}
Expand Down
4 changes: 0 additions & 4 deletions protos/protos_extension_lock_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ void TestConcurrentExtensionAccess(::protos::ExtensionRegistry registry) {
test_theme();
test_theme_extension();
}
#ifndef _MSC_VER
// TODO Re-enable this once github runner issue is resolved.

TEST(CppGeneratedCode, ConcurrentAccessDoesNotRaceBothLazy) {
::upb::Arena arena;
Expand All @@ -122,7 +120,5 @@ TEST(CppGeneratedCode, ConcurrentAccessDoesNotRaceBothEager) {
{{&theme, &ThemeExtension::theme_extension}, arena});
}

#endif // _MSC_VER

} // namespace
} // namespace protos_generator::test::protos
3 changes: 0 additions & 3 deletions src/google/protobuf/compiler/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ namespace protobuf {
namespace compiler {

int ProtobufMain(int argc, char* argv[]) {
#ifndef _MSC_VER
// TODO Re-enable this once github runner issue is resolved.
absl::InitializeLog();
#endif // !_MSC_VER

CommandLineInterface cli;
cli.AllowPlugins("protoc-");
Expand Down
3 changes: 0 additions & 3 deletions src/google/protobuf/compiler/main_no_generators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ namespace compiler {
// This is a version of protoc that has no built-in code generators.
// See go/protobuf-toolchain-protoc
int ProtocMain(int argc, char* argv[]) {
#ifndef _MSC_VER
// TODO Re-enable this once github runner issue is resolved.
absl::InitializeLog();
#endif // !_MSC_VER

CommandLineInterface cli;
cli.AllowPlugins("protoc-");
Expand Down

0 comments on commit c9839cb

Please sign in to comment.