Skip to content

Commit a687890

Browse files
committed
Ignore saving cache error
1 parent fb245fc commit a687890

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,17 @@ jobs:
4141
else
4242
echo "Tarantool version is $T, as expected"
4343
fi
44+
45+
test-concurrency:
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
runs-on: [ubuntu-20.04, ubuntu-20.04, ubuntu-20.04]
50+
runs-on: ${{ matrix.runs-on }}
51+
steps:
52+
- uses: actions/checkout@v2
53+
- name: Setup Tarantool
54+
uses: ./
55+
with:
56+
tarantool-version: '1.10'
57+
cache-key: test-concurrency-${{ github.run_id }}

dist/main/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3472,8 +3472,14 @@ async function run_linux() {
34723472
await io.cp(f, dest);
34733473
}
34743474
}
3475+
// try {
34753476
await cache.saveCache([cache_dir], cache_key);
34763477
core.info(`Cache saved with key: ${cache_key}`);
3478+
// } catch (error) {
3479+
// core.info(`Saving cache failed, but it's not crucial`)
3480+
// core.info(`Cache key was: ${cache_key}`)
3481+
// core.info(error.message)
3482+
// }
34773483
await io.rmRF(cache_dir);
34783484
}
34793485
catch (error) {

src/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,15 @@ async function run_linux(): Promise<void> {
107107
}
108108
}
109109

110+
// try {
110111
await cache.saveCache([cache_dir], cache_key)
111112
core.info(`Cache saved with key: ${cache_key}`)
113+
// } catch (error) {
114+
// core.info(`Saving cache failed, but it's not crucial`)
115+
// core.info(`Cache key was: ${cache_key}`)
116+
// core.info(error.message)
117+
// }
118+
112119
await io.rmRF(cache_dir)
113120
} catch (error) {
114121
core.setFailed(error.message)

0 commit comments

Comments
 (0)