NWChemEx / NWChemEx/TensorWrapper
CTest Failed for Clang
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 0
- Forks
- 0
- Avg merge
- 5h 33m
- Merged PRs (30d)
- 6
Description
There are two tests in sparse_shape.cpp file which fail for Clang Build (but works fine for GCC build)
- At line 33
- At line 191
This needs to be fixed.
ERROR MESSAGE*********
test 1
Start 1: test_tensorwrapper
1: Test command: /home/runner/work/TensorWrapper/TensorWrapper/build/test_tensorwrapper
1: Working Directory: /home/runner/work/TensorWrapper/TensorWrapper/build
1: Test timeout computed to be: 1500
1:
1: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: test_tensorwrapper is a Catch v2.13.10 host application.
1: Run with -? for options
1:
1: -------------------------------------------------------------------------------
1: SparseShapefield::Scalar
1: -------------------------------------------------------------------------------
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:33
1: ...............................................................................
1:
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:33: FAILED:
1: due to unexpected exception with message:
1: SparseMap not consistent with idx2mode
1:
1: -------------------------------------------------------------------------------
1: SparseShapefield::Tensor
1: -------------------------------------------------------------------------------
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:191
1: ...............................................................................
1:
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:191: FAILED:
1: due to unexpected exception with message:
1: SparseMap not consistent with idx2mode
1:
1: ===============================================================================
1: test cases: 120 | 118 passed | 2 failed
1: assertions: 4332 | 4330 passed | 2 failed
1:
1/1 Test #1: test_tensorwrapper ...............***Failed 1.53 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 1.58 sec
Errors while running CTest
Output from these tests are in: /home/runner/work/TensorWrapper/TensorWrapper/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
The following tests FAILED:
1 - test_tensorwrapper (Failed)
Error: Process completed with exit code 8.
Contributor 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.
Research direction
Start with tests/tensor/shapes/sparse_shape.cpp at lines 33 and 191, then rerun the failed test with ctest --rerun-failed --output-on-failure under the Clang build and compare it with GCC. Trace the SparseMap not consistent with idx2mode failures and confirm that both SparseShape cases pass without exceptions and the full test suite succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100