Skip to content

Simplify config file params#1699

Merged
rtuck99 merged 15 commits into
mainfrom
simplify_config_file_params
May 15, 2026
Merged

Simplify config file params#1699
rtuck99 merged 15 commits into
mainfrom
simplify_config_file_params

Conversation

@rtuck99
Copy link
Copy Markdown
Contributor

@rtuck99 rtuck99 commented Apr 16, 2026

This simplifies setup of various config file configuration points by removing redundant points of configuration, so that it is easier to fix the system tests.

Requires:

This introduces some potentially breaking changes in the parameter model but I don't believe these parameters are actually being used anywhere and are left at their defaults.

Breaking changes:

  • Remove det_dist_to_beam_converter_path and insertion_prefix from WithVisit

Other changes:

  • Remove load_panda_from_yaml() in favour of the identical dodal function
  • Remove TEST_MODE from mx_bluesky.hyperion.parameters.constants and support for HYPERION_TEST_MODE env var
  • Remove unused BEAMLINE and INSERTION_PREFIX from I03Constants
  • Make DetectorParamConstants.BEAM_XY_LUT_PATH always use the production value instead of depending on TEST_MODE
  • Remove GDA_DOMAIN_PROPERTIES_PATH

Instructions to reviewer on how to test:

  1. Tests pass

Checks for reviewer

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

@rtuck99 rtuck99 added the dev experience Changes relating to developer experience label Apr 16, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1699      +/-   ##
==========================================
- Coverage   93.03%   93.02%   -0.02%     
==========================================
  Files         165      164       -1     
  Lines        8928     8912      -16     
==========================================
- Hits         8306     8290      -16     
  Misses        622      622              
Components Coverage Δ
i24 SSX 77.15% <ø> (ø)
hyperion 98.73% <100.00%> (-0.01%) ⬇️
other 98.16% <100.00%> (-0.01%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rtuck99 rtuck99 marked this pull request as ready for review April 16, 2026 15:48
@rtuck99 rtuck99 requested a review from a team as a code owner April 16, 2026 15:48
@rtuck99 rtuck99 mentioned this pull request Apr 16, 2026
1 task
@rtuck99 rtuck99 requested a review from noemifrisina April 16, 2026 16:33
@rtuck99 rtuck99 force-pushed the configure_config_server branch from abea743 to 152627f Compare April 28, 2026 14:14
@rtuck99 rtuck99 force-pushed the simplify_config_file_params branch 2 times, most recently from d44597a to 2b017ab Compare April 28, 2026 14:44
Base automatically changed from configure_config_server to main May 7, 2026 15:54
Copy link
Copy Markdown
Contributor

@jacob720 jacob720 left a comment

Choose a reason for hiding this comment

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

Looks good, just a question

log_debug("nexgen logger added to nexus logger")


def create_config_client() -> ConfigClient:
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.

Do we need this because callbacks run in a seperate process and we can't just use get_config_client from dodal?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, in the callback process, we don't have any devices or fixtures as the beamline module is not loaded, so we need some way to initialise the config client.

@rtuck99 rtuck99 enabled auto-merge (squash) May 15, 2026 11:59
@rtuck99 rtuck99 merged commit 816dc11 into main May 15, 2026
25 of 27 checks passed
@rtuck99 rtuck99 deleted the simplify_config_file_params branch May 15, 2026 12:10
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