Repository navigation
fix: mark alerts dropped by the status filter as skipped in alerts_v2 - #2389
Open
entity-0-0-2 wants to merge 1 commit into
Open
entity-0-0-2 wants to merge 1 commit into
entity-0-0-2 wants to merge 1 commit into
Conversation
Alerts whose result status is excluded by the configured statuses filter (skipped by default) were fetched from alerts_v2 but never processed afterwards, so their rows stayed status = 'pending' forever and nothing was ever sent or recorded for them. Pass the filtered out alerts to skip_alerts alongside the suppressed and deduped ones so every fetched alert reaches a terminal state. Fixes elementary-data#2385
Contributor
|
👋 @entity-0-0-2 |
entity-0-0-2
requested a deployment
to
elementary_test_env
October 10, 2026 00:22 — with
GitHub Actions
Waiting
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alerts for skipped tests are inserted into alerts_v2 and then stay pending forever: the default status filter drops them before sending and nothing marks them skipped afterwards, so they are never sent and never cleaned up (#2385).
run_alerts filters the fetched alerts in memory (data_monitoring_alerts.py:433) and only passes survivors to _skip_alerts (line 437), so the terminal UPDATE never fires for filtered-out rows. The default filter (schema.py:138-148, from 47f8b02 in 2023) includes FAIL, ERROR and WARN but not SKIPPED, while population does insert skipped alerts.
run_alerts now collects the ids the filter dropped and passes them to _skip_alerts, so every fetched alert reaches a terminal state. A unit test asserts filtered-out alerts are marked skipped: fails on main, passes with the change. The monitor unit suite passes (95 tests).
Fixes #2385