-
Notifications
You must be signed in to change notification settings - Fork 218
Allow use of --copy-ec with --from-pr #3473
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
Conversation
|
@ocaisa Are you up for enhancing the test for |
|
I'm working on it now |
|
This falls short, it won't also copy over the required patch files (having said that, the option |
|
@boegel Ready for review |
|
I think I've made this overly complicated, now that I've had a look at existing GitHub functionality I could have just used |
boegel
left a comment
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 spent quite a bit of time cleaning things up on top of these changes to clean things up a bit, see #3482
| copy_ec = options.copy_ec and not tweaked_ecs_paths | ||
| if copy_ec or options.fix_deprecated_easyconfigs or options.show_ec: | ||
| if options.from_pr: | ||
| # pull in the paths to all the changed files in the PR (need to do this in a new temp dir) |
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.
@ocaisa This whole code block below if options.from_pr should be moved to a separate function imho, blowing up the logic in main like this doesn't help with keeping things manageable...
Not sure what an appropriate function name would be, but since it's specific to --from-pr I would park it in easybuild.tools.github?
edit: fixes #3178