Skip to content

On successful run following a failed run, Elementary reports failures from the previous run #1972

@Janiczek

Description

@Janiczek

Describe the bug
On successful run following a failed run, Elementary reports failures from the previous run.

To Reproduce
Steps to reproduce the behavior:

  1. Set up Slack reporting via:
- name: Run Elementary
  if: ${{ always() }}
  uses: elementary-data/[email protected]
  with:
    warehouse-type: snowflake
    profiles-yml: ${{ secrets.PROFILES_YML_NEW }}
    edr-command: |
      edr monitor --slack-webhook ${{ secrets.SLACK_WEBHOOK_URL }}
      edr send-report --slack-token ${{ secrets.SLACK_TOKEN_ELEMENTARY }} --slack-channel-name ${{ secrets.SLACK_CHANNEL_NAME }} --slack-file-name "quality_report_$(date +%Y-%m-%d).html" --select last_invocation
  1. Run with failing DBT models
  2. Run with working DBT models

Expected behavior
Errors are only reported for the failed run

Actual behaviour
Errors are also reported for the succesful run.

Screenshots
The time reported by Elementary in the below screenshot is from the failed run.

Image

Environment (please complete the following information):

  • Elementary CLI (edr) version: 0.16.1
  • Elementary dbt package version: 0.19.1
  • dbt version you're using 1.10.4
  • Data warehouse: snowflake
  • Infrastructure details: GitHub Actions (runs-on: aws-small-ubuntu24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions