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

1328: Change CMake to also run tests on single node. #1329

Merged
merged 10 commits into from
Apr 5, 2021

Conversation

JacobDomagala
Copy link
Contributor

Fixes #1328

  1. Add helper macros to skip tests in runtime based on number of nodes
  2. Change CMake to also run the tests on single rank
  3. Skip the tests that aren't meant to be run on less than 2 nodes

@JacobDomagala JacobDomagala self-assigned this Mar 16, 2021
if(isOversubscribed()){
return ParamContainerType{};
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one is related to #1306

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (clang-3.9, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (gcc-6, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (clang-5.0, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (gcc-5, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (nvidia cuda 11.0, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (nvidia cuda 10.1, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (clang-8, alpine, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (gcc-10, ubuntu, openmpi, no LB)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (gcc-9, ubuntu, mpich, zoltan)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (gcc-8, ubuntu, mpich, address sanitizer)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

)

set_tests_properties(
${${CUR_TEST_LIST}}
PROPERTIES TIMEOUT 60
FAIL_REGULAR_EXPRESSION "FAILED;should be deleted but never is;Segmentation fault"
PASS_REGULAR_EXPRESSION "PASSED"
SKIP_REGULAR_EXPRESSION "SKIPPED"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Skipped tests are displayed in the run summary like so:
image

I will test whether it interferes with our 'comment-pr' action when test fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it doesn't break anything:

image

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (gcc-7, ubuntu, mpich, trace runtime, LB)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (intel 19, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented Mar 16, 2021

PR tests (intel 18.03, ubuntu, mpich)

Build for 62e3d1b

Compilation - successful

Testing - passed

Build log

@JacobDomagala JacobDomagala force-pushed the 1328-run-tests-on-single-node branch 2 times, most recently from 5339d92 to b5bd803 Compare March 16, 2021 13:54
@JacobDomagala JacobDomagala marked this pull request as ready for review March 16, 2021 16:18
tests/unit/main.cc Outdated Show resolved Hide resolved
@JacobDomagala JacobDomagala marked this pull request as draft March 17, 2021 20:43
@JacobDomagala JacobDomagala force-pushed the 1328-run-tests-on-single-node branch 2 times, most recently from 95cd740 to cfe1ff3 Compare March 23, 2021 16:32
@JacobDomagala JacobDomagala marked this pull request as ready for review March 23, 2021 16:34
@JacobDomagala JacobDomagala changed the title 1328: Change CMake to run tests on single node. 1328: Change CMake to also run tests on single node. Mar 24, 2021
Copy link
Collaborator

@lifflander lifflander left a comment

Choose a reason for hiding this comment

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

Looks good and ready to me!

@JacobDomagala JacobDomagala force-pushed the 1328-run-tests-on-single-node branch from cfe1ff3 to 47470a8 Compare March 25, 2021 10:34
@JacobDomagala
Copy link
Contributor Author

After rebasing the branch with the latest changes from develop, some tests started to fail while running on the single node.
I'm looking into that

@JacobDomagala JacobDomagala force-pushed the 1328-run-tests-on-single-node branch from 2c0f46e to cf18bb0 Compare March 29, 2021 19:06
@@ -112,7 +112,7 @@ CallbackSend<MsgT>::triggerDispatch(SignalDataType* data, PipeType const& pid) {
auto msg = reinterpret_cast<ShortMessage*>(data);
auto m = promoteMsg(msg);
runnable::makeRunnable(m, true, handler_, this_node)
.withTDEpochFromMsg()
.withTDEpoch(theMsg()->getEpoch())
Copy link
Member

Choose a reason for hiding this comment

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

As discussed on today's call, the message should get an epoch set on it, and this code should go back to calling withTDEpochFromMsg()

The same probably applies to the other callback and reduce cases

@JacobDomagala JacobDomagala force-pushed the 1328-run-tests-on-single-node branch 3 times, most recently from 934d3f8 to 4e48c4a Compare April 2, 2021 14:22
@JacobDomagala JacobDomagala force-pushed the 1328-run-tests-on-single-node branch from 4e48c4a to 62e3d1b Compare April 2, 2021 18:14
Copy link
Collaborator

@lifflander lifflander left a comment

Choose a reason for hiding this comment

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

Looks good to me. The new changes for callbacks look correct.

@JacobDomagala JacobDomagala merged commit 0542da4 into develop Apr 5, 2021
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.

Run tests on single Node
3 participants