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

959 Add some more tests for various load models (Part 2) #1012

Merged
merged 5 commits into from
Sep 11, 2020

Conversation

JacobDomagala
Copy link
Contributor

@JacobDomagala JacobDomagala commented Sep 1, 2020

Fixes #959

Part 2 of adding unit tests for load models (part 1 -> #1001)

Add unit tests for following load models:

  • - Norm
  • - CommOverhead
  • - SelectSubphases

@JacobDomagala JacobDomagala changed the title #959 Add unit tests for Norm load model 959 Add unit tests for Norm load model (Part 2) Sep 1, 2020
@JacobDomagala JacobDomagala changed the title 959 Add unit tests for Norm load model (Part 2) 959 Add some more tests for various load models (Part 2) Sep 1, 2020
@codecov
Copy link

codecov bot commented Sep 1, 2020

Codecov Report

Merging #1012 into develop will increase coverage by 0.16%.
The diff coverage is 94.68%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1012      +/-   ##
===========================================
+ Coverage    77.41%   77.57%   +0.16%     
===========================================
  Files          663      674      +11     
  Lines        25528    25775     +247     
===========================================
+ Hits         19762    19995     +233     
- Misses        5766     5780      +14     
Impacted Files Coverage Δ
.../unit/collection/test_model_comm_overhead.nompi.cc 92.30% <92.30%> (ø)
...it/collection/test_model_select_subphases.nompi.cc 95.31% <95.31%> (ø)
tests/unit/collection/test_model_norm.nompi.cc 95.83% <95.83%> (ø)
src/vt/pipe/state/pipe_state.cc 52.63% <0.00%> (-23.69%) ⬇️
src/vt/pipe/pipe_manager_base.cc 91.42% <0.00%> (-2.86%) ⬇️
...it/pipe/test_callback_bcast_collection.extended.cc 96.66% <0.00%> (-0.21%) ⬇️
tests/unit/pipe/test_callback_func.cc 96.15% <0.00%> (-0.15%) ⬇️
...nit/pipe/test_callback_send_collection.extended.cc 98.01% <0.00%> (-0.12%) ⬇️
tests/unit/memory/test_memory_lifetime.cc 99.18% <0.00%> (-0.02%) ⬇️
tutorial/tutorial_1g.h 100.00% <0.00%> (ø)
... and 23 more

@JacobDomagala JacobDomagala force-pushed the #959-add-unit-tests-for-load-models-part-2 branch from cf20a2e to b79040f Compare September 2, 2020 15:45
@JacobDomagala JacobDomagala marked this pull request as ready for review September 2, 2020 18:23
@PhilMiller
Copy link
Member

This generally looks good. Thanks!

Copy link
Contributor

@cz4rs cz4rs 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

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 great, let's rebase and merge

@lifflander
Copy link
Collaborator

I'm kicking off the extended tests for this one just to be sure. But, I think this is good.

@JacobDomagala JacobDomagala force-pushed the #959-add-unit-tests-for-load-models-part-2 branch from 152542c to b4b61ac Compare September 9, 2020 20:25
Copy link
Member

@PhilMiller PhilMiller left a comment

Choose a reason for hiding this comment

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

In light of the broader object lifecycle issue identified in #1034, could these tests have updateLoads() calls added in the appropriate spots.

@JacobDomagala JacobDomagala force-pushed the #959-add-unit-tests-for-load-models-part-2 branch from 8bf5397 to 409b4a5 Compare September 10, 2020 16:19
@JacobDomagala
Copy link
Contributor Author

In light of the broader object lifecycle issue identified in #1034, could these tests have updateLoads() calls added in the appropriate spots.

Updated.

@JacobDomagala JacobDomagala force-pushed the #959-add-unit-tests-for-load-models-part-2 branch from 409b4a5 to 8ebdd9d Compare September 10, 2020 17:37
@lifflander
Copy link
Collaborator

@JacobDomagala Can you rebase this so we can get it merged? The test failure looks spurious. I just re-ran it.

@JacobDomagala JacobDomagala force-pushed the #959-add-unit-tests-for-load-models-part-2 branch from 8ebdd9d to 3e0af58 Compare September 11, 2020 08:58
Copy link
Collaborator

Codacy Here is an overview of what got changed by this pull request:

Clones added
============
- tests/unit/collection/test_model_select_subphases.nompi.cc  13
- tests/unit/collection/test_model_comm_overhead.nompi.cc  3
- tests/unit/collection/test_model_norm.nompi.cc  15
         

See the complete overview on Codacy

@lifflander lifflander merged commit 06deef2 into develop Sep 11, 2020
@PhilMiller PhilMiller deleted the #959-add-unit-tests-for-load-models-part-2 branch September 11, 2020 18:09
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.

Add some more tests for various load models
4 participants