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

Create children in generic worker #677

Merged
merged 6 commits into from
Jan 16, 2023
Merged

Conversation

severo
Copy link
Collaborator

@severo severo commented Jan 13, 2023

Extracting (from #670) the logic to create the children jobs

@codecov-commenter
Copy link

Codecov Report

Base: 89.87% // Head: 88.44% // Decreases project coverage by -1.42% ⚠️

Coverage data is based on head (5c962d4) compared to base (d0ce1ac).
Patch coverage: 98.14% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #677      +/-   ##
==========================================
- Coverage   89.87%   88.44%   -1.43%     
==========================================
  Files          17       19       +2     
  Lines         563     1333     +770     
==========================================
+ Hits          506     1179     +673     
- Misses         57      154      +97     
Flag Coverage Δ
libs_libcommon 88.44% <98.14%> (?)
services_api ?

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

Impacted Files Coverage Δ
libs/libcommon/src/libcommon/worker.py 81.16% <94.44%> (ø)
libs/libcommon/src/libcommon/simple_cache.py 100.00% <100.00%> (ø)
libs/libcommon/tests/test_simple_cache.py 100.00% <100.00%> (ø)
libs/libcommon/tests/test_worker.py 100.00% <100.00%> (ø)
services/api/src/api/utils.py
services/api/tests/conftest.py
services/api/src/api/config.py
services/api/src/api/routes/valid.py
services/api/tests/test_prometheus.py
services/api/tests/utils.py
... and 30 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@severo
Copy link
Collaborator Author

severo commented Jan 16, 2023

I searched the other apps code; it seems that datasets-server is the only app to use this token in the CI. So: no other impacted apps.

it reads the remote parquet files (from the Hub) with hffs and pyarrow.
using libcommon 0.6.2, we implement get_new_splits to be able to create
the children jobs. Also: ensure the type of the config and split (str)
in /splits
@severo severo force-pushed the create-children-in-generic-worker branch from 5c962d4 to d7afa59 Compare January 16, 2023 12:46
@severo severo merged commit 30b508c into main Jan 16, 2023
@severo severo deleted the create-children-in-generic-worker branch January 16, 2023 12:53
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