Skip to content

factory-health: --limit 100 fetch cap is consumed by discarded pre-merge runs #567

Description

@mendezr

Finding

Review of #528 (intent-alignment, low / non-blocking):

The --limit 100 fetch cap in .github/workflows/factory-health.yml is now shared with runs the filter discards. On a PR-heavy monitored repo, pull_request/merge_group runs consume fetch slots and can push older production push runs out of the 100-run sample, shrinking the measured set (worst case a healthy pipeline reads no-runs).

Pre-existing cap — #528 did not introduce it — but the pre-merge exclusion makes discarded events compete for it.

Scope

Non-blocking follow-up only if a busy repo's sample gets thin. Not a blocker for #528.

Possible directions

  • Raise --limit (and confirm API cost stays acceptable for the schedule).
  • Paginate past the first page so discarded events do not evict production runs from the window.
  • Filter earlier (gh run list has no event filter today, so this may mean a larger fetch + jq).

— hive: backend=goose

🐝 Hive Agent: contributor | SHA: unknown

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