-
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
backport fix from #5712 #5927
backport fix from #5712 #5927
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed a bug preventing simulation of execution retries when `submission retry delays` is not set. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -979,8 +979,8 @@ def _set_retry_timers( | |
rtconfig = itask.tdef.rtconfig | ||
|
||
submit_delays = ( | ||
rtconfig['submission retry delays'] | ||
or itask.platform['submission retry delays'] | ||
rtconfig.get('submission retry delays', []) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The absence of this may make the test workflow fail, but it can depend on whats in your global cylc. Have a look at the artifacts in https://github.com/cylc/cylc-flow/actions/runs/7556705094/job/20574317445?pr=5927 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fix (which you are saying is for bug 2), does not appear to be on master / #5712 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right that it is not on master - I thought it had gone in with #5712, but it hasn't. However, I'm claiming this is the fix to bug1: You have to fix bug 1 to see bug 2. |
||
or itask.platform.get('submission retry delays', []) | ||
) | ||
|
||
for key, delays in [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
# THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE. | ||
# Copyright (C) NIWA & British Crown (Met Office) & Contributors. | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# Test that simulation mode runs, and reruns a failed task successfully | ||
# when execution retry delays is configured. | ||
|
||
. "$(dirname "$0")/test_header" | ||
set_test_number 2 | ||
|
||
install_workflow "${TEST_NAME_BASE}" "${TEST_NAME_BASE}" | ||
run_ok "${TEST_NAME_BASE}-validate" cylc validate "${WORKFLOW_NAME}" | ||
workflow_run_ok "${TEST_NAME_BASE}-run" \ | ||
cylc play \ | ||
--no-detach \ | ||
--mode=simulation \ | ||
--reference-test "${WORKFLOW_NAME}" | ||
purge | ||
exit |
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,16 @@ | ||||||||||||
[scheduler] | ||||||||||||
[[events]] | ||||||||||||
workflow timeout = PT30S | ||||||||||||
|
||||||||||||
[scheduling] | ||||||||||||
initial cycle point = 2359 | ||||||||||||
[[graph]] | ||||||||||||
R1 = get_observations | ||||||||||||
|
||||||||||||
[runtime] | ||||||||||||
[[get_observations]] | ||||||||||||
execution retry delays = PT2S | ||||||||||||
[[[simulation]]] | ||||||||||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The point of this test was, at least partly to test the interaction of this setting. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, what do you mean? I'm just suggesting this to speed up the test There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't want the default run length. |
||||||||||||
fail cycle points = all | ||||||||||||
fail try 1 only = True | ||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
23590101T0000Z/get_observations -triggered off [] in flow 1 | ||
23590101T0000Z/get_observations -triggered off [] in flow 1 |
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.
@MetRonnie This isn't the same as the change on master - It's the response to this comment: #5927 (comment). I wanted to see what CI made of it. This is the commit where I changed it from what's on master.