Skip to content
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

cylc vr #5229

Merged
Merged

Conversation

wxtim
Copy link
Member

@wxtim wxtim commented Nov 16, 2022

Closes #3896

Branch based upon a rebase of #5214 onto #5121, which it has now replaced.

Depending on what Reviewers thing it may replace #5214 once #5121 has been merged.

Purpose

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg and conda-environment.yml.
  • Tests are included (or explain why tests are not needed).
  • CHANGES.md entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@wxtim wxtim self-assigned this Nov 16, 2022
@wxtim wxtim added this to the cylc-8.1.0 milestone Nov 16, 2022
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch 2 times, most recently from 15e056e to 66e4b2d Compare November 17, 2022 11:17
@wxtim wxtim changed the title Implement cylc vro cylc vro Nov 17, 2022
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch from 9534b52 to 3483102 Compare November 17, 2022 11:56
Validation against source for installed workflows.
@wxtim wxtim requested review from MetRonnie and datamel November 28, 2022 15:26
@wxtim wxtim marked this pull request as draft November 28, 2022 15:26
@wxtim wxtim closed this Dec 1, 2022
@wxtim wxtim deleted the 20221116T1324--vip&getTvars--implement_VRO branch December 1, 2022 13:15
@wxtim wxtim restored the 20221116T1324--vip&getTvars--implement_VRO branch December 5, 2022 16:37
wxtim and others added 4 commits December 6, 2022 13:06
Co-authored-by: Oliver Sanders <[email protected]>

simplify integration tests, writing proper test harness fixtures

response to review
Co-authored-by: Oliver Sanders <[email protected]>
@wxtim wxtim reopened this Dec 13, 2022
@oliver-sanders oliver-sanders requested review from oliver-sanders and removed request for MetRonnie December 13, 2022 15:39
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch from a0068e7 to 86acb05 Compare December 14, 2022 09:41
@wxtim wxtim marked this pull request as ready for review December 14, 2022 09:41
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch 2 times, most recently from 108ee54 to 6fc3ca3 Compare December 14, 2022 11:19
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch from 6fc3ca3 to 4ce97a2 Compare December 14, 2022 16:02
cylc/flow/scripts/validate_reinstall.py Outdated Show resolved Hide resolved
cylc/flow/scripts/validate_reinstall.py Outdated Show resolved Hide resolved
cylc/flow/scripts/validate_reinstall.py Outdated Show resolved Hide resolved
cylc/flow/scripts/validate_reinstall.py Outdated Show resolved Hide resolved
cylc/flow/scripts/view.py Outdated Show resolved Hide resolved
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch from 914701e to a620f92 Compare January 10, 2023 13:39
@wxtim wxtim requested a review from oliver-sanders January 10, 2023 13:39
Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests/integration/utils/flow_tools.py Outdated Show resolved Hide resolved
tests/integration/test_get_old_tvars.py Outdated Show resolved Hide resolved
tests/integration/test_get_old_tvars.py Outdated Show resolved Hide resolved
tests/integration/scripts/test_validate_integration.py Outdated Show resolved Hide resolved
tests/integration/conftest.py Outdated Show resolved Hide resolved
tests/functional/cylc-combination-scripts/02-vr-restart.t Outdated Show resolved Hide resolved
cylc/flow/workflow_files.py Outdated Show resolved Hide resolved
cylc/flow/workflow_files.py Outdated Show resolved Hide resolved
cylc/flow/scripts/view.py Outdated Show resolved Hide resolved
@wxtim wxtim requested a review from oliver-sanders January 10, 2023 13:51
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch from 65690e7 to b24d54e Compare January 10, 2023 15:41
@wxtim wxtim force-pushed the 20221116T1324--vip&getTvars--implement_VRO branch from b24d54e to 7f7a716 Compare January 10, 2023 15:53
@MetRonnie MetRonnie changed the title cylc vro cylc vr Jan 11, 2023
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Show resolved Hide resolved
CHANGES.md Show resolved Hide resolved
@wxtim wxtim requested a review from MetRonnie January 11, 2023 12:52
CHANGES.md Outdated Show resolved Hide resolved
Copy link
Member

@MetRonnie MetRonnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From testing out:

  • When doing cylc vr on a stopped workflow, there is no indication that the workflow is now running
    $ cylc vr temp4
      $ cylc validate --against-source temp4/run1
      Valid for cylc-8.1.0.dev
      $ cylc reinstall temp4/run1
      REINSTALL temp4/run1 from ~/cylc-src/temp4
      temp4/run1 up to date with ~/cylc-src/temp4
    
  • cylc vr --no-detach is missing the timestamps - not a biggie so probably address later

@wxtim
Copy link
Member Author

wxtim commented Jan 11, 2023

* When doing `cylc vr` on a stopped workflow, there is no indication that the workflow is now running
  ```
  $ cylc vr temp4
    $ cylc validate --against-source temp4/run1
    Valid for cylc-8.1.0.dev
    $ cylc reinstall temp4/run1
    REINSTALL temp4/run1 from ~/cylc-src/temp4
    temp4/run1 up to date with ~/cylc-src/temp4
  ```

This is the output from Cylc reinstall saying there's nothing to be reinstalled. Having had a quick chat with @MetRonnie I've added a warning, which seems a bit much, until you realize that this scenario produces a non-zero return code from vr.

@wxtim wxtim requested a review from MetRonnie January 11, 2023 13:50
Copy link
Member

@MetRonnie MetRonnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MetRonnie MetRonnie linked an issue Jan 11, 2023 that may be closed by this pull request
source='', # Intentionally blank
)
log_subcommand('play', workflow_id)
scheduler_cli(options, workflow_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need a return 0 at the end of this method?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I think this is fine, turns out sys.exit(None) is equivalent to sys.exit(0).

Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Nice!

@oliver-sanders oliver-sanders merged commit 7d62959 into cylc:master Jan 11, 2023
@wxtim wxtim deleted the 20221116T1324--vip&getTvars--implement_VRO branch January 12, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

config: template variables specified to play should be loaded cli: command aliases
3 participants