Skip to content

test: Add system tests using NumTracker - #1118

Merged
DiamondJoseph merged 13 commits into
mainfrom
numtrack-systests
Aug 1, 2025
Merged

DiamondJoseph merged 13 commits into
mainfrom
numtrack-systests

Conversation

@DiamondJoseph

@DiamondJoseph DiamondJoseph commented Jul 10, 2025 •

Copy link
Copy Markdown
Contributor

Necessarily picks up dodal 1.54 for the adsim module to be able to use the PathProvider that we want to, and ophyd-async 0.12.1 for a bug fix in the ADHDFWriter

@codecov

codecov Bot commented Jul 10, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.49%. Comparing base (fb03c74) to head (1f62f70).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1118      +/-   ##
==========================================
+ Coverage   94.48%   94.49%   +0.01%     
==========================================
  Files          41       41              
  Lines        2557     2544      -13     
==========================================
- Hits         2416     2404      -12     
+ Misses        141      140       -1     

☔ 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.

Base automatically changed from no_is to main July 10, 2025 15:38
Comment on lines +361 to 366
metadata = [("instrument", "p46")]

for md in metadata:
assert md in empty_context.run_engine.md.items()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
metadata = [("instrument", "p46")]
for md in metadata:
assert md in empty_context.run_engine.md.items()
assert empty_context.run_engine.md["instrument"] == "p46"

Are we likely to be adding other entries anytime soon?

@tpoliaw tpoliaw left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks ok other that waiting for when dodal's been released

@DiamondJoseph
DiamondJoseph changed the base branch from main to better_null_handling July 14, 2025 15:22
Base automatically changed from better_null_handling to main July 14, 2025 17:47
Comment thread docs/tutorials/run-bus.md Resolved
Comment thread tests/system_tests/compose.yaml Outdated
ports:
- "8001:8000"
post_start:
- command: /app/numtracker client configure adsim --directory '/tmp/' --scan '{instrument}-{scan_number}' --detector '{instrument}-{scan_number}-{detector}'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- command: /app/numtracker client configure adsim --directory '/tmp/' --scan '{instrument}-{scan_number}' --detector '{instrument}-{scan_number}-{detector}'
- command: /app/numtracker client configure adsim --directory '/tmp/' --scan '{instrument}-{scan_number}' --detector '{instrument}-{scan_number}-{detector}' --number 43

Make it obvious it's taken its number from numtracker instead of starting from 1 as a default

Co-authored-by: Joseph Ware <[email protected]>
@DiamondJoseph
DiamondJoseph merged commit ed1c621 into main Aug 1, 2025
@DiamondJoseph
DiamondJoseph deleted the numtrack-systests branch August 1, 2025 12:41
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.

3 participants