-
Notifications
You must be signed in to change notification settings - Fork 94
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
Cylc Reinstall #4071
Cylc Reinstall #4071
Conversation
@wxtim I'd value your opinion on this, particularly the cylc-rose side of the reinstall. Flagging you as a reviewer for this, if that is ok? |
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.
Adding a comment-review checklist, so that I can communicate with you what I am doing with your branch.
- Read. Checked for obvious code and spelling, punctuation & grammar issues.
- Run tests locally.
- Run tests on cylc-rose.
- Check that tests are OK with and without cylc-rose installed. One of the tests failed without Cylc-Rose. I have created a PR to your PR branch as a suggestion.
- Try it on some home-made examples.
- Double check against proposal.
popd || exit 1 | ||
purge_rnd_suite | ||
|
||
# Test basic cylc reinstall, named run (including flow name) given |
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.
petty:
# Test basic cylc reinstall, named run (including flow name) given | |
# Test basic cylc reinstall, named run (including ``flow.cylc`` name) given. |
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.
(reply to tim)
I think it is a flow name (i.e. reg) rather than a flow.cylc
path?
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.
Line 43?
popd || exit 1 | ||
purge_rnd_suite | ||
|
||
# Test basic cylc reinstall, named run (including flow name) given |
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.
(reply to tim)
I think it is a flow name (i.e. reg) rather than a flow.cylc
path?
BTW: The rose integration will require a little extra work (some CLI opts to add, etc) but that's not for this PR. |
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.
-
Read. Checked for obvious code and spelling, punctuation & grammar issues.
-
Run tests locally.
-
Run tests on cylc-rose.
Approved, subject to dealing with comments from @oliver-sanders -
Check that tests are OK with and without cylc-rose installed. One of the tests failed without Cylc-Rose. I have created a PR to your PR branch as a suggestion.
-
Try it on some home-made examples.
-
Double check against proposal.
dc2f000
to
11d9a31
Compare
Add functional tests for cylc reinstall
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
tests/functional/cylc-reinstall/01-file-transfer-basic-tree.t to presence/absence of cylc-rose.
0f7674e
to
1ee81b4
Compare
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.
Some suggested error message changes (untested):
Thanks, I'll just fix the tests. |
Just some style issues with line length (sorry), do squash down those last commits when you push back. All good here thanks. |
c755a00
to
8320cac
Compare
Make error message more informative Update cylc/flow/scripts/reinstall.py Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk> Update error messages in tests Update pytest test_suite_files.py
f115d2c
to
510074e
Compare
Cylc Reinstall Command
Follows on from Cylc Install (#4000)
Users can now reinstall an already installed workflow using the
cylc reinstall
command.Proposal: https://github.com/cylc/cylc-admin/blob/master/docs/proposal-rose-suite-run.md
Example use cases:
cylc install myflow
cylc reinstall myflow/run1
cylc install myflow --no-run-name
cylc reinstall myflow
cylc reinstall
from within an installed flow in the cylc run dir.New reinstall log added in log directory: log/install/timestamp-reinstall.log
I have also addressed an issue (related change, #4000 (review)) with the symlink of flow.cylc/suite.rc file being created in the source directory. It is now created in the run dir.
These changes close #3890
CONTRIBUTING.md
and added my name as a Code Contributor.