Kaggle / kagglehub

Python library to access Kaggle resources
Apache License 2.0
49 stars 9 forks source link

[Tool] Migrate tests to build in hatch test. #153

Closed dolaameng closed 3 weeks ago

dolaameng commented 3 weeks ago

Migrate from "hatch run test" script to "hatch test" builtin. Also migrate kagglehub off python 3.8- support.

FIX=b/353580550

Tested

neshdev commented 3 weeks ago

Do you mean these scripts? https://screenshot.googleplex.com/RDAsjfEjQ8SoZq2

dolaameng commented 3 weeks ago

Do you mean these scripts? https://screenshot.googleplex.com/RDAsjfEjQ8SoZq2

Yes.

dolaameng commented 3 weeks ago

Thanks for working on this!

Can you also make sure to update our cicd pipeline to use the new commands:

https://github.com/Kaggle/kagglehub/blob/c0de979194b2e9a623644cf7021c47953ecc0ff6/tools/cicd/cloudbuild.yaml#L35-L36

And for the integration tests:

https://github.com/Kaggle/kagglehub/blob/c0de979194b2e9a623644cf7021c47953ecc0ff6/tools/cicd/integration-tests.yaml#L46

Sorry I think the same challenge here. If we still use the docker image built for python 3.7, we are forced to use an early hatch version, which doesn't support "builtin test".

dolaameng commented 3 weeks ago

@rosbo We have migrated the hatch support to Python 3.9+ and the implementation is much more straightforward. Now both hatch and docker-hatch use the builtin test functionality. Please have a final look. Thank you!