ci: retry pushing benchmark data
This commit is contained in:
parent
77e196279c
commit
f6746fb689
1 changed files with 16 additions and 11 deletions
27
.github/workflows/benchmark.yml
vendored
27
.github/workflows/benchmark.yml
vendored
|
@ -123,14 +123,19 @@ jobs:
|
||||||
- name: Push benchmark repo
|
- name: Push benchmark repo
|
||||||
working-directory: benchmark-results
|
working-directory: benchmark-results
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
for attempt in {1..5}; do
|
||||||
node ./bin/collect.js ../benchmark-startup.log data/startup.json
|
echo "Attempting to push to repository #$attempt"
|
||||||
node ./bin/collect.js ../benchmark-send.log data/send.json
|
git fetch origin
|
||||||
node ./bin/collect.js ../benchmark-group-send.log data/group-send.json
|
git reset --hard origin/main
|
||||||
node ./bin/collect.js ../benchmark-convo-open.log data/convo-open.json
|
npm ci
|
||||||
npm run build
|
node ./bin/collect.js ../benchmark-startup.log data/startup.json
|
||||||
git config --global user.email "no-reply@signal.org"
|
node ./bin/collect.js ../benchmark-send.log data/send.json
|
||||||
git config --global user.name "Signal Bot"
|
node ./bin/collect.js ../benchmark-group-send.log data/group-send.json
|
||||||
git add .
|
node ./bin/collect.js ../benchmark-convo-open.log data/convo-open.json
|
||||||
git commit --message "${GITHUB_REF} ${GITHUB_SHA}"
|
npm run build
|
||||||
git push --force origin main
|
git config --global user.email "no-reply@signal.org"
|
||||||
|
git config --global user.name "Signal Bot"
|
||||||
|
git add .
|
||||||
|
git commit --message "${GITHUB_REF} ${GITHUB_SHA}"
|
||||||
|
git push origin main && break || sleep `$((1 + RANDOM % 5))`
|
||||||
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue