Skip to content

Fix how tests are executed#1028

Merged
rapids-bot[bot] merged 5 commits into
rapidsai:mainfrom
KyleFromNVIDIA:fix-test-execution
May 22, 2026
Merged

Fix how tests are executed#1028
rapids-bot[bot] merged 5 commits into
rapidsai:mainfrom
KyleFromNVIDIA:fix-test-execution

Conversation

@KyleFromNVIDIA
Copy link
Copy Markdown
Member

@KyleFromNVIDIA KyleFromNVIDIA commented May 22, 2026

Description

Before this change, it was possible for a test to "pass" without actually meeting the required conditions. If a SHOULD_FAIL argument was passed with a regular expression, and the test was supposed to have stdout or stderr that matches the regular expression, but in reality it had an exit code of 1 without matching the regular expression, it would pass. Change test execution so that the conditions are checked more carefully. Use a test script to do these checks.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The cmake-format.json is up to date with these changes.
  • I have added new files under rapids-cmake/
    • I have added include guards (include_guard(GLOBAL))
    • I have added the associated docs/ rst file and update the api.rst

Before this test, it was possible for a test to "pass" without
actually meeting the required conditions. If a `SHOULD_FAIL` argument
was passed with a regular expression, and the test was supposed to
have an exit code of 0 and have stdout or stderr that matches the
regular expression, but in reality it had an exit code of 1 without
matching the regular expression, it would pass. Change test execution
so that the conditions are checked more carefully. Use a test
script to do these checks.
@KyleFromNVIDIA KyleFromNVIDIA requested a review from a team as a code owner May 22, 2026 14:36
@KyleFromNVIDIA KyleFromNVIDIA added bug Something isn't working non-breaking Introduces a non-breaking change labels May 22, 2026
@KyleFromNVIDIA
Copy link
Copy Markdown
Member Author

/merge

@rapids-bot rapids-bot Bot merged commit a773bfa into rapidsai:main May 22, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants