-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
* upstream/master: (47 commits) simplify rose stem tests (#314) Apply suggestions from code review add developer docs build(deps): bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.14 (#301) [skip ci] tests: remove defunct cli wrappers (#297) tests/functional: fix scoping issues setup: add missing pytest-asyncio test dependency install/reinstall: adapt to new async interfaces tests: fix flaky text fileinstall: remove asyncio logic Bump codecov/codecov-action from 3 to 4 (#295) use fqdn in rose-stem tests (#294) Update setup.cfg setup: bump rose version fix merge mistake fix flake8 fixed a test Apply suggestions from code review Bump actions/setup-python from 4 to 5 (#280) Update tests/functional/test_utils.py ...
- Loading branch information
Showing
38 changed files
with
2,573 additions
and
1,649 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
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 |
---|---|---|
|
@@ -21,15 +21,14 @@ jobs: | |
steps: | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.MERGE_SHA }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
# return to 3.x once cylc-flow is compatible with 3.10+ (pyuv) | ||
python-version: '3.9' | ||
python-version: '3.x' | ||
|
||
- name: Get the version number | ||
uses: cylc/release-actions/stage-2/get-version-from-pr@v1 | ||
|
@@ -38,7 +37,7 @@ jobs: | |
uses: cylc/release-actions/build-python-package@v1 | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/[email protected].8 | ||
uses: pypa/[email protected].14 | ||
with: | ||
user: __token__ # uses the API token feature of PyPI - least permissions possible | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
|
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
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,67 @@ | ||
# Cylc Rose Dev Docs | ||
|
||
Cylc Rose provides integration between Cylc and Rose. | ||
|
||
Its functionality is defined in the | ||
[cylc-rose proposal](https://github.com/cylc/cylc-admin/blob/master/docs/proposal-cylc-rose-installing-rose-configs.md). | ||
|
||
## Cylc Rose Options | ||
|
||
### Rose Config Files | ||
|
||
Rose suite configurations are Cylc workflows which contain a `rose-suite.conf` | ||
file at the top level. This file configures: | ||
|
||
* Template variables. | ||
* File installation. | ||
* Environment variables for workflow configuration. | ||
|
||
Rose suite configurations may additionally contain optional configuration files | ||
in the `opts/` directory. Note that optional configurations may be turned on by | ||
default via the `opt` configuration in the `rose-suite.conf` file. | ||
|
||
### The Options | ||
|
||
The Rose suite configuration may be extended or overridden via the Cylc Rose | ||
CLI options. | ||
|
||
Cylc Rose adds three options to Cylc Flow. | ||
|
||
* `-S` - template variables | ||
* `-D` - any arbitrary rose configuration (includes template variables) | ||
* `-O` - optional configs | ||
|
||
These options are currently hardcoded in the cylc-flow source code as we | ||
do not yet have the ability for Cylc plugins (such as cylc-rose) to inject | ||
options into cylc-flow commands. | ||
|
||
There is also the `ROSE_SUITE_OPT_CONF_KEYS` environment variable which complements | ||
the `-O` option. | ||
|
||
### Storage | ||
|
||
Cylc Rose options passed in on the CLI are written to the | ||
`~/cylc-run/<workflow-id>/opt/rose-suite-cylc-install.conf` file by | ||
the `post_install` plugin. | ||
|
||
This preserves these options so that they are inherited by subsequent commands | ||
avoiding the need for users to remember which Cylc Rose options they have used | ||
and specify them with all future commands. | ||
|
||
### Reinstallation | ||
|
||
On reinstallation, additional Cylc Rose CLI options may be provided. | ||
|
||
If specified, these will override those previously specified on the CLI. | ||
|
||
### Option Lifecycle | ||
|
||
In order to support Cylc's compound commands (single commands that may perform | ||
multiple individual operations as a transaction), the `post_install` plugin | ||
deletes the Cylc Rose CLI options (from the object it was passed) after it has | ||
written them to the filesystem. | ||
|
||
This is necessary to avoid the same options being reenacted in later stages of | ||
compound commands. See https://github.com/cylc/cylc-flow/issues/5968 | ||
|
||
![lifecycle-diagram](./etc/cylc-rose-opts.svg) |
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
Oops, something went wrong.