Skip to content

Commit 96f93e2

Browse files
committed
Remove TiUP steps from TiDB test jobs
TiDB tests now use Docker images exclusively, so TiUP steps are no longer needed.
1 parent 293ba8c commit 96f93e2

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -220,59 +220,6 @@ jobs:
220220
echo "version=${VERSION}" >> $GITHUB_OUTPUT
221221
echo "TiDB version for this test: ${VERSION}"
222222
223-
- name: Cache TiUP binary (shared across all TiDB tests)
224-
id: cache-tiup-binary-test
225-
if: contains(matrix.target, 'tidb')
226-
uses: actions/cache@v4
227-
with:
228-
path: |
229-
~/.tiup/bin
230-
~/.tiup/manifests
231-
# Cache TiUP binary separately (small, ~20MB) - shared by all TiDB tests
232-
key: ${{ runner.os }}-tiup-binary-${{ hashFiles('.github/workflows/main.yml') }}
233-
restore-keys: |
234-
${{ runner.os }}-tiup-binary-
235-
236-
- name: Cache TiDB components for this specific version
237-
id: cache-tidb-version
238-
if: contains(matrix.target, 'tidb')
239-
uses: actions/cache@v4
240-
with:
241-
path: |
242-
~/.tiup/components
243-
# Cache components directory per version (~700-800MB per version instead of 4.5GB total)
244-
# Each test job caches only the version it needs
245-
key: ${{ runner.os }}-tidb-${{ steps.extract-tidb-version.outputs.version }}-${{ hashFiles('.github/workflows/main.yml') }}
246-
restore-keys: |
247-
${{ runner.os }}-tidb-${{ steps.extract-tidb-version.outputs.version }}-
248-
249-
- name: Install TiUP (if not cached)
250-
if: contains(matrix.target, 'tidb')
251-
run: |
252-
if ! command -v tiup &> /dev/null; then
253-
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
254-
echo "$HOME/.tiup/bin" >> $GITHUB_PATH
255-
else
256-
echo "$HOME/.tiup/bin" >> $GITHUB_PATH
257-
fi
258-
259-
- name: Update TiUP and playground component
260-
if: contains(matrix.target, 'tidb')
261-
run: |
262-
export PATH=$HOME/.tiup/bin:$PATH
263-
tiup update --self || true
264-
tiup update playground || true
265-
266-
- name: Install TiDB components for this version (if not cached)
267-
if: contains(matrix.target, 'tidb') && steps.cache-tidb-version.outputs.cache-hit != 'true'
268-
run: |
269-
export PATH=$HOME/.tiup/bin:$PATH
270-
VERSION="${{ steps.extract-tidb-version.outputs.version }}"
271-
echo "Installing TiDB components for v${VERSION} (cache miss)..."
272-
tiup install tidb:v${VERSION} || true
273-
tiup install pd:v${VERSION} || true
274-
tiup install tikv:v${VERSION} || true
275-
echo "TiDB v${VERSION} components installed and will be cached for next run"
276223

277224
- name: Run tests {{ matrix.target }}
278225
env:

0 commit comments

Comments
 (0)