Skip to content
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

[hud] add style cues to the failure symbol (X) based on the error line #5155

Closed
wants to merge 4 commits into from

Conversation

izaitsevfb
Copy link
Contributor

@izaitsevfb izaitsevfb commented May 1, 2024

An option to make the grid slightly more ugly, but at the same time allow seeing streaks of related failures at a glance.

Implementation:

  • Calculates the hash based on the job failure line (without whitespaces and digits)
  • Based on the hash adds procedural visual cues to the X symbol:
image image image

Demo:

output.mp4
Streaks of failures are now visible, even if they migrate between jobs: image image image

@izaitsevfb izaitsevfb requested a review from huydhn May 1, 2024 00:12
Copy link

vercel bot commented May 1, 2024

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

Name Status Preview Comments Updated (UTC)
torchci ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 10:42pm

@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 May 1, 2024
}: {
children: React.ReactNode;
}) {
const [stylishFailures, setStylishFailures] = useState<boolean>(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can you use the function that saves the preference locally? I think it's called usePreference

@izaitsevfb izaitsevfb marked this pull request as draft May 1, 2024 22:41
@izaitsevfb
Copy link
Contributor Author

Discovered some interference with filtering, marking as draft for now.

@izaitsevfb
Copy link
Contributor Author

Superceded by #5244

@izaitsevfb izaitsevfb closed this May 21, 2024
izaitsevfb added a commit that referenced this pull request May 21, 2024
Supersedes  #5155
(this version is much faster, doesn't interfere with collapsing, and
arguably slightly better looking, also sillier)


An option to replace red `X` with a unique pixel-art "monster" that
corresponds to the job failure line. Allows to detect streaks of the
same failures at a glance. Calculates the hash based on the job failure
line (without whitespaces and digits).

**Potential TODO:** 
I slightly messed up the spritesheet size (that's why the size and
position numbers are real). If this version looks good enough this could
be improved later.

**Screenshots**:
<img width="1530" alt="image"
src="https://github.com/pytorch/test-infra/assets/108101595/74bb4340-9b3e-47b1-adc0-b7c53fa62f7e">

<img width="754" alt="image"
src="https://github.com/pytorch/test-infra/assets/108101595/3d7bc8c4-5453-4e2e-bf7f-3df9aca21d90">


Note: group icon (X) is not changed.
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.

None yet

3 participants