cpp tests not run on ci
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dwavesystems/minorminer
-
Not compatible with cmake-4.5Possibly taken @andrfud claimed this 30 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dwavesystems/minorminer#298 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
dwavesystems/minorminer#284 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
dwavesystems/minorminer#282 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
dwavesystems/minorminer#279 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dwavesystems/minorminer#271 · 2 comments ·
All issues in dwavesystems/minorminer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
auto-reported bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
needs-triage type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
pollen-robotics/reachy_mini_conversation_app#631 ·
Maintainers usually reply within 7 days
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100