Skip to content

factory-health: consecutive_failures streak still counts pre-merge runs after #528 #583

Description

@castrojo

Follow-up from the hive review of #528 (at 8f6e895). #528 drops pull_request and merge_group runs from the success-rate sample (completed_json in .github/workflows/factory-health.yml, compute_pipeline_health in scripts/monitor_pipeline.py), but the back-to-back failure streak is still computed from the unfiltered run list (the consecutive_failures jq in factory-health.yml and _consecutive_failures() in monitor_pipeline.py).

On the total < MIN_RUNS branch that means:

Suggested fix: apply the same .event exclusion to both streak computations, keep the bats CLASSIFY_LOGIC copy in sync, and add a test for each direction. Kept out of #528 to hold that PR to its reviewed scope.

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

    needs-decisionWaiting on a maintainer decision; not contributor work until a human clears the label

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions