From f0983ab3a9918f8941421abcd5b4c74017b8db2a Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:05:51 -0800 Subject: [PATCH] Update benchmark action --- .github/workflows/benchmark.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8ac252a01880..313e50a2ebf4 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -140,23 +140,19 @@ jobs: path: 'benchmark-results' token: ${{ secrets.AUTOMATED_GITHUB_PAT }} - - name: Push benchmark repo + - name: Build benchmark repo working-directory: benchmark-results run: | - for attempt in {1..5}; do - echo "Attempting to push to repository #$attempt" - git fetch origin - git reset --hard origin/main - npm ci - node ./bin/collect.js ../benchmark-startup.log data/startup.json - node ./bin/collect.js ../benchmark-send.log data/send.json - node ./bin/collect.js ../benchmark-group-send.log data/group-send.json - node ./bin/collect.js ../benchmark-large-group-send.log data/large-group-send.json - node ./bin/collect.js ../benchmark-convo-open.log data/convo-open.json - npm run build - 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 + npm ci + npm run build + + - name: Publish to DataDog + working-directory: benchmark-results + run: | + node ./bin/publish.js ../benchmark-startup.log desktop.ci.performance.startup + node ./bin/publish.js ../benchmark-send.log desktop.ci.performance.send + node ./bin/publish.js ../benchmark-group-send.log desktop.ci.performance.groupSend + node ./bin/publish.js ../benchmark-large-group-send.log desktop.ci.performance.largeGroupSend + node ./bin/publish.js ../benchmark-convo-open.log desktop.ci.performance.convoOpen + env: + DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}