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

955 clear out uses of addAction in tests #974

Merged
merged 5 commits into from
Aug 13, 2020

Conversation

cz4rs
Copy link
Contributor

@cz4rs cz4rs commented Aug 7, 2020

Fixes #955

@cz4rs cz4rs force-pushed the 955-clear-out-uses-of-addAction-in-tests-part2 branch from 18bb1ba to aa8ea3d Compare August 7, 2020 12:18
@codecov
Copy link

codecov bot commented Aug 7, 2020

Codecov Report

Merging #974 into develop will increase coverage by 0.01%.
The diff coverage is 95.36%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #974      +/-   ##
===========================================
+ Coverage    77.24%   77.26%   +0.01%     
===========================================
  Files          656      656              
  Lines        25052    25037      -15     
===========================================
- Hits         19352    19344       -8     
+ Misses        5700     5693       -7     
Impacted Files Coverage Δ
src/vt/scheduler/scheduler.h 100.00% <ø> (ø)
tests/unit/location/test_location_common.h 0.00% <0.00%> (ø)
tests/unit/objgroup/test_objgroup.cc 99.24% <97.87%> (+0.02%) ⬆️
tests/unit/group/test_group.cc 100.00% <100.00%> (ø)
tests/unit/location/test_hops.extended.cc 91.13% <100.00%> (-1.17%) ⬇️
tests/unit/memory/test_memory_lifetime.cc 99.33% <100.00%> (ø)
tests/unit/pipe/test_callback_bcast.cc 100.00% <100.00%> (ø)

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.

This is looking great to me

@cz4rs
Copy link
Contributor Author

cz4rs commented Aug 7, 2020

there's still a couple of files to be cleared, the rest is landing on Monday

@cz4rs cz4rs force-pushed the 955-clear-out-uses-of-addAction-in-tests-part2 branch from aa8ea3d to c97fc6f Compare August 10, 2020 10:23
tests/unit/memory/test_memory_active.cc Outdated Show resolved Hide resolved
tests/unit/memory/test_memory_active.cc Outdated Show resolved Hide resolved
tests/unit/memory/test_memory_lifetime.cc Outdated Show resolved Hide resolved
tests/unit/memory/test_memory_lifetime.cc Outdated Show resolved Hide resolved
@cz4rs cz4rs force-pushed the 955-clear-out-uses-of-addAction-in-tests-part2 branch 2 times, most recently from cbd4f70 to c6e622d Compare August 11, 2020 12:19
@cz4rs
Copy link
Contributor Author

cz4rs commented Aug 11, 2020

files cleared:

  • tests/unit/group/test_group.cc:4
  • tests/unit/location/test_hops.extended.cc:1
  • tests/unit/location/test_location_common.h:1 >> Codecov warning spotted, but verifyCacheConsistency function that was modified seems to be used in test_location.cc
  • tests/unit/memory/test_memory_active.cc:2 >> not applicable
  • tests/unit/memory/test_memory_lifetime.cc:14 >> only partially applicable
  • tests/unit/objgroup/test_objgroup.cc:3
  • tests/unit/pipe/test_callback_bcast.cc:6
  • tests/unit/pipe/test_callback_bcast_collection.extended.cc:3 >> not applicable (proxy.destroy(); used in addAction)

@cz4rs cz4rs force-pushed the 955-clear-out-uses-of-addAction-in-tests-part2 branch 3 times, most recently from 6cede9d to 24a886c Compare August 11, 2020 16:25
@cz4rs
Copy link
Contributor Author

cz4rs commented Aug 11, 2020

documentation improvements:

image

  • remove copydoc for vt::sched::Scheduler::scheduler (which results in random "Turn the scheduler")
    note: it would be better to improve documentation of the method instead, maybe we can use the line above - "polls every component..."
  • remove duplication by omitting \brief (use copydetails instead of copydoc)

@lifflander lifflander changed the title #955 clear out uses of addAction in tests 955 clear out uses of addAction in tests Aug 11, 2020
@cz4rs cz4rs force-pushed the 955-clear-out-uses-of-addAction-in-tests-part2 branch 2 times, most recently from ecfd4aa to 334a7a3 Compare August 12, 2020 16:08
@cz4rs cz4rs marked this pull request as ready for review August 12, 2020 16:24
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.

This looks great now, I think it's ready to merge once CI passes

@cz4rs
Copy link
Contributor Author

cz4rs commented Aug 12, 2020

@lifflander

This looks great now, I think it's ready to merge once CI passes

Yep, I think it's good to go :)

Side note: you might have seen that already, TimeTrigger tests are still failing from time to time (clang-8, macosx, mpich build)

The following tests FAILED:
	354 - vt:TestTimeTrigger.test_time_trigger_2_proc_4 (Failed)

plus there's one (new?) warning generated from that test:

 [295/480] Building CXX object tests/CMakeFiles/test_time_trigger_extended.dir/unit/timetrigger/test_time_trigger.extended.cc.o
../../tests/unit/timetrigger/test_time_trigger.extended.cc:121:41: warning: lambda capture 'cur_time' is not used [-Wunused-lambda-capture]
      trigger_period[i], [&triggered,i,&cur_time]{
                                      ~~^~~~~~~~

@lifflander
Copy link
Collaborator

@lifflander

This looks great now, I think it's ready to merge once CI passes

Yep, I think it's good to go :)

Side note: you might have seen that already, TimeTrigger tests are still failing from time to time (clang-8, macosx, mpich build)

The following tests FAILED:
	354 - vt:TestTimeTrigger.test_time_trigger_2_proc_4 (Failed)

plus there's one (new?) warning generated from that test:

 [295/480] Building CXX object tests/CMakeFiles/test_time_trigger_extended.dir/unit/timetrigger/test_time_trigger.extended.cc.o
../../tests/unit/timetrigger/test_time_trigger.extended.cc:121:41: warning: lambda capture 'cur_time' is not used [-Wunused-lambda-capture]
      trigger_period[i], [&triggered,i,&cur_time]{
                                      ~~^~~~~~~~

Yes, I saw that it is still failing. Planning to fix

@lifflander
Copy link
Collaborator

@cz4rs Ok, can you rebase and then we can merge?

@cz4rs cz4rs force-pushed the 955-clear-out-uses-of-addAction-in-tests-part2 branch from c4bd1fc to 4c45a7c Compare August 13, 2020 05:03
Copy link
Collaborator

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

Clones removed
==============
+ tests/unit/memory/test_memory_lifetime.cc  -3
         

See the complete overview on Codacy

@cz4rs
Copy link
Contributor Author

cz4rs commented Aug 13, 2020

@cz4rs Ok, can you rebase and then we can merge?

rebased with the latest changes from develop

runInEpochCollective([&]{
// self-send a message and then broadcast
proxy[my_node].send<MyMsg, &MyObjA::handler>();
proxy.broadcast<MyMsg, &MyObjA::handler>();
Copy link
Member

Choose a reason for hiding this comment

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

@lifflander I think this is a scalability problem for cases where vt is configured and compiled on a host with large numbers of cores - the message count will scale with the number of cores, which can make it take an arbitrarily long time on a very wide node

@@ -151,18 +151,13 @@ void verifyCacheConsistency(
// perform the checks only at the end of the epoch
// to ensure that all entity messages have been
// correctly delivered before.
Copy link
Member

Choose a reason for hiding this comment

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

@lifflander I think this change may have fundamentally shifted the meaning of this test. Please double check

Copy link
Collaborator

Choose a reason for hiding this comment

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

This diff is really confusing to read. Had to go back and look.

This test is not testing the same thing at all. It's now checking the state before. I should have caught this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will revert and (try to) handle this correctly in #989

Copy link
Contributor Author

@cz4rs cz4rs Aug 19, 2020

Choose a reason for hiding this comment

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

2d67222 added in #989

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.

Clear out uses of addAction in tests/
3 participants