Skip to content

Remove mx config client#1673

Merged
jacob720 merged 38 commits intomainfrom
1629_remove_mx_config_client
Mar 18, 2026
Merged

Remove mx config client#1673
jacob720 merged 38 commits intomainfrom
1629_remove_mx_config_client

Conversation

@jacob720
Copy link
Contributor

@jacob720 jacob720 commented Mar 11, 2026

Fixes:

Requires:

Removes MXConfigClient and pushes feature settings into the config server. the MXConfigClient had a refresh cache method, which I've added to the ConfigClient in the config server repo in the PR above. The cache is cleared whenever the baton is passed to UDC.

Also updates the repo to reflect breaking file structure changes in daq-config-server DiamondLightSource/daq-config-server#165

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

@jacob720 jacob720 requested a review from a team as a code owner March 11, 2026 15:37
@jacob720 jacob720 changed the base branch from main to 1504_read_beamlineParameters_through_config_server March 11, 2026 15:38
@rtuck99 rtuck99 self-assigned this Mar 11, 2026
@jacob720 jacob720 added the dev experience Changes relating to developer experience label Mar 11, 2026
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1673      +/-   ##
==========================================
- Coverage   92.95%   92.87%   -0.09%     
==========================================
  Files         157      155       -2     
  Lines        8592     8490     -102     
==========================================
- Hits         7987     7885     -102     
  Misses        605      605              
Components Coverage Δ
i24 SSX 77.32% <ø> (ø)
hyperion 98.58% <100.00%> (-0.02%) ⬇️
other 98.31% <100.00%> (-0.04%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

"""

get_hyperion_config_client().refresh_cache()
get_config_client("i03").reset_cache()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should do this here, some config will already have been initialised when the blueapi context was loaded, so we might be in an inconsistent state here.

Whilst there is somewhere in baton_handler we can do this for in-process UDC, I'm not sure there is anywhere convenient yet for hyperion-blueapi

Copy link
Contributor

Choose a reason for hiding this comment

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

@jacob720 jacob720 force-pushed the 1629_remove_mx_config_client branch from 129ba87 to 452dd38 Compare March 12, 2026 13:35
@jacob720 jacob720 requested a review from rtuck99 March 12, 2026 13:47
Copy link
Contributor

@rtuck99 rtuck99 left a comment

Choose a reason for hiding this comment

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

Approved

Base automatically changed from 1504_read_beamlineParameters_through_config_server to main March 13, 2026 16:21
@jacob720 jacob720 enabled auto-merge (squash) March 18, 2026 09:52
@jacob720 jacob720 merged commit fd2331d into main Mar 18, 2026
10 checks passed
@jacob720 jacob720 deleted the 1629_remove_mx_config_client branch March 18, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev experience Changes relating to developer experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants