[improve][ci] Skip unnecessary tests when there are only cpp/python related changes
Motivation
Currently, Java tests consume major CI resources. And it is not necessary to run all the tests for changes that are only on the C++ or python parts of the code. This PR skips unnecessary tests when there are only cpp/python changes. This can greatly increase the efficiency of CI when testing the C++/Python part of the code.
Modifications
- Skip java unit tests, integration tests(the part only for java codes), go function tests when there are only cpp/python changes.
- The system test is not skipped because there are some python function codes in that test.
Verifying this change
I have created a test PR in a separate repo to verify this change: https://github.com/RobertIndie/pulsar-ci-test/pull/1
It can skip many unnecessary Java tests and reduce the flaky of CI testing.
Documentation
Check the box below or label this PR directly.
Need to update docs?
-
[ ]
doc-required(Your PR needs to update docs and you will update later) -
[x]
doc-not-needed(Please explain why) -
[ ]
doc(Your PR contains doc changes) -
[ ]
doc-complete(Docs have been already added)