Description
Problem
Luigi's test suites are difficult to get setup on a new local machine and the documentation is not sufficient to get up and running quickly.
While setting up Luigi on a new computer to aid in PR review (in order to run tests locally), I discovered that documentation is lacking on a recommended way to run the tox tests on a user's machine. After installing a desired python version and tox, I was unable to get all tests to run and complete successfully.
Currently, all the local development documentation is limited to the CONTRIBUTING.rst
document. However, the content there is insufficient to getting up and running in 2024. (At least on an Apple Silicon Mac).
Resolution Proposal
I intend to use this Issue to track and discuss a route forward to improve testing the luigi project.
Goals include:
- straightforward setup for developer
- deterministic test execution, regardless of host compute environment
- alignment between local test execution and CI test execution
Additional aspirations which may be tackled separately include:
- ensure all tests are run through CI (a few tox test suites are currently ignored)
- (
cdh
,dropbox
,gcloud
,hdp
, andvisualiser
are not run by CI)
- (
- improve speed of test execution
- cleanup verbosity of test execution logs (lots of warnings and other console output)