Skip to content

chore(service): Record request-count drop after shared poll #4126

Open

Description

@devops-cli-service

Split from #3942.

After #3942 is live, the project must record the effect of the shared issue-events read on GitHub request use. The issue body asks for the value of sum(increase(devops_cli_github_requests_total{job=***roadmap-service***, row=***other***, status!=***304***}[1h])) to be lower than 236. This part waits for the deployment of #3942 and one hour of live traffic. An offline test cannot check it. Acceptance criteria: run the query above after #3942 is live for one hour; the value is lower than 236; comment the value on #3942.

Proposed design

Problem statement

The row other of devops_cli_github_requests_total held 236 counted GitHub requests in one hour before #3942. #3942 shares the issue-events read and must cut this count. The project must measure the row for one hour after #3942 is deployed. The project must compare the value with 236 and post the value on #3942. The value depends on live traffic, so no offline test can check it.

Acceptance criteria

Requirement: Pending a person after the merge

The project MUST measure sum(increase(devops_cli_github_requests_total{job="roadmap-service", row="other", status!="304"}[1h])) one hour after #3942 is deployed.

Scenario: The value of the row stays below 236

Requirement: Record the value on #3942

The project MUST post a comment on #3942 with devops gh issue comment 3942 that holds the query, the value and the time of the query.

Scenario: The comment holds the record

  • WHEN A person runs devops gh issue view 3942 --comments after the comment is posted.
  • THEN The output shows the query, the value and the time of the query, and the value is lower than 236.

Existing Tool Considered

No alternatives check has run on this issue. Grafana Explore covers the live query over Prometheus, and devops gh issue comment covers the record. Grafana Explore lacks an offline test; the value depends on live traffic. devops gh lacks the metric query. The change builds no code, so its cost is one query and one comment, and about one hour of elapsed time after #3942 is deployed.

Key questions

  • Which open tools run the query and post the record?: Use Grafana Explore for the query and devops gh issue comment for the record. The project forbids bare gh. The change builds no code. (best practice) [sources: docs/CLUSTER.md, AGENTS.md]
    • Chosen: Grafana Explore and devops gh issue comment. docs/CLUSTER.md names Grafana Explore for the query. AGENTS.md rule 7 requires devops gh and forbids bare gh. The change builds no code.
    • Rejected: promtool query instant. The repository documents no Prometheus URL or promtool command for this check.
    • Rejected: curl to the Prometheus HTTP API. It needs a second command to parse the JSON, and the repository documents no Prometheus URL.
    • Rejected: A new devops-cli command. It builds and keeps code for one live measurement. No offline test can check that code without Prometheus data.
  • Does devops_cli_github_requests_total keep the labels that the query filters on?: Yes. Each GitHub request counts under method, status, repo and row. GitHub does not count an answer with status 304 against its rate limit, so status!="304" gives the counted cost. [sources: docs/CLUSTER.md]
  • What must land before the check can run?: fix(service): each lane polls the issue events again #3942 must be deployed, because it holds the shared issue-events read that the check measures. One hour of live traffic must pass after the deployment. [sources: docs/CLUSTER.md]
  • Can an offline test check the value?: No. The value depends on the live traffic of one hour after fix(service): each lane polls the issue events again #3942 is deployed. The repository holds no fixture of that traffic, so the project runs the query as a live check. [sources: docs/CLUSTER.md]

Fit

Fits in one pull request.

Suspected block

The deployment of #3942 and one hour of live traffic after it.

Dependencies

#3942

Activity

  1. added
    source/agent
    type/chore
    scope/service
    status/new
    value/medium
    effort/low
    on Nov 8, 2026
  2. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    ContributorAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/chore. The chore prefix of the title gives the type.
    • Scope: scope/service. The (service) scope of the title gives the scope.
    • Priority: P3-Low. The item is a deferred measurement that waits on a deployment and one hour of live traffic.
    • Value: Medium. The measurement shows that the fix reduces GitHub request use, but it changes no product behaviour.
    • Effort: Low. One Prometheus query and one comment give the result.
    • Related: fix(service): each lane polls the issue events again #3942, which asks for a different change. Both items concern the shared issue-events poll, but #3942 changes the poll and the candidate measures the live request drop after deployment.
  3. added
    priority/p3-low
    on Nov 8, 2026
  4. changed the title [-]chore(service): record the request-count drop after the shared issue-events poll[/-] [+]chore(service): Record request-count drop after shared poll[/+] on Nov 8, 2026
  5. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 64 characters, and the limit is 60. The type and the scope stay.

    • Before: chore(service): record the request-count drop after the shared issue-events poll
    • After: chore(service): Record request-count drop after shared poll
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 6121d09 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

  7. dan-petty commented on Nov 15, 2026

    @dan-petty
    Owner

    Returned: the item is a live measurement, not a code change. It needs #3942 deployed and one hour of production traffic, then the PromQL query sum(increase(devops_cli_github_requests_total{job="roadmap-service", row="other", status!="304"}[1h])) and a comment of the value on #3942. No offline test can run it, and this workstation holds no Prometheus with that data. Revisit after the rollout.

  8. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  10. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  11. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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

    effort/lowpriority/p3-lowscope/servicesource/agentstatus/newtype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions