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

tutorial: make the tutorial workflow run a little slower #6047

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

oliver-sanders
Copy link
Member

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.

* Address feedback that the workflow runs too quickly.
* Add 2-4s sleeps to slow it down.
* Closes cylc#6041
@@ -115,4 +116,5 @@ def main():


if __name__ == '__main__':
time.sleep(2) # make the tutorial run a little slower
Copy link
Member

@MetRonnie MetRonnie Apr 3, 2024

Choose a reason for hiding this comment

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

Based on these timings (without any sleeps) I would be tempted to make all the sleeps 4 secs so all the tasks take at least 5 secs.

image

Also one thing we can do to avoid sleeps on GH Actions would be (not that it matters that much)

Suggested change
time.sleep(2) # make the tutorial run a little slower
if 'CI' not in os.environ:
time.sleep(4) # make the tutorial run a little slower

@MetRonnie
Copy link
Member

Made my suggestions into a PR against this one: oliver-sanders#67

Also remembered people discovered an issue in the runtime configuration tutorial where part 4 "Test the get_observations tasks" wouldn't work because of missing runtime sections, added those in

@oliver-sanders oliver-sanders changed the base branch from master to 8.2.x April 4, 2024 10:48
@MetRonnie MetRonnie merged commit 40c2fbb into cylc:8.2.x Apr 4, 2024
23 of 24 checks passed
@oliver-sanders oliver-sanders deleted the 6041 branch April 4, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tutorial: sleep if not doing anything
2 participants