Skip to content

Skip slow tests in CI, only running them weekly#1914

Merged
jfrost-mo merged 3 commits intomainfrom
skip_slow_tests_in_ci
Feb 18, 2026
Merged

Skip slow tests in CI, only running them weekly#1914
jfrost-mo merged 3 commits intomainfrom
skip_slow_tests_in_ci

Conversation

@jfrost-mo
Copy link
Member

@jfrost-mo jfrost-mo commented Feb 18, 2026

This significantly speeds up our per-commit/pull request tests while ensuring slow things are still tested at least weekly.

Slow tests were determined with pytest --durations, with any test taking over 2 seconds on my local machine marked as slow.

As a point of comparison, the py314 tests went from 1m17s before this change to 40s afterwards, a nearly 2x speedup.

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

These tests represent a significant fraction of the total testing time.
To reduce the burden of slow tests they are being marked so they can be
skipped.
make test-fast also skips network tests, for use in CI. make test-full
is for running all the tests, and will include the upcoming playwright
tests.
The full test suite is now run in the weekly checks, as no one will have
to wait for it then while still giving things a regular test.
@jfrost-mo jfrost-mo added this to the CSET v26.2.0 milestone Feb 18, 2026
@jfrost-mo jfrost-mo self-assigned this Feb 18, 2026
@jfrost-mo jfrost-mo added cleanup Non-functional improvement github_actions Pull requests that update GitHub Actions code labels Feb 18, 2026
@github-actions
Copy link
Contributor

Coverage

@jfrost-mo jfrost-mo marked this pull request as ready for review February 18, 2026 11:25
@jfrost-mo jfrost-mo requested a review from daflack February 18, 2026 11:25
Copy link
Collaborator

@daflack daflack left a comment

Choose a reason for hiding this comment

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

Happy with this change, and is really beneficial to allow the rapid development that we are in at the moment. One thing that might be worth doing is adding documentation on make test and the new options at some point, but I view this as a separate PR as it hasn't been done beforehand so is not just a case of updating it.

@jfrost-mo
Copy link
Member Author

That's a solid call. I'll add something to the developer documentation.

@jfrost-mo jfrost-mo merged commit 67e2ac5 into main Feb 18, 2026
8 checks passed
@jfrost-mo jfrost-mo deleted the skip_slow_tests_in_ci branch February 18, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Non-functional improvement github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments