Skip to content

Checks for 10 minutes left for countdown#1622

Merged
adaudon merged 11 commits intomainfrom
1601-Countdown
Mar 11, 2026
Merged

Checks for 10 minutes left for countdown#1622
adaudon merged 11 commits intomainfrom
1601-Countdown

Conversation

@adaudon
Copy link
Copy Markdown
Contributor

@adaudon adaudon commented Feb 9, 2026

Fixes #1601

Requires DiamondLightSource/dodal#1922

Instructions to reviewer on how to test:

  1. Do thing x
  2. Confirm thing y happens

Checks for reviewer

  • Would the PR title make sense to a user on a set of release notes

@adaudon adaudon added the enhancement New feature or request label Feb 9, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 16, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1622      +/-   ##
==========================================
+ Coverage   92.92%   92.94%   +0.01%     
==========================================
  Files         157      157              
  Lines        8566     8584      +18     
==========================================
+ Hits         7960     7978      +18     
  Misses        606      606              
Components Coverage Δ
i24 SSX 77.32% <ø> (ø)
hyperion 98.59% <100.00%> (+0.01%) ⬆️
other 98.32% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adaudon adaudon marked this pull request as ready for review February 16, 2026 15:52
@adaudon adaudon requested a review from a team as a code owner February 16, 2026 15:52
Copy link
Copy Markdown
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

Thanks, I've added a few comments

Comment thread src/mx_bluesky/hyperion/baton_handler.py Outdated
Comment thread src/mx_bluesky/hyperion/baton_handler.py Outdated
Comment thread src/mx_bluesky/hyperion/baton_handler.py Outdated
Comment thread src/mx_bluesky/hyperion/baton_handler.py Outdated
@DominicOram DominicOram added the hyperion Issues for Hyperion, the Bluesky UDC stack label Feb 17, 2026
Copy link
Copy Markdown
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

Thanks, a couple more comments but mostly looks good

with caplog.at_level("INFO"):
run_udc_when_requested(bluesky_context, udc_runner)

assert "Synchrotron machine countdown too low" in caplog.text
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.

Could: It would be good to test here that no collections are run in this case, you can do this by asserting that mock_load_centre_collect hasn't been called

Comment thread tests/unit_tests/hyperion/test_baton_handler.py Outdated
Comment thread src/mx_bluesky/hyperion/baton_handler.py Outdated
@adaudon adaudon requested a review from DominicOram March 9, 2026 13:41
Copy link
Copy Markdown
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@adaudon adaudon force-pushed the 1601-Countdown branch 3 times, most recently from 3fc6cb1 to 07dee25 Compare March 11, 2026 10:53
@adaudon adaudon merged commit 625a90e into main Mar 11, 2026
14 of 15 checks passed
@adaudon adaudon deleted the 1601-Countdown branch March 11, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hyperion Issues for Hyperion, the Bluesky UDC stack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hyperion should stop 10 minutes before a scheduled beam dump

3 participants