Skip to content

calc success rate should calculate based on ALL attempts in a run (not just latest attempt) #589

Closed

Description

@cquil11

Currently, the calc_success_rate.py script calculates the success rate based on only the most recent run. It should use all of the runs (the "retry runs" in GitHub actions) to calculate this figure.

This will make the reliability charts on the frontend a better proxy.

Activity

  1. self-assigned this
    on Jan 27, 2026
  2. added theissue type on Jan 27, 2026
  3. added
    enhancement
    on Jan 27, 2026
  4. cquil11 commented on Jan 27, 2026

    @cquil11
    CollaboratorAuthor

    @claude please implement this feature

  5. Klaud-Cold commented on Jan 27, 2026

    @Klaud-Cold
    Collaborator

    Claude finished @cquil11's task in 1m 39s —— View job • claude/issue-589-20260127-2346 • Create PR ➔


    Implementing Feature: Calculate Success Rate Based on All Attempts

    • Read CLAUDE.md for repo-specific guidelines (no CLAUDE.md found)
    • Understand the current calc_success_rate.py implementation
    • Identify how GitHub Actions retry runs work and how PyGithub exposes attempts
    • Modify script to use all attempts instead of just the latest
    • Test and validate the changes
    • Commit and push changes

    Summary:
    Modified utils/calc_success_rate.py to calculate success rates based on ALL workflow attempts (retries), not just the latest attempt.

    Change: Added _filter="all" parameter to run.jobs() call at line 57.

    Before: If a job failed on attempt 1 but succeeded on retry (attempt 2), only the success was counted.

    After: Both the failure (attempt 1) and success (attempt 2) are counted, giving a true reliability metric.


    |

  6. added a commit that references this issue on Jan 27, 2026
    ce05bca
  7. moved this from In Progress to Done in InferenceX Boardon Jan 28, 2026
  8. added a commit that references this issue on Jan 28, 2026
    c9c1272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementp2

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions