Repository navigation
[wip] Optimize test durations - #8634
Draft
Jens Hedegaard Nielsen (jenshnielsen) wants to merge 5 commits into
Draft
Jens Hedegaard Nielsen (jenshnielsen) wants to merge 5 commits into
Jens Hedegaard Nielsen (jenshnielsen) wants to merge 5 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8634 +/- ##
==========================================
+ Coverage 72.62% 72.64% +0.02%
==========================================
Files 307 307
Lines 32431 32481 +50
==========================================
+ Hits 23552 23595 +43
- Misses 8879 8886 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Jens Hedegaard Nielsen (jenshnielsen)
force-pushed
the
qcodes_faster_tests
branch
from
October 20, 2026 04:56
e8f438d to
f78cf6c
Compare
Distribute tests with worksteal rather than loadfile so that a single slow file no longer determines the wall time of the run. Use simulated Keysight B220x/B1500 instruments directly instead of first probing a placeholder VISA address, simulate faster heating in the Lakeshore mocks, poll subscriber state more often and drop sleeps that are not needed.
Parsing the npy header of every stored value dominated the time it takes to load array and complex data. Cache the parsed header, since all rows of a parameter share it, and fall back to numpy's read_array for anything the fast path does not handle.
The interdependencies of a dataset can not change once it has been started, so freeze them at that point and when loading a started run rather than only during a measurement. Reads now use the dataset's own frozen description instead of parsing it from the database every call. Unfreezing at the end of a measurement was only needed because frozen and non frozen interdependencies never compared equal. Make equality symmetric and let remove on a frozen instance return a new object like extend does.
The interdependencies of a started dataset are fixed and override never updated the run description in the database, only the in memory object and data exported from it. Nothing uses it anymore since measurements no longer unfreeze the interdependencies on exit. Remove the argument from the private DataSetInMem method outright.
Jens Hedegaard Nielsen (jenshnielsen)
force-pushed
the
qcodes_faster_tests
branch
from
October 22, 2026 04:50
f78cf6c to
e1333b2
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.