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

633 system tests on k8s #793

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

633 system tests on k8s #793

wants to merge 20 commits into from

Conversation

rtuck99
Copy link
Contributor

@rtuck99 rtuck99 commented Feb 3, 2025

This addresses

The changes here mainly consist of changes to the unit tests to allow the ISPyB endpoint to be configured via the ISPYB_CONFIG_PATH during tests, which was previously overridden.

Also there are changes to allow sample ID, visit and suchlike to be configured as an interim so that it is still possible to run the system tests individually locally against the ispyb_hyperion_dev.cfg database.

The actual system test infrastructure can be found in the associated GitLab merge request

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.91%. Comparing base (11c8a31) to head (b02c969).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #793   +/-   ##
=======================================
  Coverage   86.90%   86.91%           
=======================================
  Files         102      102           
  Lines        6956     6960    +4     
=======================================
+ Hits         6045     6049    +4     
  Misses        911      911           
Components Coverage Δ
i24 SSX 72.84% <ø> (ø)
hyperion 96.27% <ø> (ø)
other 96.62% <100.00%> (+<0.01%) ⬆️

@rtuck99 rtuck99 marked this pull request as ready for review February 4, 2025 11:32
@rtuck99 rtuck99 force-pushed the 633_system_tests_on_k8s branch from f7e9978 to 6ed7f61 Compare February 4, 2025 16:39
@rtuck99 rtuck99 force-pushed the 633_system_tests_on_k8s branch from 6ed7f61 to b02c969 Compare February 6, 2025 11:30
@@ -165,7 +166,7 @@ legacy_tox_ini = """
[tox]
skipsdist=True

[testenv:{pre-commit,type-checking,tests,docs}]
[testenv:{pre-commit,type-checking,tests,docs,systemtests}]

Choose a reason for hiding this comment

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

Nit: We've been calling it system-test in other places, not really bothered but would be nice to be consistent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, dashes have a special meaning within tox:

https://tox.wiki/en/latest/user_guide.html

Test environment names can consist of alphanumeric characters and dashes; for example: py311-django42. The name will be split on dashes into multiple factors, meaning py311-django42 will be split into two factors: py311 and django42.

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