Skip to content

chore: calculate success rate based on all workflow attempts - #590

Merged
cquil11 merged 2 commits into
mainfrom
claude/issue-589-20260127-2346
Jan 28, 2026
Merged

cquil11 merged 2 commits into
mainfrom
claude/issue-589-20260127-2346

Conversation

@cquil11

@cquil11 cquil11 commented Jan 27, 2026 •

Copy link
Copy Markdown
Collaborator

Previously, calc_success_rate.py only considered jobs from the latest attempt when calculating GPU success rates. This meant that if a job failed on the first attempt but succeeded on a retry, only the success would be counted.

This change uses _filter="all" parameter in run.jobs() to include jobs from ALL attempts (retries), providing a more accurate success rate that better reflects actual reliability.

Also removes hardcoding of GPU skus (now gets it from runners.yaml).

Closes #589

Generated with Claude Code

Previously, calc_success_rate.py only considered jobs from the latest
attempt when calculating GPU success rates. This meant that if a job
failed on the first attempt but succeeded on a retry, only the success
would be counted.

This change uses _filter="all" parameter in run.jobs() to include
jobs from ALL attempts (retries), providing a more accurate success
rate that better reflects actual reliability.

Closes #589

Co-authored-by: Cameron Quilici <[email protected]>
@cquil11

cquil11 commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator Author

@pr-claude review

@claude

claude Bot commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @cquil11's task in 56s —— View job


Reviewing PR #590

  • Gather context and read changed files
  • Check for master config and perf-changelog changes - Not applicable
  • Review code for bugs, logic errors, and issues
  • Provide feedback

LGTM - no blocking issues found

The changes correctly implement the intended behavior:

  1. _filter="all" - Properly includes jobs from all workflow attempts (retries), which gives a more accurate picture of actual reliability rather than just final outcomes.

  2. Dynamic GPU SKU loading - The load_gpu_skus() function correctly extracts GPU models from runners.yaml by taking the part before the first hyphen, and deduplicates using a set. This eliminates the need to maintain a hardcoded list.

@Oseltamivir Oseltamivir left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cquil11
cquil11 merged commit c9c1272 into main Jan 28, 2026
@cquil11
cquil11 deleted the claude/issue-589-20260127-2346 branch January 28, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

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

2 participants