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

Speed up SDV-Enterprise integration tests #2331

Merged
merged 7 commits into from
Jan 7, 2025
Merged

Speed up SDV-Enterprise integration tests #2331

merged 7 commits into from
Jan 7, 2025

Conversation

fealho
Copy link
Member

@fealho fealho commented Jan 6, 2025

@fealho fealho changed the title Xdist Speed up SDV-Enterprise integration tests Jan 6, 2025
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.57%. Comparing base (f63ec91) to head (e6e179b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2331      +/-   ##
==========================================
- Coverage   98.58%   98.57%   -0.02%     
==========================================
  Files          58       58              
  Lines        6085     6086       +1     
==========================================
  Hits         5999     5999              
- Misses         86       87       +1     
Flag Coverage Δ
integration 82.13% <100.00%> (+<0.01%) ⬆️
unit 97.42% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fealho fealho marked this pull request as ready for review January 6, 2025 18:02
Comment on lines 127 to 128
@lru_cache()
def _download_demo(modality, dataset_name, output_folder_name=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of caching here, can we make a download_test_demo fixture in our test utils and just cache that one?

Comment on lines +23 to +25
tmp_path = tempfile.mktemp(dir=store_path, suffix='.yml')
shutil.copyfile(config_path, tmp_path)
shutil.move(tmp_path, store_path / 'sdv_logger_config.yml')
Copy link
Member

Choose a reason for hiding this comment

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

This change is required because multiple workers can access the logger at the same time ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this function can be called simultaneously by multiple workers, so while one of them was copying config_path into store_path, another one was resetting the store_path/config_path variables.

@fealho fealho requested a review from amontanez24 January 7, 2025 18:19
@fealho fealho merged commit 974da0e into main Jan 7, 2025
41 checks passed
@fealho fealho deleted the xdist branch January 7, 2025 23:27
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.

3 participants