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

feat: use generics for config-loader and re-use for int test #165

Open
wants to merge 37 commits into
base: development
Choose a base branch
from

Conversation

michaelfedell
Copy link
Contributor

Want to load the config struct for integration tests in the same way as we do for the API (load from json file and then override based on PIXLISE_CONFIG_* environment variables). To do this, I refactored config loader functions to use generics; had to just use T any types :/

Then changed the integration tests to use a single configPath flag instead of a big set of os args; config-loader tests still passed though I've not yet tried building and running the actual integration tests

pnemere and others added 30 commits April 20, 2023 13:33
Merging v3 golang package namespace change to match deployed version, so users of packages can work
Releasing diffraction detector which saves detector field. Also releasing permissions standardisation and documentation updates
…ch the dataset ID, will need to think about this for future imports. Also clearer printing of what was downloaded as importer runs
…y to switch between pseudo-intensity definitions based on something. Don't know what that is yet, reached out via email to releavant people
Added a hack to allow this G090 dataset to import, the RTT doesnt mat…
Make detector config GET work on public permission
…for sol847, in which case we load the new pseudo-intensity file
Added importer change to check if dataset ID is greater than the one …
Bug fixes, pseudo-intensity standards change
Fix test affected by importer logging output change
buggtb and others added 7 commits August 3, 2023 13:30
…ts, it imports the one with lowes

t SCLK and logs this. This is a workaround for GDS delivering us badly named files as happened recently
Modified importer so in cases where it finds more files than it expec…
Removed cloudwatch logging from API and quant job runs
Want to load the config struct for integration tests in the same way as
we do for the API (load from json file and then override based on
PIXLISE_CONFIG_* environment variables). To do this, I refactored config
loader functions to use generics; had to just use `T any` types :/

Then changed the integration tests to use a single configPath flag
instead of a big set of os args; config-loader tests still passed though
I've not yet tried building and running the actual integration tests
@michaelfedell michaelfedell self-assigned this Aug 30, 2023
@michaelfedell michaelfedell marked this pull request as ready for review September 13, 2023 13:41
Copy link
Contributor

@RyanStonebraker RyanStonebraker left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants