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

Update s3 tests to use moto_server #7144

Merged
merged 6 commits into from
Jan 20, 2021

Conversation

ayushdg
Copy link
Member

@ayushdg ayushdg commented Jan 14, 2021

This PR updates s3 tests to use moto_server instead of going via a moto mock_s3 context. This enables cleaner s3 testing with s3fs>=0.5 which incorporates aiobotocore for s3 connections.

  • The pytests starts up a moto-server for each worker running tests.
  • Ports used: 5000, 5550 - 5550+ (n_pytest_workers-1)

Updated integration repo with requirements: rapidsai/integration#207

@kkraus14 kkraus14 added 2 - In Progress Currently a work in progress bug Something isn't working Python Affects Python cuDF API. tests Unit testing for project non-breaking Non-breaking change labels Jan 14, 2021
@ayushdg
Copy link
Member Author

ayushdg commented Jan 15, 2021

Failing dask-cudf test attributed to changes here: dask/dask#6960 (comment).
Will rerun once fix goes into dask.

@jrbourbeau
Copy link

@rjzamora's fix in dask/dask#7074 has been merged

@ayushdg
Copy link
Member Author

ayushdg commented Jan 15, 2021

rerun tests

@codecov
Copy link

codecov bot commented Jan 15, 2021

Codecov Report

Merging #7144 (6cd73ee) into branch-0.18 (8860baf) will increase coverage by 0.01%.
The diff coverage is 92.10%.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.18    #7144      +/-   ##
===============================================
+ Coverage        82.09%   82.11%   +0.01%     
===============================================
  Files               97       97              
  Lines            16474    16542      +68     
===============================================
+ Hits             13524    13583      +59     
- Misses            2950     2959       +9     
Impacted Files Coverage Δ
python/cudf/cudf/core/column/lists.py 91.66% <ø> (-0.09%) ⬇️
python/cudf/cudf/core/dataframe.py 90.71% <ø> (+<0.01%) ⬆️
python/cudf/cudf/core/column/numerical.py 94.17% <80.00%> (-0.24%) ⬇️
python/cudf/cudf/core/reshape.py 91.00% <81.81%> (-0.04%) ⬇️
python/dask_cudf/dask_cudf/io/tests/test_s3.py 95.83% <94.00%> (ø)
python/cudf/cudf/core/dtypes.py 89.50% <100.00%> (-0.88%) ⬇️
python/cudf/cudf/core/series.py 91.10% <100.00%> (-0.06%) ⬇️
python/cudf/cudf/io/csv.py 90.74% <100.00%> (-2.60%) ⬇️
python/cudf/cudf/io/orc.py 86.39% <0.00%> (-2.02%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0e2cf8...6cd73ee. Read the comment docs.

ci/gpu/build.sh Outdated
# gpuci_conda_retry remove --force rapids-build-env rapids-notebook-env
# gpuci_conda_retry install -y "your-pkg=1.0.0"
gpuci_conda_retry remove --force rapids-build-env rapids-notebook-env
gpuci_conda_retry install -y "s3fs=0.5.2" "boto3" "moto=1.3.14" "httpretty"
Copy link
Member Author

Choose a reason for hiding this comment

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

@kkraus14 Would the next step be to incorporate these changes to https://github.com/rapidsai/integration, revert them here and only merge this PR once the integration is merged?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yup, exactly

@ayushdg ayushdg changed the title [WIP] Update s3 tests to use moto_server Update s3 tests to use moto_server Jan 19, 2021
@ayushdg ayushdg marked this pull request as ready for review January 19, 2021 19:09
@ayushdg ayushdg requested review from a team as code owners January 19, 2021 19:09
@ayushdg ayushdg added the 3 - Ready for Review Ready for review by team label Jan 19, 2021
@galipremsagar galipremsagar removed the 2 - In Progress Currently a work in progress label Jan 19, 2021
@kkraus14 kkraus14 added 5 - Ready to Merge Testing and reviews complete, ready to merge 6 - Okay to Auto-Merge and removed 3 - Ready for Review Ready for review by team 4 - Needs Dask Reviewer labels Jan 20, 2021
@rapids-bot rapids-bot bot merged commit 5855bfa into rapidsai:branch-0.18 Jan 20, 2021
@ayushdg ayushdg deleted the enh-s3-testing-moto-server branch March 12, 2022 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API. tests Unit testing for project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants