Skip to content
Success

Changes

Summary

  1. ci: add replay-jenkins-build script and presubmit job (#4194) (commit: d9712db) (details)
Commit d9712db6adac8c9a18991322e8999433c37b7f50 by noreply
ci: add replay-jenkins-build script and presubmit job (#4194)

This pull request improves the documentation and CI workflow for Jenkins
pipeline changes, and refactors the Prow job configuration to support
better pre-PR validation and replay testing. The main focus is to ensure
that changes to `pipelines/**/*.groovy` files are thoroughly validated
both locally and in presubmit jobs, and to clarify the process for
contributors. Additionally, the Prow job YAML files are refactored for
maintainability.

**Documentation enhancements:**

* Added a new section in `docs/contributing.md` recommending local
static and replay checks for Jenkins pipeline changes, with command
examples and links to further documentation.
* Expanded `docs/guides/CI.md` with detailed instructions on pre-PR
verification, including static validation, replay testing, and how to
use Prow jobs for Jenkins pipeline changes.

**CI and Prow job improvements:**

* Added a new optional presubmit job `pull-replay-jenkins-pipelines` in
`prow-jobs/pingcap-qe/ci/presubmits.yaml` to automate replay validation
of changed pipeline files, including job configuration, environment
variables, and usage of secrets.
* Refactored Prow job YAML to use a global `labels` anchor for
consistency and maintainability, updating all job definitions
accordingly.
* Minor restructuring in `prow-jobs/tikv/pd/common-presubmits.yaml` to
clarify section separation and maintain consistency.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
(commit: d9712db)
The file was modifiedprow-jobs/pingcap-qe/ci/presubmits.yaml (diff)
The file was modifieddocs/guides/CI.md (diff)
The file was modifiedprow-jobs/tikv/pd/common-presubmits.yaml (diff)
The file was modifieddocs/contributing.md (diff)
The file was added.ci/replay-jenkins-build.sh