Skip to content

Commit 7672011

Browse files
committed
action: use microbenchmark with GitHub runners
1 parent be9c85d commit 7672011

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

.github/workflows/microbenchmark.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,14 @@ permissions:
1616
jobs:
1717
microbenchmark:
1818
runs-on: ubuntu-latest
19-
# wait up to 1 hour
2019
timeout-minutes: 60
2120
steps:
22-
- id: buildkite
23-
name: Run buildkite pipeline
24-
uses: elastic/apm-pipeline-library/.github/actions/buildkite@current
21+
- uses: elastic/apm-pipeline-library/.github/actions/run-microbenchmark@current
2522
with:
26-
vaultUrl: ${{ secrets.VAULT_ADDR }}
27-
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
28-
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
29-
pipeline: apm-agent-microbenchmark
30-
waitFor: true
31-
printBuildLogs: true
32-
buildEnvVars: |
33-
script=.ci/bench.sh
34-
repo=apm-agent-python
35-
sha=${{ github.sha }}
23+
vault-url: ${{ secrets.VAULT_ADDR }}
24+
vault-role-id: ${{ secrets.VAULT_ROLE_ID }}
25+
vault-secret-id: ${{ secrets.VAULT_SECRET_ID }}
26+
slack-channel: "#apm-agent-python"
27+
script: .ci/bench.sh
28+
environments: |
3629
BRANCH_NAME=${{ github.ref_name }}
37-
38-
- if: ${{ failure() }}
39-
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
40-
with:
41-
url: ${{ secrets.VAULT_ADDR }}
42-
roleId: ${{ secrets.VAULT_ROLE_ID }}
43-
secretId: ${{ secrets.VAULT_SECRET_ID }}
44-
channel: "#apm-agent-python"
45-
message: |
46-
:ghost: [${{ github.repository }}] microbenchmark *${{ github.ref_name }}* failed to run in Buildkite.
47-
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)

0 commit comments

Comments
 (0)