Skip to content

feat(telemetry): the project dashboard counts items by release tag, not by milestone #2702

Closed

Description

@dan-petty

Context & Rationale

The panel "Items by Milestone" of the Project & Engineering Velocity dashboard (k8s/monitoring/dashboards/project-metrics.json) groups devops_cli_project_items by the milestone label. A milestone is a planning bucket, not a release. release-please makes each release from main and tags it v*, so the milestone does not tell which release shipped an item.

The release data exists in git. The squash commit of each pull request has the footer Closes #<issue>, and release-please copies it into the release commit of the tag. In a full clone of this repository, a walk of the 92 v* tag ranges finds 566 closed issues. For each tag, the issues that the release commit lists are a subset of the issues that the walk finds.

Scope & Deliverables

  • Deliverable: devops_cli_project_items has the label release in place of milestone. The value is the first v* tag whose commits close the issue with a closing keyword (close, fix, resolve and their forms). It is empty for an item that no release closes: an open item, or a closed item that is not released.
  • Deliverable: The panel "Items by Release" groups the gauge by release and state, and shows an empty release as unreleased. The row is "Release & Taxonomy Tracking".
  • Deliverable: The spec project-metrics-dashboard, the instrument description and docs/TELEMETRY.md name the new label.
  • Constraint: The release data comes from the local clone (git tag, git log), as the release cadence metrics do. No new GitHub call.
  • Constraint: Only the items gauge and its panels change. The milestone table of devops gh metrics stays.

Strategic Alignment

  • Milestone: none (backlog).
  • Design: reuses the tag walk of get_release_cadence_metrics in src/devops_cli/github/metrics.py.
  • Depends on: none.

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