-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fcm make fix for remote and subshell platforms #120
Conversation
def get_platform_from_task_def( | ||
flow: str, task: str | ||
) -> Dict[str, Any]: | ||
def get_platform_from_task_def(flow: str, task: str) -> Dict[str, Any]: | ||
"""Return the platform dictionary for a particular task. | ||
|
||
Uses the flow definition - designed to be used with tasks |
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 think the docstring could be updated to mention that it evaluates any subshell defined platform/hosts
from cylc.flow.id_cli import parse_id | ||
from cylc.flow.platforms import ( | ||
HOST_REC_COMMAND, |
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.
This allows backticks, was that desired?
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.
This is only for the old [remote]host
syntax which I think we supported at Cylc 7.
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
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, going to try to get the test passing locally.
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
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.
Happy, although I haven't tested. Is there an example workflow/Rose suite I can test manually? (The subshell bit, irrespective of FCM Make?)
t/rose-task-run/08-app-fcm-make/ From a quick glance add the following to the [template variables]
HOST="name your remote host" You will also need an fcm wrapper in |
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.
Ran against the tests in metomi-rose, all good.
Sibling to: metomi/rose#2557
Again credit to @wxtim for pair programming this.
These changes close metomi/rose#2553
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
- None to apply.