Skip to content

Conversation

@jacob720
Copy link
Contributor

@jacob720 jacob720 commented Dec 2, 2025

Fixes DiamondLightSource/mx-bluesky#810
Required by DiamondLightSource/mx-bluesky#1437

Instructions to reviewer on how to test:

  1. Check tests pass

Checks for reviewer

  • Would the PR title make sense to a scientist on a set of release notes
  • If a new device has been added does it follow the standards
  • If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
  • Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

@jacob720 jacob720 requested a review from a team as a code owner December 2, 2025 14:40
@jacob720 jacob720 added the murko label Dec 2, 2025
@jacob720 jacob720 changed the title Mx bluesky 810 continue thaw if redis is down Murko: continue thaw if redis is down Dec 2, 2025
@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1750   +/-   ##
=======================================
  Coverage   99.12%   99.12%           
=======================================
  Files         282      282           
  Lines       10686    10698   +12     
=======================================
+ Hits        10592    10604   +12     
  Misses         94       94           

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

@jacob720 jacob720 force-pushed the mx_bluesky_810_continue_thaw_if_redis_is_down branch from 762bea8 to a6493aa Compare December 2, 2025 15:16
Copy link
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, Just the one comment

Comment on lines 125 to 127
self._x_mm_setter(0)
self._y_mm_setter(0)
self._z_mm_setter(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should: I think we probably want to set all these to 0 even if redis is down. Otherwise when redis goes down we will end up centring by the last amount we got, which is probably wrong

await murko_results.stage()
await murko_results.trigger()
await murko_results.unstage()
assert await murko_results.x_mm.get_value() == 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Should: See comment above. Either this test or another should confirm that if we set some rubbish values into the x/y/z before stage it will reset them

@jacob720 jacob720 requested a review from DominicOram December 19, 2025 14:42
Copy link
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, thank you!

@DominicOram DominicOram enabled auto-merge (squash) December 19, 2025 15:32
@DominicOram DominicOram merged commit f4d5293 into main Dec 19, 2025
8 checks passed
@DominicOram DominicOram deleted the mx_bluesky_810_continue_thaw_if_redis_is_down branch December 19, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Murko: Continue thawing if valkey is down

3 participants