Skip to content

Display the related broken trunk (under BROKEN TRUNK) and similar failures (under FLAKY) on Dr.CI#5149

Merged
huydhn merged 3 commits intopytorch:mainfrom
huydhn:drci-display-broken-trunk-similar-failures
Apr 30, 2024
Merged

Display the related broken trunk (under BROKEN TRUNK) and similar failures (under FLAKY) on Dr.CI#5149
huydhn merged 3 commits intopytorch:mainfrom
huydhn:drci-display-broken-trunk-similar-failures

Conversation

@huydhn
Copy link
Copy Markdown
Contributor

@huydhn huydhn commented Apr 29, 2024

As part of #5139, I'm updating hasSimilarFailures and rename isBrokenTrunk to getTrunkFailure to return the related similar and trunk failures. These related failures can then be displayed on Dr.CI to provide additional insight on how it classifies the results.

This PR covers the first two items, the rest will be on the next PR I'm working on.

  • Provide additional information about broken trunk failures
  • Provide additional information about similar flaky failures
  • Provide additional information about unstable failures
  • Provide additional information about other flaky failures including jobs suppressed by labels and infra flaky.

Testing

On pytorch/pytorch#124920,

curl --request POST \
--url "http://localhost:3000/api/drci/drci?prNumber=124920" \
--header "Authorization: TOKEN" \
--data 'repo=pytorch'

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/124920

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit a6516ea6789e12a1a80a8c8cc7ce63698d443821 with merge base 59a1f1f308545e3ac1d81940a51f8dc0db3d82d4 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@huydhn huydhn requested review from clee2000 and malfet April 29, 2024 23:55
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 29, 2024

@huydhn is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@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 Apr 29, 2024
@huydhn huydhn requested a review from a team April 29, 2024 23:55
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 29, 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 Apr 30, 2024 6:17pm

Copy link
Copy Markdown
Contributor

@clee2000 clee2000 left a comment

Choose a reason for hiding this comment

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

A couple of minor things but other wise looks fine

if (header === "BROKEN TRUNK") {
output += ` ([trunk failure](${relatedJobLink}))`;
} else if (header === "FLAKY") {
output += `([similar failure](${relatedJobLink}))`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
output += `([similar failure](${relatedJobLink}))`;
output += ` ([similar failure](${relatedJobLink}))`;

} else if (header === "FLAKY") {
output += `([similar failure](${relatedJobLink}))`;
} else {
output += `([related job](${relatedJobLink}))`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
output += `([related job](${relatedJobLink}))`;
output += ` ([related job](${relatedJobLink}))`;


if (job.failure_captures) {
output += ` \`${job.failure_captures[0]}\`\n`;
output += `\n \`${job.failure_captures[0]}\`\n`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sanity check, i think you might need a \n to divide lines within a category if the failures captures doesnt exist

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, yeah, good catch. it would screw up the format otherwise

@huydhn huydhn merged commit 4a5f0bf into pytorch:main Apr 30, 2024
huydhn added a commit that referenced this pull request May 2, 2024
As the next part of #5149,
this PR provides some additional info about unstable and infra flaky
jobs.

* [x] #5149
* [x] Provide link to the issue that mark the job as unstable
* [x] Give the label(s) that suppress the job
* [x] Print the rule from
https://github.com/pytorch/test-infra/blob/generated-stats/stats/flaky-rules.json
that marks the job as flaky
* [x] Explain the reason for infra flaky (I couldn't find any recent
examples for manual testing)

### Testing

1. From pytorch/pytorch#125264

<details open><summary><b>NEW FAILURE</b> - The following job has
failed:</summary><p>

* [pull / linux-focal-cuda12.1-py3.10-gcc9-sm86 / test (default, 2, 5,
linux.g5.4xlarge.nvidia.gpu)](https://hud.pytorch.org/pr/pytorch/pytorch/125264#24452065236)
([gh](https://github.com/pytorch/pytorch/actions/runs/8901751864/job/24452065236))

`inductor/test_cudagraph_trees.py::CudaGraphTreeTests::test_aliasing_static_ref`
</p></details>
<details ><summary><b>FLAKY</b> - The following job failed but was
likely due to flakiness present on trunk:</summary><p>

* [Lint / lintrunner-noclang /
linux-job](https://hud.pytorch.org/pr/pytorch/pytorch/125264#24446808455)
([gh](https://github.com/pytorch/pytorch/actions/runs/8901751878/job/24446808455))
(matched **linux** rule in
[flaky-rules.json](https://github.com/pytorch/test-infra/blob/generated-stats/stats/flaky-rules.json))
    `The process '/usr/bin/git' failed with exit code 1`
</p></details>


2. From pytorch/executorch#3318

<details ><summary><b>UNSTABLE</b> - The following job failed but was
likely due to flakiness present on trunk and has been marked as
unstable:</summary><p>

* [Android / test-llama-app / mobile-job
(android)](https://hud.pytorch.org/pr/pytorch/executorch/3318#24282434625)
([gh](https://github.com/pytorch/executorch/actions/runs/8842776071/job/24282434625))
([#3344](pytorch/executorch#3344))
`Credentials could not be loaded, please check your action inputs: Could
not load credentials from any providers`
</p></details>


3. From pytorch/pytorch#125143

* [Lint / lintrunner-noclang /
linux-job](https://hud.pytorch.org/pr/pytorch/pytorch/125143#24373801771)
([gh](https://github.com/pytorch/pytorch/actions/runs/8878104746/job/24373801771))
    `>>> Lint for torch/onnx/_internal/onnx_proto_utils.py:`
</p></details>
<details ><summary><b>FLAKY</b> - The following jobs failed but were
likely due to flakiness present on trunk:</summary><p>

* [BC Lint /
bc_linter](https://hud.pytorch.org/pr/pytorch/pytorch/125143#24450453134)
([gh](https://github.com/pytorch/pytorch/actions/runs/8878104658/job/24450453134))
(suppressed by suppress-bc-linter)
    `Process completed with exit code 1.`
* [pull / linux-focal-cuda12.1-py3.10-gcc9 / test (default, 2, 5,
linux.4xlarge.nvidia.gpu)](https://hud.pytorch.org/pr/pytorch/pytorch/125143#24374207841)
([gh](https://github.com/pytorch/pytorch/actions/runs/8878104713/job/24374207841))
([similar
failure](https://hud.pytorch.org/pytorch/pytorch/commit/1a0b24776212b383d025010e935f33f58a96e276#24348608242))

`test_foreach.py::TestForeachCUDA::test_binary_op_list_slow_path__foreach_div_cuda_bool`
</p></details>
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