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

C++ Test #440

Merged
merged 27 commits into from
Sep 30, 2024
Merged

C++ Test #440

merged 27 commits into from
Sep 30, 2024

Conversation

madsbk
Copy link
Member

@madsbk madsbk commented Aug 19, 2024

Implement very basic C++ tests.

@madsbk madsbk added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Aug 19, 2024
@madsbk madsbk force-pushed the gtests branch 4 times, most recently from 5bd6ffc to eebb208 Compare September 16, 2024 20:32
@madsbk madsbk marked this pull request as ready for review September 17, 2024 06:10
@madsbk madsbk requested review from a team as code owners September 17, 2024 06:10
@madsbk madsbk requested a review from bdice September 17, 2024 06:10
ci/run_ctests.sh Outdated
Comment on lines 18 to 21
# TODO: how to use ctest instead of executing the test directly?
# The following line fails with a "ctest doesn't exist" in CI.
# Do we need to install ctest in the CI images?
# ctest --no-tests=error --output-on-failure "$@"
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we need to install ctest?

Copy link
Contributor

Choose a reason for hiding this comment

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

You need to install cmake. Add to the test_cpp group.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, fixed

@vuule
Copy link
Contributor

vuule commented Sep 18, 2024

CC @bdice @kingcrimsontianyu

Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

This PR probably needs to update build.sh. Also check the libkvikio-tests conda packaging and install script to make sure we aren't missing anything there.

@madsbk madsbk requested a review from a team as a code owner September 24, 2024 07:28
@madsbk madsbk requested a review from raydouglass September 24, 2024 07:28
@madsbk
Copy link
Member Author

madsbk commented Sep 25, 2024

This PR probably needs to update build.sh. Also check the libkvikio-tests conda packaging and install script to make sure we aren't missing anything there.

For now, I think build.sh should build the test by default (it is very quick to build). It is always possible to use --cmake-args to disable them.

I think libkvikio-tests et al. is correct?

@madsbk madsbk requested review from vyasr and bdice September 26, 2024 07:17
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

All looks good to me, with one possible exception of using gha-tools in run_ctests.sh.

ci/run_ctests.sh Outdated
Comment on lines 10 to 16
rapids-logger "Run BASIC_IO_EXAMPLE"
./BASIC_IO_EXAMPLE
rapids-logger "Run BASIC_NO_CUDA_EXAMPLE"
./BASIC_NO_CUDA_EXAMPLE

# Run gtests
rapids-logger "Run gtests"
Copy link
Contributor

Choose a reason for hiding this comment

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

I have a weak preference to avoid rapids-logger commands in the run_*.sh scripts because I think those are intended for reuse outside of the CI workflows (in DLFW, perhaps?). In other use cases, the gha-tools utilities may not be present. Either use echo or replace the rapids-logger statements with code comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

@trxcllnt may have comments about appropriate use cases here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have removed the rapids-logger use

@madsbk
Copy link
Member Author

madsbk commented Sep 30, 2024

/merge

@rapids-bot rapids-bot bot merged commit 2053638 into rapidsai:branch-24.10 Sep 30, 2024
56 checks passed
@madsbk madsbk deleted the gtests branch October 1, 2024 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants