Skip to content
Success

Changes

Summary

  1. fix(tidb): lock checkout cache for TiDB GCP Jenkins jobs (#4582) (commit: 1c82d40) (details)
Commit 1c82d40bf4b28f74c9e0d37f4c9e9e1ef0b821e9 by noreply
fix(tidb): lock checkout cache for TiDB GCP Jenkins jobs (#4582)

### What changed

Use `prow.checkoutRefsWithCacheLock` for TiDB GCP Jenkins pipeline
checkout caches in:

- `pingcap/tidb/latest/pull_integration_e2e_test_next_gen`
- `pingcap/tidb/release-8.5/*` GCP Jenkins jobs

The change keeps the existing checkout parameters, including
`withSubmodule = true` where it was already used.

### Why

Some GCP Jenkins jobs can fail while restoring/updating the Jenkins
pipeline S3 cache with:

`AmazonS3Exception: A conflicting conditional operation is currently in
progress against this resource`

This happens on shared git checkout cache keys when multiple builds
access the same cache concurrently. `prow.checkoutRefsWithCacheLock`
already wraps the git cache with a Jenkins lock, matching the pattern
used by most latest TiDB jobs.

---------

Signed-off-by: lyb <yebin.li@pingcap.com>
(commit: 1c82d40)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_jdbc_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_common_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_copr_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_python_orm_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_e2e_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_lightning_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/latest/pull_integration_e2e_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_unit_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_tidb_tools_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_check2.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_nodejs_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_e2e_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_build.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_common_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_mysql_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_unit_test_ddlv1.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_check.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_ddl_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_mysql_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_integration_br_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_mysql_client_test.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/release-8.5/pull_sqllogic_test.groovy (diff)