-
Notifications
You must be signed in to change notification settings - Fork 93
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-rose: cylc list
compatibility
#4293
Conversation
This comment has been minimized.
This comment has been minimized.
I think you fixed this right? (In GH UI, we can mark a comment like this as "Outdated" and hide it using the three dots at the top right corner of the comment area) |
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.
Code and tests look good! Installing everything (flow + rose from both new branches) to test it now.
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.
@wxtim I used @oliver-sanders ' example from the linked issue.
- Created
~/cylc-src/rose1/flow.cylc
with the following content:
[scheduling]
initial cycle point = {{ ICP }}
[[graph]]
R1 = foo
Then created a ~/cylc-src/rose1/rose-suite.conf
(not using myopt
as in his example for now, will after this simpler example works).
[template variables]
ICP = "20000101T0000Z"
- Installed the workflow
(venv) kinow@ranma:~/cylc-src/rose1$ cylc install
INSTALLED rose1/run1 from /home/kinow/cylc-src/rose1
- Verified the files were installed/copied correctly
(venv) kinow@ranma:~/cylc-src/rose1$ ls ~/cylc-run/rose1/run1/
flow.cylc log opt rose-suite.conf
- Tried
cylc validate rose1/run1
(venv) kinow@ranma:~/cylc-src/rose1$ cylc validate rose1/run1
IllegalValueError: (type=cycle point) [scheduling]initial cycle point = {{ ICP }}
Any idea what step I missed? I am trying @oliver-sanders ' example first as that was in the ticket, and looks like a simple way to test this PR. Will try more Jinja2/empy once I get this one working :)
Thanks!!!
Bruno
WF not working / Logging bug?
You might have not explicitly stated because it seems obvious, but I don't thing you have put a Created an issue: cylc/cylc-rose#67. I believe that this is a logging bug. Outdated comments
So done |
Ah! You are right @wxtim ! Added the shebang, and also the
Will finish the review tomorrow morning. Thanks again!! 👍 |
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.
Tested the other commands, list
, config
, and graph
. Everything worked fine. Changed the workflow to be:
#!empy
[scheduling]
initial cycle point = @ICP
[[graph]]
R1 = foo
[runtime]
[[foo]]
And confirmed I had empty
installed. Everything worked fine too :-) Great job @wxtim !
p.s.: we probably have a ticket somewhere to rename rose-suite.conf
to rose-workflow.conf
I think?
No. A rose suite is a config for a Cylc workflow. No immediate plans to change the term. |
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 @wxtim
Looks great. I have read the code, checked out the branch (with its sibling), ran the tests and the manual one as detailed above. I have also locally run the functional tests which were affected. No issues found for me.
These changes address #4288
These changes are twinned with cylc/cylc-rose#65
Make the following scripts work with cylc-rose:
Internal Todo List
Standard checklist
CONTRIBUTING.md
and added my name as a Code Contributor.setup.py
andconda-environment.yml
.How to review:
Create workflows with a
rose-suite.conf
in~/cylc-src/
~/cylc-run/
(usingcylc install
)You might use jinja2 or empy in the workflow to carry out tests like these.
Try each of the four cylc CLI commands with and without the extra rose options provided by this function/
Ideally these commands and
cylc install
should behave in a consistent way.