cpp tests not run on ci

Open
#269 0 comments 0 reactions 0 assignees View on GitHub

@epicfarmer is already working on this.

Since Jun 23, 2025.

  • #270 by @epicfarmer — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp
Domain
ci-cd, testing

Research direction

Start by running the reported CMake configure and build commands with MINORMINER_BUILD_TESTS=ON, then inspect the CI configuration and CMake test setup to find why only Python tests run. Done means the C++ tests are included in CI and the test build succeeds without the reported GoogleTest or missing-header failures.

Written by the indexing model from the issue text.

Description

Description
Only the python tests are run on CI. As a result, the tests are broken.

To Reproduce

  • checkout repo
  • run cmake -S. -Bbuild -DMINORMINER_BUILD_TESTS=ON
  • run cmake --build build

Expected behavior

> cmake --build build
[ 12%] Building CXX object googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
In file included from .../minorminer/build/googletest-src/googletest/src/gtest-all.cc:42:
.../minorminer/build/googletest-src/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
.../minorminer/build/googletest-src/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
 1301 |   StackLowerThanAddress(&dummy, &result);
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
.../minorminer/build/googletest-src/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here
 1290 | static void StackLowerThanAddress(const void* ptr, bool* result) {
      |             ^~~~~~~~~~~~~~~~~~~~~
.../minorminer/build/googletest-src/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here
 1299 |   int dummy;
      |       ^~~~~
cc1plus: all warnings being treated as errors
gmake[2]: *** [googletest-build/googletest/CMakeFiles/gtest.dir/build.make:79: googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:236: googletest-build/googletest/CMakeFiles/gtest.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Environment:

  • OS: [Ubuntu 24.10 ]

Additional context
I tried disabing werror in google-test, and tests still failed due to a missing <memory> include.

Dominant language
Python
Stars
53
Forks
48
Avg merge
1d 10h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dwavesystems/minorminer

All issues in dwavesystems/minorminer

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.