-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add ctest to spack build pipelines. #118
Conversation
@@ -130,6 +130,9 @@ jobs: | |||
- name: Install | |||
run: spack -e . install --no-check-signature | |||
|
|||
- name: Test Installation | |||
run: . buildsystem/spack/spack/share/spack/setup-env.sh && spack -e . load cmake && cd `ls | grep spack-build | grep -v txt` && ctest -VV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be easier to just source this script during "Setup Spack" stage of the job instead of doing it haphazardly here
Tests were false positive-ing last run. Hoping my latest change fixes that |
For some reason no tests are being found... Need to debug + diagnose further, as a similar workflow works just fine locally |
i suggest we enable address sanitizer (and consider adding this, of course, breaks a lot of tests immediately due to the amount of memory leaks present, but i'm sure the current ones aren't too hard to fix |
@cameronrutherford, do we know why tests are not run? |
This is a great idea and should be captured in another issue. Would just involve adding a flag to CMake through spack, and then also adding that to the |
Part of the difficulty is that the GitHub actions runners are a VM, and not a strict container. Any debugging locally doesn't 1-1 map to the CI environment. We could do the following:
|
e33299a
to
592a6b3
Compare
I force pushed to re-run CI and will try a few things, but I don't know if I will get anywhere, and the |
Shouldn't we have both -- test build and test installation? We have separate |
The issue I see here is that
|
592a6b3
to
6b71cd5
Compare
9640c62
to
d1ba045
Compare
fe6d88b
to
c6323e9
Compare
This is rebased on #168 and builds are running and so is ctest in CI after the spack builds!! ◡̈ |
d7bc2b3
to
eea7711
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I undid all the applied linting to the CMake, so I think this is ready to merge @pelesh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests run correctly and pass. Great job!
Adds a ctest invocation to the CPU spack builds (same fix can be extended to ExaGO + HiOp if functioning well...)