Skip to content

Name Which List Reached the Limit in backlog_metrics.py JSON #4299

Done

Description

@ptr727

Problem

scripts/backlog_metrics.py --format json marks a repository truncated: true where any of its lists reached LIST_LIMIT (1000): issues opened, closed, open, pull requests merged, or workflow runs. A consumer cannot tell which list was cut.

HomeAutomation-Config's weekly fleet report needs that distinction. A cut open-issue list can hide an issue waiting on a decision, so that week must not read as all good. A cut workflow-run list hides nothing of the kind, and a busy week reaches 1000 runs easily. The report now guesses with a heuristic: it counts a cut repository only where its open-issue count is at or above 900.

Proposal

Carry which lists were cut, for example truncated_lists: ["workflow_runs"] per repository, beside the existing truncated flag, and document it in scripts/README.md. Keep truncated as it is, so current consumers do not break.

Done when

  • --format json names each cut list per repository.
  • HomeAutomation-Config's report reads it in place of its heuristic.

Activity

  1. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-24): PR #4392 merged to develop at 054e8fd; branch and worktree cleaned up, so this claim holds no files. The issue closes on promotion.

    Backlog burndown claim (away run 2026-11-24, round 1, group 3): branch burndown/backlog-metrics-attention, issues #4284, #1095 (its duplicate), #4299, #4370.

    Predicted files:

    • scripts/backlog_metrics.py.
    • tests/test_backlog_metrics.py.
    • scripts/README.md, the backlog_metrics.py JSON field list.

    Any other group needing one of these files waits for this branch to merge.

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