Skip to content

Commit

Permalink
try failur
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Mar 13, 2024
1 parent 86edc6a commit 77c0da6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/fastembed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,16 @@ jobs:
- name: Run tests
run: hatch run cov

- name: Calculate alert data
id: calculator
shell: bash
if: (success() || failure())
run: |
if [ "${{ job.status }}" = "success" ]; then
echo "alert_type=success" >> "$GITHUB_OUTPUT";
else
echo "alert_type=error" >> "$GITHUB_OUTPUT";
fi
- name: Send event to Datadog
if: (success() || failure())
- name: Send failure event to Datadog
if: failure()
uses: masci/datadog@v1
with:
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
api-url: https://api.datadoghq.eu
events: |
- title: "${{ github.workflow }} workflow"
- title: "core-integrations nightly failure: ${{ github.workflow }}"
text: "Job ${{ github.job }} in branch ${{ github.ref_name }}"
alert_type: "${{ steps.calculator.outputs.alert_type }}"
alert_type: "error"
source_type_name: "Github"
host: ${{ github.repository_owner }}
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@ def test_run(self):
embedding = result["embedding"]

assert isinstance(embedding, list)
assert len(embedding) == 384
assert len(embedding) == 383
assert all(isinstance(emb, float) for emb in embedding)

0 comments on commit 77c0da6

Please sign in to comment.