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

DM-27171: Speed up gen3 ingest tests #315

Merged
merged 5 commits into from Oct 17, 2020
Merged

DM-27171: Speed up gen3 ingest tests #315

merged 5 commits into from Oct 17, 2020

Conversation

timj
Copy link
Member

@timj timj commented Oct 15, 2020

  • Do not read complete datasets for every transfer mode.
  • Share a butler between tests (so you don't need to keep registering the instrument)

@timj timj requested a review from parejkoj October 16, 2020 15:49
Copy link
Collaborator

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

One question, and two suggestions.

python/lsst/obs/base/ingest_tests.py Outdated Show resolved Hide resolved
python/lsst/obs/base/ingest_tests.py Show resolved Hide resolved
python/lsst/obs/base/ingest_tests.py Outdated Show resolved Hide resolved
We do not need to read the same raws in every ingest check.
We also do not need to read every raw dataset that was ingested.
Read the first raw completely but for subsequent raws
just read some metadata to demonstrate that the datastore
can read them.

Changing this can make significant improvements to test
runtimes.
It doesn't depend on any of the loop variables.
Previously the in place code was never triggering and it
was picking up the original file. Now explicitly override
the file being ingested and check that the URI matches our
expectations.
Register instrument takes a while for some instruments
and it always does the same thing and can be reused for
each test.
@timj timj merged commit b502cbb into master Oct 17, 2020
@timj timj deleted the tickets/DM-27171 branch October 17, 2020 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants