Skip to content

Remove GDARunner and associated bits#1618

Open
rtuck99 wants to merge 7 commits intomainfrom
1532_remove_gdarunner
Open

Remove GDARunner and associated bits#1618
rtuck99 wants to merge 7 commits intomainfrom
1532_remove_gdarunner

Conversation

@rtuck99
Copy link
Contributor

@rtuck99 rtuck99 commented Feb 6, 2026

Fixes

Link to dodal PR (if required): #N/A
(remember to update pyproject.toml with the dodal commit tag if you need it for tests to pass!)

Instructions to reviewer on how to test:

  1. Tests pass
  2. Documentation is correct and no longer refers to GDA mode

Checks for reviewer

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

@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.75%. Comparing base (0f6ea7a) to head (755b3c2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1618      +/-   ##
==========================================
- Coverage   92.85%   92.75%   -0.11%     
==========================================
  Files         153      150       -3     
  Lines        8638     8377     -261     
==========================================
- Hits         8021     7770     -251     
+ Misses        617      607      -10     
Components Coverage Δ
i24 SSX 78.60% <ø> (ø)
hyperion 98.60% <100.00%> (+0.37%) ⬆️
other 98.25% <ø> (-0.08%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rtuck99 rtuck99 added dev experience Changes relating to developer experience hyperion Issues for Hyperion, the Bluesky UDC stack and removed dev experience Changes relating to developer experience labels Feb 6, 2026
@rtuck99 rtuck99 force-pushed the 1532_remove_gdarunner branch from 1089993 to 943ae89 Compare February 6, 2026 16:44
Base automatically changed from unpin-pyright to main February 9, 2026 10:37
@rtuck99 rtuck99 marked this pull request as ready for review February 9, 2026 11:42
@rtuck99 rtuck99 requested a review from a team as a code owner February 9, 2026 11: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! Couple of comments on how we could go further but this is a lot nicer now.

Could: Many of the plans that were in experiment_registry are now not used e.g. pin_tip_centre_then_xray_centre, rotation_scan, hyperion_grid_detect_then_xray_centre. Whilst they will be useful endpoints again at some point I think we should remove them now as they are distracting. In fact we had an issue recently where we were modifying the wrong one.

"""Main application entry point."""
args = parse_cli_args()
initialise_globals(args)
hyperion_port = HyperionConstants.HYPERION_PORT
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: This would now make more sense being called WATCHDOG_PORT rather than HYPERION_PORT

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that would also be confusing - the watchdog port is different when running in blueapi mode - the callbacks talk to the supervisor not blueapi.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could: Now that PlanRunner is the only implementation of this we can merge the two

Comment on lines -43 to -52
"hyperion_grid_detect_then_xray_centre": {
"setup": hyperion_grid_detect_then_xray_centre_plan.create_devices,
"param_type": GridScanWithEdgeDetect,
},
"pin_tip_centre_then_xray_centre": {
"setup": pin_centre_then_xray_centre_plan.create_devices,
"param_type": PinTipCentreThenXrayCentre,
},
"rotation_scan": {
"setup": rotation_scan_plan.create_devices,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could: Only the load_centre_collect create_devices is now used. All the others can be removed. In fact there's a few that weren't even referenced before this

raise PlanNotFoundError(f"Experiment plan '{plan_name}' not found in registry.")

experiment_internal_param_type = experiment_registry_entry.get("param_type")
plan = context.plan_functions.get(plan_name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could: We are now never using the plans loaded into the context, only the devices. To avoid potential confusion it would be good to remove the context.with_plan_module(hyperion_plans) in setup_context

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! Couple of comments on how we could go further but this is a lot nicer now.

Could: Many of the plans that were in experiment_registry are now not used e.g. pin_tip_centre_then_xray_centre, rotation_scan, hyperion_grid_detect_then_xray_centre. Whilst they will be useful endpoints again at some point I think we should remove them now as they are distracting. In fact we had an issue recently where we were modifying the wrong one.

@rtuck99 rtuck99 force-pushed the 1532_remove_gdarunner branch from f5c1a2f to 9f0b839 Compare February 11, 2026 14:12
@rtuck99 rtuck99 requested a review from DominicOram February 11, 2026 14:20
@rtuck99 rtuck99 force-pushed the 1532_remove_gdarunner branch from 9f0b839 to 7b74a5f Compare February 11, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hyperion Issues for Hyperion, the Bluesky UDC stack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments