-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix shellcheck error SC2317 & failing test #2845
Conversation
Seems like a reasonable check: https://www.shellcheck.net/wiki/SC2317 What's the bizz? |
I don't want to change rose-mpi-launch - and the case statement looks valid: It's |
The shellcheck lint should be addressed like in cylc/cylc-flow#6408. But happy to punt to an issue for after the release |
We can ignore the one particular instance rather than ignoring the entire code globally. |
1 test failing: |
I think it's the colon character that shellcheck is objecting to, and I think that's a valid objection: |
Came to this conclusion independently. Just pushing. |
confirmed locally:
Easy fix. |
This'll do it: diff --git a/t/rose-task-run/06-app-prune-iso/flow.cylc b/t/rose-task-run/06-app-prune-iso/flow.cylc
index d720a8dd0..f9abceb49 100644
--- a/t/rose-task-run/06-app-prune-iso/flow.cylc
+++ b/t/rose-task-run/06-app-prune-iso/flow.cylc
@@ -16,7 +16,7 @@
{% if HOST != 'localhost' %}
my_task_2
{% endif %}
- WARM[-PT12H]:finish-all => rose_prune
+ WARM[-PT12H]:succeed-all => rose_prune
"""
[runtime] |
Does this PR want to be against the release branch or master? |
Either, only the changelog and version number differ. |
@@ -128,7 +128,7 @@ while (($# > 0)); do | |||
--help) | |||
rose_help | |||
exit | |||
:;; | |||
;; |
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.
Gotta do this for the other branches too.
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 had no idea :
was an alias for true
)
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.
Only the other branch with an exit in it.
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 cannot reproduce the Mac OS test failures locally (12.7)
$ rtb t/rose-task-run/13-app-arch-cmd-out.t t/rose-task-run/30-app-arch-opt-source.t t/rose-app-run/05-file.t t/rose-task-env/02-360day-cycling.t
t/rose-task-run/13-app-arch-cmd-out.t ..... ok
t/rose-task-run/30-app-arch-opt-source.t .. ok
t/rose-app-run/05-file.t .................. ok
t/rose-task-env/02-360day-cycling.t ....... ok
All tests successful.
Possibly just a CI setup issue.
No description provided.