adoroszlai opened a new pull request #2479:
URL: https://github.com/apache/ozone/pull/2479
## What changes were proposed in this pull request?
Introduce a new job (`build-info`) in the CI workflow to determine which
other jobs should be run. The goal is to skip checks which are not applicable
to a specific change.
1. All tests are run for push and scheduled builds (no change here).
2. For PRs the incoming (merge) commit's list of changed files is tested
against various patterns:
* README changes trigger no tests at all
* _rat_ is run for all other changes
* _docs_ is run for changes in `hadoop-hdds/docs`
* _author_ is triggered for Java changes
* _checkstyle_ and _findbugs_ are also triggered for POM changes
* _dependency_ is only triggered by POM changes
* _acceptance_, _integration_ and _kubernetes_ tests are triggered by
changes in the corresponding test files
3. If any uncategorized file is changed (e.g. any non-test Java file), all
tests are triggered.
4. Trigger all tests if specific label (_full tests needed_) is present in
the PR. If it is added later, a new empty commit is needed to re-trigger CI.
5. Skip all tests for draft PR, same as previously, but without hard-coding
in workflow.
Big thanks to Apache Airflow for the libraries and large chunks of the
script.
https://issues.apache.org/jira/browse/HDDS-5000
## How was this patch tested?
Created test pull requests in my own fork:
Main one with various incremental changes to verify the tests being
triggered:
https://github.com/adoroszlai/hadoop-ozone/pull/22
One with _full tests needed_ label, triggers all tests:
https://github.com/adoroszlai/hadoop-ozone/pull/23
Robot test change (minor improvement over the main PR):
https://github.com/adoroszlai/hadoop-ozone/pull/24
Regular CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/1082718710
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]