Skip to content

Triggerer: Add Test Coverage for Triggerer Metrics#68545

Draft
SameerMesiah97 wants to merge 2 commits into
apache:mainfrom
SameerMesiah97:Triggerer-Missing-Tests
Draft

Triggerer: Add Test Coverage for Triggerer Metrics#68545
SameerMesiah97 wants to merge 2 commits into
apache:mainfrom
SameerMesiah97:Triggerer-Missing-Tests

Conversation

@SameerMesiah97

Copy link
Copy Markdown
Contributor

Description

This change adds dedicated unit tests covering emission of the triggerer_heartbeat, triggers.succeeded, and triggers.failed metrics in the triggerer.

Rationale

These metrics are part of the triggerer's observability surface and may be consumed by external monitoring and alerting systems. While the underlying triggerer functionality is already covered by existing tests, metric emission is not currently verified directly.

Adding dedicated metric tests helps guard against regressions such as accidental metric removal or renaming.

Tests

Added unit tests verifying emission of the following metrics:

  • triggerer_heartbeat
  • triggers.succeeded
  • triggers.failed

Backwards Compatibility

This change adds test coverage only and does not modify trigger execution behavior, lifecycle semantics, metrics, or public APIs.

Add unit tests verifying emission of the triggerer_heartbeat,
triggers.succeeded, and triggers.failed metrics.
@SameerMesiah97 SameerMesiah97 marked this pull request as ready for review June 14, 2026 21:25
@eladkal eladkal added this to the Airflow 3.3.0 milestone Jun 15, 2026
@eladkal eladkal added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jun 15, 2026
@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jun 17, 2026
@SameerMesiah97

Copy link
Copy Markdown
Contributor Author

Requesting review for this.

@vatsrahul1001 vatsrahul1001 added backport-to-v3-3-test Backport to v3-3-test and removed backport-to-v3-3-test Backport to v3-3-test labels Jun 28, 2026
@SameerMesiah97 SameerMesiah97 marked this pull request as draft June 28, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Triggerer changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) ready for maintainer review Set after triaging when all criteria pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants