pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[improve][ci] Skip unnecessary tests when there are only cpp/python related changes

Open RobertIndie opened this issue 3 years ago • 0 comments

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

image

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)

RobertIndie avatar Aug 08 '22 09:08 RobertIndie