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

Feature clear launch configs #515

Merged
merged 30 commits into from
Oct 4, 2021
Merged

Feature clear launch configs #515

merged 30 commits into from
Oct 4, 2021

Conversation

djchopp
Copy link
Contributor

@djchopp djchopp commented Jun 21, 2021

Adds the feature/functionality described in issue #507 such that launch configurations can be cleared within a current scope. The ClearLaunchConfigurations action compliments the Push* and Pop* actions with the following use pattern:

PushLaunchConfigurations()
ClearLaunchConfigurations()
# Scoped and isolated actions here
PopLaunchConfigurations()

Additionally the GroupAction has been updated to also support clearing of the launch configurations utilizing the pattern above.

@hidmic hidmic requested review from ivanpauno and wjwwood June 22, 2021 17:18
launch/launch/actions/clear_launch_configurations.py Outdated Show resolved Hide resolved
launch/launch/actions/clear_launch_configurations.py Outdated Show resolved Hide resolved
launch/launch/actions/group_action.py Outdated Show resolved Hide resolved
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

Concept seems solid to me, as well as implementation. If we can clear up some documentation/interface concerns and add a few tests, I think it will be good to go.

launch/launch/actions/clear_launch_configurations.py Outdated Show resolved Hide resolved
launch/launch/actions/clear_launch_configurations.py Outdated Show resolved Hide resolved
launch/launch/actions/clear_launch_configurations.py Outdated Show resolved Hide resolved
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

Documentation looks good to me, and implementation makes sense.

I did request one change related to the default argument, but I think it can trivially be fixed by using None.

I would still like to see some tests for this new action and extensions to the group action tests.

launch/launch/actions/clear_launch_configurations.py Outdated Show resolved Hide resolved
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

One point for discussion, but looking good otherwise, maybe time to bring it out of draft?

launch/launch/actions/group_action.py Outdated Show resolved Hide resolved
@djchopp djchopp marked this pull request as ready for review June 28, 2021 20:20
@djchopp djchopp requested a review from wjwwood July 9, 2021 16:22
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm, several nitpicks but nothing serious

launch/launch/actions/group_action.py Outdated Show resolved Hide resolved
launch/launch/actions/group_action.py Show resolved Hide resolved
launch/launch/actions/reset_launch_configurations.py Outdated Show resolved Hide resolved
launch/launch/actions/reset_launch_configurations.py Outdated Show resolved Hide resolved
launch/launch/actions/reset_launch_configurations.py Outdated Show resolved Hide resolved
@wjwwood wjwwood changed the title Feat clear launch configs Feature clear launch configs Jul 12, 2021
@wjwwood wjwwood added the enhancement New feature or request label Jul 12, 2021
@hidmic hidmic self-requested a review August 19, 2021 22:39
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

Overall I like this patch. Left a few minor comments here and there, but otherwise this is pretty much ready to fly.

@hidmic hidmic requested a review from wjwwood August 20, 2021 19:43
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM ! CI up to launch:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@djchopp
Copy link
Contributor Author

djchopp commented Aug 23, 2021

@hidmic Can you rerun the CI? Latest commit should fix the flake errors from the previous CI builds.

@hidmic
Copy link
Contributor

hidmic commented Aug 23, 2021

Sure thing. Take two:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@hidmic
Copy link
Contributor

hidmic commented Aug 24, 2021

Alright, all green. We should probably run a more comprehensive CI now. @ivanpauno @wjwwood mind to take a look before I do that?

Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

LGTM!
Thanks for the contribution @djchopp !

@djchopp djchopp requested review from hidmic and ivanpauno September 16, 2021 17:10
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

Overall this looks great to me @djchopp.

Thanks for the work and the patience.

launch_yaml/test/launch_yaml/test_reset.py Outdated Show resolved Hide resolved
launch/launch/actions/group_action.py Show resolved Hide resolved
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM pending green CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Thank you for patience @djchopp!

@hidmic
Copy link
Contributor

hidmic commented Sep 29, 2021

@djchopp would you mind rebasing on top of master? That seems to be the cause behind CI failures.

@djchopp
Copy link
Contributor Author

djchopp commented Sep 29, 2021

@hidmic This is nearing the edge of my git knowledge so hopefully I did that correctly. Let me know if I did something stupid.

@hidmic
Copy link
Contributor

hidmic commented Sep 29, 2021

@djchopp did you merge master into your branch along the way at some point? I see commits that do not belong here.

@djchopp
Copy link
Contributor Author

djchopp commented Sep 29, 2021

@hidimic Very possibly. Steps I did:

  • Fetch upstream in github
  • Pull origin master branch
  • Checkout local feat branch
  • rebase on master
  • Pull (merge) origin feat branch
  • Push local feat branch
  • Forget to signoff, rebase again with signoff
  • Work through merge conflicts
  • Push local feat branch, force with lease

If you know how to fix, feel free to do so

djchopp and others added 22 commits September 30, 2021 09:23
doc: fix docblock for newline style.

Co-authored-by: William Woodall <[email protected]>
Signed-off-by: djchopp <[email protected]>
doc: fix punctuation

Co-authored-by: William Woodall <[email protected]>
Signed-off-by: djchopp <[email protected]>
Signed-off-by: djchopp <[email protected]>
Co-authored-by: Michel Hidalgo <[email protected]>
Signed-off-by: djchopp <[email protected]>
Co-authored-by: Michel Hidalgo <[email protected]>
Signed-off-by: djchopp <[email protected]>
@djchopp
Copy link
Contributor Author

djchopp commented Sep 30, 2021

@hidmic Thanks for the lesson! I had a copy saved off so was able to recover. Let me know if that looks better now.

@hidmic
Copy link
Contributor

hidmic commented Sep 30, 2021

Thanks @djchopp !

Firing up CI again:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@wjwwood wjwwood merged commit ec481fb into ros2:master Oct 4, 2021
@wjwwood
Copy link
Member

wjwwood commented Oct 4, 2021

Does this close #507?

@hidmic
Copy link
Contributor

hidmic commented Oct 4, 2021

Does this close #507?

Indeed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants