-
Notifications
You must be signed in to change notification settings - Fork 11
Suite merge script #169
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
Suite merge script #169
Conversation
t00sa
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.
A handful of suggestions
Co-authored-by: Sam Clarke-Green <[email protected]>
Co-authored-by: Sam Clarke-Green <[email protected]>
Co-authored-by: Sam Clarke-Green <[email protected]>
Co-authored-by: Sam Clarke-Green <[email protected]>
t00sa
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.
Looks good. Just one suggestion about where to put the basicConfig() call
|
I've ticked the boxes I didn't tick yesterday and the update looks good too |
Co-authored-by: Erica Neininger <[email protected]>
…s_Scripts into suite_merge_script
james-bruten-mo
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.
Thanks Erica, those changes are all done. For the opts == None comments, I've not modified by those comments, but have added a function that checks the structure of the dependencies dictionary looks roughly right. An example of it failing is at https://cylchub/services/cylc-review/view/james.bruten?&suite=u-dn674%2Frun3&no_fuzzy_time=0&path=log/job/1/extract/01/job.err
| if not isinstance(opts, list): | ||
| opts = [opts] | ||
|
|
||
| for i, values in enumerate(opts): |
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.
Changed
ericaneininger
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.
Thanks for taking the time to address all comments. Happy to approve.
* copy changes from apps * revert accidental changes * fix * allow multiple sources * add merge_sources script * make path * bug * bug * fix merge * mirror fix * setup merging of branches * ruff * remove remote * working merge script * add another error * modify argument order * Update github_scripts/get_git_sources.py Co-authored-by: Sam Clarke-Green <[email protected]> * Update github_scripts/merge_sources.py Co-authored-by: Sam Clarke-Green <[email protected]> * Update github_scripts/merge_sources.py Co-authored-by: Sam Clarke-Green <[email protected]> * Update github_scripts/rose_stem_extract_source.py Co-authored-by: Sam Clarke-Green <[email protected]> * update to use logger * loggin gchanges * loggin gchanges * logging changes * logging changes * logging changes * logging changes * logging changes * move basicconfig * Apply suggestion from @ericaneininger Co-authored-by: Erica Neininger <[email protected]> * cr changes --------- Co-authored-by: Sam Clarke-Green <[email protected]> Co-authored-by: Erica Neininger <[email protected]>
PR Summary
Sci/Tech Reviewer: @t00sa
Code Reviewer: @ericaneininger
Initial attempt at a script to merge different git branches for use in suites. The changes have been tested with the LFRic suites and with the lfric_apps rose-stem at
vn3.0. If we think this is a good idea I'll also modify the UM suites to use this extraction method to maintain consistency.These changes allow the
dependencies.yamlfile to specify multiple branches to merge together. This can be done by:which will clone the first source and then merge each subsequent source into this. It's currently setup to ignore merge conflicts in
rose-stemanddependencies.yamlas these files aren't important for running scientific suites.Code Quality Checklist
Testing
LFRic standalone suites and lfric_apps rose-stem at vn3.0
Security Considerations
AI Assistance and Attribution
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review