Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MX beamlines to use new device factory - Part 1 #735

Merged
merged 9 commits into from
Jan 29, 2025

Conversation

rtuck99
Copy link
Contributor

@rtuck99 rtuck99 commented Jan 7, 2025

This addresses

See also dodal PR

Additionally, this PR also adds unit test duration summary to the end of pytest, this was done because it seems that tests are taking longer, see related issue that is not addressed here

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.01%. Comparing base (00f759a) to head (28f6ac7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #735   +/-   ##
=======================================
  Coverage   87.01%   87.01%           
=======================================
  Files         101      101           
  Lines        6968     6970    +2     
=======================================
+ Hits         6063     6065    +2     
  Misses        905      905           
Components Coverage Δ
i24 SSX 72.84% <ø> (ø)
hyperion 96.55% <100.00%> (+<0.01%) ⬆️
other 96.58% <ø> (ø)

@rtuck99
Copy link
Contributor Author

rtuck99 commented Jan 8, 2025

Need to update beamline for

@olliesilvester olliesilvester changed the title Dodal 846 update mx beamlines to use device factory Update MX beamlines to use new device factory Jan 8, 2025
@rtuck99 rtuck99 changed the title Update MX beamlines to use new device factory Update MX beamlines to use new device factory - Part 1 Jan 9, 2025
@rtuck99 rtuck99 force-pushed the dodal_846_update_mx_beamlines_to_use_device_factory branch 2 times, most recently from b1b8a49 to a16bb7f Compare January 13, 2025 13:46
Copy link
Contributor

@olliesilvester olliesilvester 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! Feel free to merge once the dodal change is ready



@pytest.fixture(scope="function", autouse=True)
def clear_device_factory_caches_after_every_test(i03_device_factories):
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think something similar would be useful in dodal?

Copy link
Contributor Author

@rtuck99 rtuck99 Jan 28, 2025

Choose a reason for hiding this comment

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

Seems like dodal follows a different pattern for unit test fixtures - rather than have global fixtures using device_instantiation seems to mostly be one-off constructions of devices, thus far it doesn't seem to have been necessary.
Ignore that - I forgot that I did eventually add it in dodal as well

@rtuck99 rtuck99 force-pushed the dodal_846_update_mx_beamlines_to_use_device_factory branch 2 times, most recently from 33b17f6 to 68bb897 Compare January 28, 2025 17:45
@rtuck99 rtuck99 force-pushed the dodal_846_update_mx_beamlines_to_use_device_factory branch from 68bb897 to 28f6ac7 Compare January 29, 2025 15:19
@rtuck99 rtuck99 merged commit 080e53e into main Jan 29, 2025
22 checks passed
@rtuck99 rtuck99 deleted the dodal_846_update_mx_beamlines_to_use_device_factory branch January 29, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants