Skip to content

Commit 82ec5a8

Browse files
authored
Split Ci benchmarks into 2 jobs (#186)
1 parent a11ebc0 commit 82ec5a8

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

.github/workflows/continuous-benchmark.yaml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,49 @@ jobs:
4444
timeout 30m bash -x tools/run_ci.sh
4545
done
4646
47+
set -e
48+
- name: Fail job if any of the benches failed
49+
if: steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
50+
run: exit 1
51+
- name: Send Notification
52+
if: failure() || cancelled()
53+
uses: slackapi/[email protected]
54+
with:
55+
payload: |
56+
{
57+
"text": "CI benchmarks run status: ${{ job.status }}",
58+
"blocks": [
59+
{
60+
"type": "section",
61+
"text": {
62+
"type": "mrkdwn",
63+
"text": "CI benchmarks failed because of ${{ steps.benches.outputs.failed }}.\nView the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
64+
}
65+
}
66+
]
67+
}
68+
env:
69+
SLACK_WEBHOOK_URL: ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
70+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
71+
runTenantsBenchmark:
72+
runs-on: ubuntu-latest
73+
needs: runBenchmark
74+
if: ${{ always() }}
75+
steps:
76+
- uses: actions/checkout@v3
77+
- uses: webfactory/[email protected]
78+
with:
79+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
80+
- name: Benches
81+
id: benches
82+
run: |
83+
export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }}
84+
export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
85+
export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}
86+
bash -x tools/setup_ci.sh
87+
88+
set +e
89+
4790
# Benchmark filtered search by tenants with mem limitation
4891
4992
export ENGINE_NAME="qdrant-all-on-disk-scalar-q"
@@ -68,13 +111,13 @@ jobs:
68111
with:
69112
payload: |
70113
{
71-
"text": "CI benchmarks run status: ${{ job.status }}",
114+
"text": "CI tenants benchmarks run status: ${{ job.status }}",
72115
"blocks": [
73116
{
74117
"type": "section",
75118
"text": {
76119
"type": "mrkdwn",
77-
"text": "CI benchmarks failed because of ${{ steps.benches.outputs.failed }}.\nView the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
120+
"text": "CI tenants benchmarks failed because of ${{ steps.benches.outputs.failed }}.\nView the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
78121
}
79122
}
80123
]

0 commit comments

Comments
 (0)