-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cylc VR: Don't save icp to options object to
prevent changes made to the options by validate affecting subsequent steps. Response to review - Variable name suggestions. - Test speedup.
- Loading branch information
Showing
6 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Prevent validate step of VR changing CLI options. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/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/>. | ||
|
||
#------------------------------------------------------------------------------ | ||
# Ensure that validate step of Cylc VR cannot change the options object. | ||
# See https://github.com/cylc/cylc-flow/issues/6262 | ||
|
||
. "$(dirname "$0")/test_header" | ||
set_test_number 2 | ||
|
||
WORKFLOW_ID=$(workflow_id) | ||
|
||
cp -r "${TEST_SOURCE_DIR}/${TEST_NAME_BASE}/flow.cylc" . | ||
|
||
run_ok "${TEST_NAME_BASE}-vip" \ | ||
cylc vip . \ | ||
--workflow-name "${WORKFLOW_ID}" \ | ||
--no-detach \ | ||
--no-run-name | ||
|
||
echo "# Some Comment" >> flow.cylc | ||
|
||
run_ok "${TEST_NAME_BASE}-vr" \ | ||
cylc vr "${WORKFLOW_ID}" \ | ||
--stop-cycle-point 2020-01-01T00:02Z |
9 changes: 9 additions & 0 deletions
9
tests/functional/cylc-combination-scripts/09-vr-icp-now/flow.cylc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[scheduling] | ||
initial cycle point = 2020 | ||
stop after cycle point = 2020-01-01T00:01Z | ||
[[graph]] | ||
PT1M = foo | ||
[runtime] | ||
[[foo]] | ||
[[[simulation]]] | ||
default run length = PT0S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters