Skip to content
Success

Changes

Summary

  1. fix(tiflash): handle ut-build cache restore in unit test prepare (#4345) (commit: ac4e61e) (details)
Commit ac4e61ec2c23494dc1d51d1bd849d45c67d8dfc1 by noreply
fix(tiflash): handle ut-build cache restore in unit test prepare (#4345)

## Summary
- make `Unit Test Prepare` resilient when `build_cache_ready` was not
initialized before cache restore
- detect restored ut-build content by checking `tests/.build/tiflash`
inside the cache block
- use `mkdir -p tests/.build` to avoid `File exists` failure

## Why
In pull_unit_test #5456, `Unit Test Prepare` failed with `mkdir: cannot
create directory 'tests/.build': File exists` after cache restore. This
change makes the step idempotent and tolerant to cache state mismatches.

## Replay test

https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftiflash%2Fpull_unit_test/detail/pull_unit_test/5461/pipeline/
(commit: ac4e61e)
The file was modifiedpipelines/pingcap/tiflash/latest/pull_unit_test.groovy (diff)