Skip to content

Shorten timestep on 2D-production/recycling tests#533

Merged
mikekryjak merged 5 commits into
masterfrom
faster-tests
Mar 31, 2026
Merged

Shorten timestep on 2D-production/recycling tests#533
mikekryjak merged 5 commits into
masterfrom
faster-tests

Conversation

@mikekryjak
Copy link
Copy Markdown
Collaborator

@mikekryjak mikekryjak commented Mar 24, 2026

Reduced the required timestep/nout for 2D-recycling and 2D-production to a very small amount.
On my system they take ~35s each with the vast majority of the time taken by xBOUT loading.

I also added some more verbosity and timing messages. Verbosity is now True by default. It's only a handful of lines and the extra timing information could come in handy.

We could get further speedups with the new, faster xBOUT loading (boutproject/xBOUT#336) but this is still not yet merged due to yet another issue with xBOUT tests - this time it looks like it's an Xarray file lock race condition which shows up only in newer Python versions.

Technically the tests could be rewritten to use boutdata.collect, but this would not be trivial since they use xHermes region selection logic.

I checked that the tests are still sensitive. On my system they take ~35s each with the vast majority of the time taken by xBOUT loading.
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.42%. Comparing base (e1fe3af) to head (9eaac75).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #533   +/-   ##
=======================================
  Coverage   45.42%   45.42%           
=======================================
  Files          93       93           
  Lines        9608     9608           
  Branches     1394     1394           
=======================================
  Hits         4364     4364           
  Misses       4784     4784           
  Partials      460      460           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

mrhardman added a commit to UKAEA-Edge-Code/hermes-3 that referenced this pull request Mar 27, 2026
…g/docker-image-shorten-tests

Shorten tests, following boutproject#533. Use target=x86_64_v3 in spack built to try to avoid inconsistency between runner used to build the image and the runner used for the tests.
@mikekryjak mikekryjak requested a review from bendudson March 30, 2026 10:48
@mikekryjak
Copy link
Copy Markdown
Collaborator Author

@bendudson ready for review

HCX refactor PR (#398) introduced tiny changes which were merged into master between me shortening the tests and merging the PR
Comment thread tests/integrated/2D-production/runtest
@mikekryjak mikekryjak merged commit 92f2c8b into master Mar 31, 2026
5 of 6 checks passed
@mikekryjak mikekryjak deleted the faster-tests branch March 31, 2026 12:18
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.

2 participants