44
44
timeout 30m bash -x tools/run_ci.sh
45
45
done
46
46
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
+
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
+
47
90
# Benchmark filtered search by tenants with mem limitation
48
91
49
92
export ENGINE_NAME="qdrant-all-on-disk-scalar-q"
@@ -68,13 +111,13 @@ jobs:
68
111
with :
69
112
payload : |
70
113
{
71
- "text": "CI benchmarks run status: ${{ job.status }}",
114
+ "text": "CI tenants benchmarks run status: ${{ job.status }}",
72
115
"blocks": [
73
116
{
74
117
"type": "section",
75
118
"text": {
76
119
"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>"
78
121
}
79
122
}
80
123
]
0 commit comments