-
Notifications
You must be signed in to change notification settings - Fork 51
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
Integration test for run_dicom_archive_loader.py
#1203
base: main
Are you sure you want to change the base?
Conversation
5586936
to
857053b
Compare
857053b
to
b73ecff
Compare
63dc912
to
25bd52d
Compare
f0c2278
to
dd3886c
Compare
run_dicom_archive_loader.py
Still kind of barebones but better than nothing for now IMO. |
.github/workflows/integration.yml
Outdated
BUCKET_ACCESS_KEY: lorisadmin-ro | ||
BUCKET_SECRET_KEY: Tn=qP3LupmXnMuc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maximemulder could this be secrets variables? I know this is for read-only data but still, not ideal to get credentials in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.
For variables:
https://github.com/orgs/community/discussions/44322
Variables are not passed to workflows that are triggered by a pull request from a fork.
It seems we cannot pass variable or secrets in pull requests triggered from a fork (i.e., all our PRs). I guess our choices are either:
- Make the variables secret, but the integration tests will need to be triggered manually.
- Hard-code the variables in the code (which makes them public), and the tests can be triggered automatically.
4535a88
to
ac4dcf7
Compare
2ab4bd1
to
0444bdb
Compare
0444bdb
to
fdd105f
Compare
There is now a test to check that a file has indeed been inserted in the database ! |
This PR mounts the S3 bucket in CI and adds an integration test for
run_dicom_archive_loader.py
!