Skip to content

Commit 793f3d0

Browse files
Report dataset's info in slack (#211)
* Add job name into slack message * Add reason into slack message * Debug * Revert "Debug" This reverts commit 27f0b5c. * Debug * Debug * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Debug * Debug * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Debug * Debug * Debug * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Format the message * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5cea6f1 commit 793f3d0

File tree

2 files changed

+98
-8
lines changed

2 files changed

+98
-8
lines changed

.github/workflows/continuous-benchmark.yaml

Lines changed: 90 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,41 @@ jobs:
5454
with:
5555
payload: |
5656
{
57-
"text": "CI benchmarks run status: ${{ job.status }}",
57+
"text": "CI benchmarks (runBenchmark) run status: ${{ job.status }}",
5858
"blocks": [
5959
{
6060
"type": "section",
6161
"text": {
6262
"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>"
63+
"text": "CI benchmarks (testSlack) failed because of *${{ steps.benches.outputs.failed }}*."
64+
}
65+
},
66+
{
67+
"type": "section",
68+
"text": {
69+
"type": "mrkdwn",
70+
"text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
71+
}
72+
},
73+
{
74+
"type": "section",
75+
"text": {
76+
"type": "mrkdwn",
77+
"text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
78+
}
79+
},
80+
{
81+
"type": "section",
82+
"text": {
83+
"type": "mrkdwn",
84+
"text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
85+
}
86+
},
87+
{
88+
"type": "section",
89+
"text": {
90+
"type": "mrkdwn",
91+
"text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
6492
}
6593
}
6694
]
@@ -112,13 +140,41 @@ jobs:
112140
with:
113141
payload: |
114142
{
115-
"text": "CI tenants benchmarks run status: ${{ job.status }}",
143+
"text": "CI benchmarks (runTenantsBenchmark) run status: ${{ job.status }}",
116144
"blocks": [
117145
{
118146
"type": "section",
119147
"text": {
120148
"type": "mrkdwn",
121-
"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>"
149+
"text": "CI benchmarks (testSlack) failed because of *${{ steps.benches.outputs.failed }}*."
150+
}
151+
},
152+
{
153+
"type": "section",
154+
"text": {
155+
"type": "mrkdwn",
156+
"text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
157+
}
158+
},
159+
{
160+
"type": "section",
161+
"text": {
162+
"type": "mrkdwn",
163+
"text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
164+
}
165+
},
166+
{
167+
"type": "section",
168+
"text": {
169+
"type": "mrkdwn",
170+
"text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
171+
}
172+
},
173+
{
174+
"type": "section",
175+
"text": {
176+
"type": "mrkdwn",
177+
"text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
122178
}
123179
}
124180
]
@@ -188,13 +244,41 @@ jobs:
188244
with:
189245
payload: |
190246
{
191-
"text": "CI tenants benchmarks run status: ${{ job.status }}",
247+
"text": "CI benchmarks (runLoadTimeBenchmark) run status: ${{ job.status }}",
192248
"blocks": [
193249
{
194250
"type": "section",
195251
"text": {
196252
"type": "mrkdwn",
197-
"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>"
253+
"text": "CI benchmarks (testSlack) failed because of *${{ steps.benches.outputs.failed }}*."
254+
}
255+
},
256+
{
257+
"type": "section",
258+
"text": {
259+
"type": "mrkdwn",
260+
"text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
261+
}
262+
},
263+
{
264+
"type": "section",
265+
"text": {
266+
"type": "mrkdwn",
267+
"text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
268+
}
269+
},
270+
{
271+
"type": "section",
272+
"text": {
273+
"type": "mrkdwn",
274+
"text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
275+
}
276+
},
277+
{
278+
"type": "section",
279+
"text": {
280+
"type": "mrkdwn",
281+
"text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
198282
}
199283
}
200284
]

tools/run_ci.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE
44
set -euo pipefail
55

66
function handle_err() {
7-
echo "Error occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
7+
echo "qdrant_version=${QDRANT_VERSION}" >> $GITHUB_OUTPUT
8+
echo "engine_name=${ENGINE_NAME}" >> $GITHUB_OUTPUT
9+
echo "dataset=${DATASETS}" >> $GITHUB_OUTPUT
10+
811
echo "failed=error" >> $GITHUB_OUTPUT
912
}
1013

1114
function handle_term() {
12-
echo "Timeout occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
15+
echo "qdrant_version=${QDRANT_VERSION}" >> $GITHUB_OUTPUT
16+
echo "engine_name=${ENGINE_NAME}" >> $GITHUB_OUTPUT
17+
echo "dataset=${DATASETS}" >> $GITHUB_OUTPUT
18+
1319
echo "failed=timeout" >> $GITHUB_OUTPUT
1420
}
1521

0 commit comments

Comments
 (0)