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

Xtrig arg validate #38

Closed
wants to merge 39 commits into from

Conversation

wxtim
Copy link

@wxtim wxtim commented Jan 3, 2024

Close cylc#5448

This is not just a bug-fix for the wall_clock xtrigger - I've gone for a generic approach:

  • if an xtrigger module has a function called validate_config it will be called at validation time, with the parsed args.

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 if present).
  • 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 marked this pull request as draft January 3, 2024 16:28
@hjoliver
Copy link
Owner

hjoliver commented Jan 8, 2024

+10,607 −3,022

Borked rebase?

@wxtim
Copy link
Author

wxtim commented Jan 8, 2024

+10,607 −3,022

Borked rebase?

Rebase over a very, very old branch.

broadcast: fix issues with filepaths and hash characters

* Fix traceback when using `cylc broadcast -F` with a relative filepath
* Fix `#` char bug in `cylc broadcast`
@wxtim
Copy link
Author

wxtim commented Jan 25, 2024

+10,607 −3,022

Borked rebase?

@hjoliver Might you rebase the base branch?

@hjoliver
Copy link
Owner

hjoliver commented Jan 26, 2024

Rebased

oliver-sanders and others added 2 commits January 29, 2024 16:28
add example workflows

* Partially addresses cylc/cylc-doc#627
* Add some examples of Cylc workflow implementation patterns.

---------

Co-authored-by: Hilary James Oliver <[email protected]>
Co-authored-by: Ronnie Dutta <[email protected]>
@wxtim wxtim force-pushed the xtrig-arg-validate branch from 9e03ea6 to 326eaa1 Compare January 30, 2024 16:09
oliver-sanders and others added 6 commits January 30, 2024 16:35
* Closes cylc#5939
* Support offsets (measured from the ICP) for the `stop after cycle point`
  to mirror the behaviour of the `final cycle point`.
* Add integration test to lock-down `stop after cycle point`
  interactions.
Merge 8.2.x-sync into master
…examples for each of the built in xtriggers.

- Xrandom validate function
- Init test xrandom validate function
- Add unit tests for validation of built in xtriggers
@wxtim wxtim force-pushed the xtrig-arg-validate branch from a271282 to 6fea50f Compare January 31, 2024 12:02
@wxtim wxtim marked this pull request as ready for review January 31, 2024 13:48
dependabot bot and others added 7 commits February 1, 2024 09:49
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
MetRonnie and others added 19 commits February 5, 2024 09:14
* Remove redundant try block.

* Fix changelog

* Automatically validate xtrigger function signature

---------

Co-authored-by: Hilary James Oliver <[email protected]>
Don't record satisfied xtriggers in the DB

* Closes cylc#5911
* Test that no wall_clock xtriggers are saved to the DB for a retry.

---------

Co-authored-by: Ronnie Dutta <[email protected]>
Co-authored-by: Oliver Sanders <[email protected]>
…cov/codecov-action-4

build(deps): bump codecov/codecov-action from 3 to 4
added suite state xtrigger for back commpat
extended back compat a unit test
added deprecation log message
Replace icky unit test with functional test (#4)

---------

Co-authored-by: Mark Dawson <[email protected]>
🤖 Merge 8.2.x-sync into master
Co-authored-by: Mark Dawson <[email protected]>
cylc lint: deprecate `[cylc-lint]` in favour of `[tool.cylc.lint]` in `pyproject.toml`
stop after cycle point: support offsets
🤖 Merge 8.2.x-sync into master
* Improve xtrigger validation

* wall_clock: use placeholder function for signature validation & autodocs

* Fix docstring for autodoc [skip ci]
@wxtim
Copy link
Author

wxtim commented Feb 22, 2024

Stale, replaced by cylc#5955

@wxtim wxtim closed this Feb 22, 2024
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.

5 participants