Skip to content

Commit

Permalink
Report dataset's info in slack (#211)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
tellet-q and pre-commit-ci[bot] authored Oct 9, 2024
1 parent 5cea6f1 commit 793f3d0
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 8 deletions.
96 changes: 90 additions & 6 deletions .github/workflows/continuous-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,41 @@ jobs:
with:
payload: |
{
"text": "CI benchmarks run status: ${{ job.status }}",
"text": "CI benchmarks (runBenchmark) run status: ${{ job.status }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "CI benchmarks failed because of ${{ steps.benches.outputs.failed }}.\nView the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
"text": "CI benchmarks (testSlack) failed because of *${{ steps.benches.outputs.failed }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
}
}
]
Expand Down Expand Up @@ -112,13 +140,41 @@ jobs:
with:
payload: |
{
"text": "CI tenants benchmarks run status: ${{ job.status }}",
"text": "CI benchmarks (runTenantsBenchmark) run status: ${{ job.status }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"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>"
"text": "CI benchmarks (testSlack) failed because of *${{ steps.benches.outputs.failed }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
}
}
]
Expand Down Expand Up @@ -188,13 +244,41 @@ jobs:
with:
payload: |
{
"text": "CI tenants benchmarks run status: ${{ job.status }}",
"text": "CI benchmarks (runLoadTimeBenchmark) run status: ${{ job.status }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"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>"
"text": "CI benchmarks (testSlack) failed because of *${{ steps.benches.outputs.failed }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
}
}
]
Expand Down
10 changes: 8 additions & 2 deletions tools/run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE
set -euo pipefail

function handle_err() {
echo "Error occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
echo "qdrant_version=${QDRANT_VERSION}" >> $GITHUB_OUTPUT
echo "engine_name=${ENGINE_NAME}" >> $GITHUB_OUTPUT
echo "dataset=${DATASETS}" >> $GITHUB_OUTPUT

echo "failed=error" >> $GITHUB_OUTPUT
}

function handle_term() {
echo "Timeout occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
echo "qdrant_version=${QDRANT_VERSION}" >> $GITHUB_OUTPUT
echo "engine_name=${ENGINE_NAME}" >> $GITHUB_OUTPUT
echo "dataset=${DATASETS}" >> $GITHUB_OUTPUT

echo "failed=timeout" >> $GITHUB_OUTPUT
}

Expand Down

0 comments on commit 793f3d0

Please sign in to comment.