Skip to content
Success

Changes

Summary

  1. ci(replay): ignore deleted groovy files in auto-changed mode (#4280) (commit: dba7dbc) (details)
Commit dba7dbc1d3e243c6cdd63735ce77adbbe1a990d4 by noreply
ci(replay): ignore deleted groovy files in auto-changed mode (#4280)

## Summary
- fix `.ci/replay-jenkins-build.sh` auto-changed discovery to exclude
deleted files
- prevent replay presubmit from failing when a pipeline groovy is
intentionally removed in a PR

## Root cause
In `pull-replay-jenkins-pipelines`, the script collected changed files
with `git diff --name-only`, which included deleted paths. Replay then
aborted on:

`ERROR: script file not found:
pipelines/tikv/pd/latest/pull_unit_test.groovy`

## Verification
- reproduced from `pull-replay-jenkins-pipelines` log on PR #4266
- local dry-run with the same base/head range now excludes deleted files
and completes

Ref #4213

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: wuhuizuo <2574558+wuhuizuo@users.noreply.github.com>
(commit: dba7dbc)
The file was modifiedpipelines/tikv/pd/release-6.5/pod-ghpr_build.yaml (diff)
The file was modifiedpipelines/tikv/pd/release-8.1/pod-ghpr_build.yaml (diff)
The file was modified.ci/replay-jenkins-build.sh (diff)
The file was modifiedpipelines/tikv/pd/release-7.1/pod-ghpr_build.yaml (diff)
The file was modifiedpipelines/tikv/pd/release-6.5-fips/ghpr_build.groovy (diff)
The file was modifiedpipelines/tikv/pd/release-7.1/ghpr_build.groovy (diff)
The file was modifiedpipelines/tikv/pd/release-8.1/ghpr_build.groovy (diff)
The file was modifiedpipelines/tikv/pd/release-8.5/pod-ghpr_build.yaml (diff)
The file was modifiedpipelines/tikv/pd/release-7.5/pod-ghpr_build.yaml (diff)
The file was modifiedpipelines/tikv/pd/release-7.5/ghpr_build.groovy (diff)
The file was modifiedpipelines/tikv/pd/release-6.5-fips/pod-ghpr_build.yaml (diff)
The file was modifiedpipelines/tikv/pd/release-9.0-beta/pod-ghpr_build.yaml (diff)
The file was modifiedpipelines/tikv/pd/release-8.5/ghpr_build.groovy (diff)
The file was modifiedpipelines/tikv/pd/release-6.5/ghpr_build.groovy (diff)