Skip to content
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

The following error message is displayed when you run ctest-v in v1.3.3: #11308

Open
lillianokok opened this issue Mar 5, 2025 · 5 comments
Open

Comments

@lillianokok
Copy link

The following error message is displayed when you run ctest-v in v1.3.3:
ctest -V 2>&1
1: [Running] The SparsePageDMatrix.ThreadSafetyException is abnormal.
1: [14:29:18] Message: src/tests/cpp/data/../../src/data/sparse_page_writeer.h:116:SparsePageWriter has completed writing to /tmp/tmpdir.lbaLRb/test.cache.row.page.
1: [14:29:18] Message: src/tests/cpp/data/../../src/data/sparse_page_source.h:411:SparsePageSource has completed writing to /tmp/tmpdir.lbaLRb/test.cache.
1: unknown file: failure
1: C++ exception, indicating "[14:29:18]src/tests/cpp/data/test_ sparse_page_dmatrix.cc:129: Check failed: Exception:
1: Stack tracing:
1: [bt] (0) src/build/testxgboost() [0x430cb4]
1: [bt] (1) src/build/testxgboost() [0x4f9010]
1: [bt] (2) googletest-1.10.0-k7rnqawiexjmhx45km6z2xxhakbt3etp/lib64/libgtest.so (null test)::internal::HandleExceptionsInMethodIf supported < test::test, void> (test::test*,void (test::test::) (,char const)+0x68) [0xffffffbe968d58]

@trivialfis
Copy link
Member

Could you please use the latest XGBoost?

@lillianokok
Copy link
Author

lillianokok commented Mar 5, 2025

Could you please use the latest XGBoost?

Test cases are shielded when the new version is used.
1/2 Test #1: TestXGBoostLib...................***Not Run 0.00 sec
Start 2: AllTestsInDMLCUnitTests
2/2 Test #2: AllTestsInDMLCUnitTests.......... Passed 6.75 sec

Shield this test case. Is there a bug in this test case?

@trivialfis
Copy link
Member

Could you please elaborate on what it means to shield a test case? The test is defined here for the development branch:

TEST(SparsePageDMatrix, ThreadSafetyException) {

@lillianokok
Copy link
Author

lillianokok commented Mar 5, 2025

Could you please elaborate on what it means to shield a test case? The test is defined here for the development branch:

xgboost/tests/cpp/data/test_sparse_page_dmatrix.cc

Line 312 in 4349d1d

TEST(SparsePageDMatrix, ThreadSafetyException) {

Master version I use
Run the ctest command. The execution result shows that the test case is not executed, as shown in the following figure.

Unable to find executable: src/build/testxgboost
1/2 Test #1: TestXGBoostLib ...................***Not Run 0.00 sec
Start 2: AllTestsInDMLCUnitTests
2/2 Test #2: AllTestsInDMLCUnitTests .......... Passed 6.75 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) = 6.75 sec

The following tests FAILED:
1 - TestXGBoostLib (Not Run)
Errors while running CTest

@trivialfis
Copy link
Member

Unable to find executable: src/build/testxgboost

Did you build XGBoost with -DGOOGLE_TEST=ON?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants