Skip to content

Alert rule tests pass against a copy, not the rule that ships #762

Description

@ecv

Summary

The alert rule unit tests are green while the alert that actually ships behaves differently, so a passing suite is no longer evidence that the deployed alert works. The tests run against a hand maintained second copy of the rules instead of the ones that deploy, nothing checks that the two stay in step, and a grace period added to the project creation alert months ago never reached the copy. Every assertion in that suite fails when it is pointed at the rule now running, and the suite is not wired into continuous integration either.

Note

The duplicate copy is a reasonable workaround, because the test runner cannot read the format the rules ship in, so the defect is the absence of anything keeping the copy honest.

Acceptance criteria

  • The suite exercises the rules that ship, or a check fails when the copy and the shipped rule diverge
  • The existing grace period drift is resolved
  • The suite runs automatically on every change that touches alert rules
  • A failing check names which alert drifted, so a reviewer can act on it without hunting

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions