Skip to content

Add --output-on-failure to standalone unit tests. #5502

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kounelisagis
Copy link
Member

@kounelisagis kounelisagis commented Apr 16, 2025

This PR adds --output-on-failure to the "Run standalone unit tests" step so that test failures provide detailed output for easier debugging.


TYPE: NO_HISTORY
DESC: This PR adds --output-on-failure to the "Run standalone unit tests" step so that test failures provide detailed output for easier debugging.

@@ -80,8 +80,8 @@ jobs:

- name: 'Run standalone unit tests'
run: |
ctest --test-dir build -R '(^unit_|test_assert)' --no-tests=error
ctest --test-dir build -R 'test_ci_asserts'
ctest --test-dir build -R '(^unit_|test_assert)' --no-tests=error --output-on-failure
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have some rapidcheck tests in tiledb/common/algorithm/test/unit_parallel_merge.cc where we probably don't want to to this.

Can you add a [rapidcheck] tag to those tests, and then add that as a filter here so we run them separately without printing output?

@kounelisagis
Copy link
Member Author

It seems the failure is related to my changes.

@kounelisagis
Copy link
Member Author

I don't think this is needed since we already have the "Print log files (failed build only)" step, which does exactly this. I am suggesting to close this PR.

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

Successfully merging this pull request may close these issues.

2 participants