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

CLI command to export radiology; fix system tests #227

Merged
merged 29 commits into from
Jan 26, 2024

Conversation

jeremyestein
Copy link
Contributor

@jeremyestein jeremyestein commented Jan 17, 2024

TODO:

  • revert NOMERGE change

@jeremyestein jeremyestein changed the title CLI command to export radiology and fix system tests CLI command to export radiology and fix system tests [force-system-test] Jan 17, 2024
jeremyestein and others added 24 commits January 17, 2024 15:53
path explicitly because it's different depending on where it's running
from, so there is no default that makes sense.
any change in the source tree forced a rebuild.
test. Radiology parquet is still empty though.
* Slim down ehr tests

Reduce use of docker containers
and run tests in local pytest

* Make sure output file is not owned by root

* Awkward workaround for running containers as current user, so that any
files created on mounts have the right ownership, and because running as
root is bad...

* Abandon attempt to run container as non-root; this doesn't work and
needs a wider fix and further consideration anyway. Just try chowning the file.

* chowning doesn't work either (breaks various tests). Just delete it from within the container
that created it and we'll have to come back to this.

* Disable check for now as we know it fails

* Can't use container after it's been stopped

* wrong dir

* Correct container name

* Don't assume "exports" dir is part of the path, just put the dir
structure exactly where we're told.

* Wait for healthy containers in better way

* Rearrange export directory structure so it makes more sense, and there's
only one symlink, which is only created by the CLI, not EHR.

* Any FileNotFoundError will do

* CLI test was asserting the wrong dir was a symlink. Defensively sort the
results of `glob`; the order is not guaranteed.

* Minor path error

* Can't check for symlink in EHR-only test - radiology export no longer creates
it

* Update pixl_ehr/tests/test_processing.py

* Don't blanket ignore security warning

* doc error

---------

Co-authored-by: Jeremy Stein <j.stein@ucl.ac.uk>
@jeremyestein jeremyestein marked this pull request as ready for review January 25, 2024 17:35
@jeremyestein jeremyestein changed the title CLI command to export radiology and fix system tests [force-system-test] CLI command to export radiology and fix system tests Jan 25, 2024
@jeremyestein jeremyestein changed the title CLI command to export radiology and fix system tests CLI command to export radiolog; fix system tests Jan 25, 2024
@jeremyestein jeremyestein changed the title CLI command to export radiolog; fix system tests CLI command to export radiology; fix system tests Jan 25, 2024
Copy link
Contributor

@stefpiatek stefpiatek 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, most of my suggestions are fixing up existing code. Happy for you to merge once they're addressed

@jeremyestein jeremyestein merged commit 67ff1fd into main Jan 26, 2024
8 checks passed
@jeremyestein jeremyestein deleted the jeremy/issue-221-cli branch January 26, 2024 12:59
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