Skip to content

Commit 76f93bb

Browse files
authored
pipeline(tidb): check more files for cacheing (#4338)
See https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftidb%2Fpull_lightning_integration_test/detail/pull_lightning_integration_test/16624/pipeline/ I checked recent three failed run, all of them lacks several files. I don't know why they are not included in the cache, so this PR extend the files to check. Failed ``` + ls -alh . total 1.5G drwxr-sr-x. 3 jenkins jenkins 4.0K Mar 11 16:17 . drwxr-sr-x. 18 jenkins jenkins 4.0K Mar 11 16:16 .. -rwxr-xr-x. 1 1001 1001 32M Feb 14 22:27 fake-gcs-server -rwxr-xr-x. 1 root jenkins 16M Mar 11 16:17 kes -rwxr-xr-x. 1 root jenkins 19M Mar 11 16:17 mc -rwxr-xr-x. 1 root jenkins 50M Mar 11 16:17 minio -rwxr-xr-x. 1 root root 146M Mar 10 15:16 pd-server -rwxr-xr-x. 1 jenkins jenkins 257M Mar 11 15:45 tidb-lightning-ctl.test -rwxr-xr-x. 1 jenkins jenkins 262M Mar 11 15:45 tidb-lightning.test -rwxr-xr-x. 1 jenkins jenkins 268M Mar 11 15:40 tidb-server lrwxrwxrwx. 1 jenkins jenkins 19 Mar 11 16:17 tiflash -> tiflash_dir/tiflash drwxr-xr-x. 2 root root 4.0K Mar 11 16:17 tiflash_dir -rwxr-xr-x. 1 root root 392M Mar 11 05:40 tikv-server ``` Succeed ``` + ls -alh . total 1.5G drwxr-sr-x. 3 jenkins jenkins 4.0K Mar 11 16:21 . drwxr-sr-x. 18 jenkins jenkins 4.0K Mar 11 16:19 .. -rwxr-xr-x. 1 1001 1001 32M Feb 14 22:27 fake-gcs-server -rwxr-xr-x. 1 jenkins jenkins 7.8M Mar 11 16:19 fake-oauth -rwxr-xr-x. 1 root jenkins 16M Mar 11 16:21 kes -rwxr-xr-x. 1 root jenkins 19M Mar 11 16:20 mc -rwxr-xr-x. 1 root jenkins 50M Mar 11 16:20 minio -rwxr-xr-x. 1 jenkins jenkins 14M Mar 11 16:19 parquet_gen -rwxr-xr-x. 1 root root 146M Mar 10 15:16 pd-server -rwxr-xr-x. 1 jenkins jenkins 258M Mar 11 16:19 tidb-lightning-ctl.test -rwxr-xr-x. 1 jenkins jenkins 262M Mar 11 16:18 tidb-lightning.test -rwxr-xr-x. 1 jenkins jenkins 269M Mar 11 16:13 tidb-server lrwxrwxrwx. 1 jenkins jenkins 19 Mar 11 16:21 tiflash -> tiflash_dir/tiflash drwxr-xr-x. 2 root root 4.0K Mar 11 16:20 tiflash_dir -rwxr-xr-x. 1 root root 392M Mar 11 05:40 tikv-server ``` Signed-off-by: Ruihao Chen <joechenrh@gmail.com>
1 parent c881355 commit 76f93bb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pipelines/pingcap/tidb/latest/pull_lightning_integration_test.groovy

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ pipeline {
4646
cache(path: "./bin", includes: 'tidb-server', key: prow.getCacheKey('binary', REFS, 'tidb-server')) {
4747
sh label: 'tidb-server', script: 'ls bin/tidb-server || make server'
4848
}
49-
cache(path: "./bin", includes: '**/*', key: prow.getCacheKey('binary', REFS, 'tidb-lightning.test')) {
50-
sh label: 'tidb-lightning.test', script: ' [ -f ./bin/tidb-lightning-ctl.test ] || make build_for_lightning_integration_test'
49+
cache(path: "./bin", includes: includes: '**/*', key: prow.getCacheKey('binary', REFS, 'tidb-lightning.test')) {
50+
sh label: 'tidb-lightning.test', script: '''
51+
[ -f ./bin/tidb-lightning.test ] &&
52+
[ -f ./bin/tidb-lightning-ctl.test ] &&
53+
[ -f ./bin/parquet_gen ] &&
54+
[ -f ./bin/fake-oauth ] ||
55+
make build_for_lightning_integration_test
56+
'''
5157
}
5258
dir("bin") {
5359
container("utils") {

0 commit comments

Comments
 (0)