Skip to content

[HUD] Selector for workflow id in commit and PR pages #6919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clee2000
Copy link
Contributor

@clee2000 clee2000 commented Jul 11, 2025

When multiple workflows run on the same commit (ex memory leak check + non mem leak check), HUD tries to filter the results so that only the most recent job is shown, but sometimes I want to find older ones.

An unfortunately large change because we usually query jobs for the entire commit instead of workflow by workflow

I reused the commit query because it already queries the necessary fields (name id time duration etc) and didn't want to write another query that we would have to keep in sync

Open to better solutions for how to get this data b/c imo this is kind of ugly

TODO: also handle reruns, better error handling

New
image
image

Probably review #6922 first

Copy link

vercel bot commented Jul 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
torchci ✅ Ready (Inspect) Visit Preview Jul 14, 2025 6:21pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 11, 2025
@clee2000 clee2000 marked this pull request as ready for review July 11, 2025 18:06
@clee2000 clee2000 requested a review from a team July 11, 2025 18:06
@clee2000 clee2000 force-pushed the csl/choose_workflow_id branch from 2bc3a00 to af070a1 Compare July 11, 2025 21:10
@clee2000 clee2000 changed the base branch from main to csl/workflow_box_stacks July 14, 2025 17:20
Copy link
Contributor

@ZainRizvi ZainRizvi left a comment

Choose a reason for hiding this comment

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

I'm a bit unclear on why workflow_id is being specified here. Based on the PR description, aren't you looking to get the data for a different run attempt on the same job?

@clee2000
Copy link
Contributor Author

I'm a bit unclear on why workflow_id is being specified here. Based on the PR description, aren't you looking to get the data for a different run attempt on the same job?

You can have multiple workflow runs of a single workflow on the same commit, each of these get a different workflow id, and each of those workflows can have multiple run attempts. This only handles the first one, the second one I put as a TODO in the PR body

Base automatically changed from csl/workflow_box_stacks to main July 14, 2025 18:19
@ZainRizvi
Copy link
Contributor

ZainRizvi commented Jul 14, 2025

Gotcha, and the follow up question would be: When is this change useful enough to be worth the extra complextiy?

@clee2000
Copy link
Contributor Author

clee2000 commented Jul 15, 2025

Gotcha, and the follow up question would be: When is this change useful enough to be worth the extra complextiy?

  1. TD is per workflow run, so when a PR gets reopened, the new workflow sort of overwrites the old info (at least in the UI on HUD), and because reverts also auto add the no TD label, it's kind of hard to find the old run
  2. mem leak check + rerun jobs getting into the same workflow box makes the box really big so its kind of hard to look through sometimes

It's mostly the TD thing, I want to make it easier to find that info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants