Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix selective checks when only pyproject.toml changes (apache#43088)
In case only pyproject.toml changes we should automatically build CI image as we need to run full set of static checks - including mypy and other tools. This change triggers ci-image for such case and it also fixes a subtle bug where "pyproject_toml_changed" was always set to true (but nothing depended on it, because we are checking if build dependencies changed in pyproject.toml to trigger full build as most of the build logic and dependencies is in hatch_build.py The change first now attempts to see if the pyprject.toml changed at all (i.e. if pyprooject.toml is in the list of files that are changed in the commit) and only then reads the content of old and new version of pyproject.toml to compare them. This will make selective checks a bit faster as it won't run two git commands when pyproject.toml has not changed. Also tests_common are now added to "all sources" group which should trigger tests when only tests_common change.
- Loading branch information