Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/86831
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 FailuresAs of commit adcb8ec: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
|
Looking at your PR, I realize that |
clee2000
force-pushed
the
csl/pytestlogs
branch
from
October 14, 2022 16:33
402bb2a to
adcb8ec
Compare
Contributor
Author
|
@pytorchbot merge -f "failures unrelated, sample example shows that it works" |
Collaborator
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
pytorchmergebot
pushed a commit
that referenced
this pull request
Oct 31, 2026
## Human Note Claude removed the tb=line branch since it doesn't trigger in CI, and claims the teardown sections stuff never worked even on older pytest. I don't really have a bone in this fight. ## Agent Report test/conftest.py's RERUNS section (#86831) prints why each rerun attempt failed, since pytest-rerunfailures itself only lists reruns. It did so through four private TerminalReporter methods (`_getcrashline`, `_getfailureheadline`, `_outrep_summary`, `_handle_teardown_sections`). pytest 9.2 changed `_handle_teardown_sections` to take a `NodeId`, so the teardown part silently printed nothing. This builds the same output from public API: each rerun report's `head_line`, `toterminal()` (onto `config.get_terminal_writer()`) and `sections`, filtered by `--show-capture` like pytest's FAILURES section. With `--tb=line` it still prints one crash line per attempt, now from the public `rep.longrepr.reprcrash` (falling back to the start of `str(longrepr)`, as `_getcrashline` did, for a plain-string longrepr such as an xdist worker crash's). One part is dropped: the teardown sections. They were looked up by node id, so they printed the teardown output of every attempt of the test (including the one that passed) under each failed attempt. Test plan: a flaky test that prints in call and teardown, a test that fails all attempts, and a passing test, run with `--reruns=1` under pytest 7.3.2, 9.1.1 and 9.2.0, with `--tb=native` and `--tb=long --color=yes --showlocals`. The new RERUNS section is identical to the old one except for the dropped teardown sections. With `--tb=line` (adding a setup error and a `pytrace=False` failure) under 7.3.2 and 9.2.0, it prints one line per attempt, matching the old conftest except where the two pytest versions format `reprcrash` differently. ``` cd test && PYTHONPATH=<pytest==$V overlay> python -m pytest -p no:cacheprovider zz_scratch_reruns.py --reruns=1 ``` Authored with an AI assistant (Claude). <details> <summary>Agent Worklog</summary> - 2026-10-28: split out of #202390 (C). Verified on 7.3.2/9.1.1/9.2.0. - 2026-10-29: kept the `--tb=line` branch (automated review), via public `reprcrash`. </details> --- *This PR was generated by [ptq](https://github.com/drisspg/pt_job_queue) with human review.* Pull Request resolved: #202412 Approved by: https://github.com/Skylion007
dominikjastrzebskix
pushed a commit
to dominikjastrzebskix/pytorch
that referenced
this pull request
Nov 5, 2026
## Human Note Claude removed the tb=line branch since it doesn't trigger in CI, and claims the teardown sections stuff never worked even on older pytest. I don't really have a bone in this fight. ## Agent Report test/conftest.py's RERUNS section (pytorch#86831) prints why each rerun attempt failed, since pytest-rerunfailures itself only lists reruns. It did so through four private TerminalReporter methods (`_getcrashline`, `_getfailureheadline`, `_outrep_summary`, `_handle_teardown_sections`). pytest 9.2 changed `_handle_teardown_sections` to take a `NodeId`, so the teardown part silently printed nothing. This builds the same output from public API: each rerun report's `head_line`, `toterminal()` (onto `config.get_terminal_writer()`) and `sections`, filtered by `--show-capture` like pytest's FAILURES section. With `--tb=line` it still prints one crash line per attempt, now from the public `rep.longrepr.reprcrash` (falling back to the start of `str(longrepr)`, as `_getcrashline` did, for a plain-string longrepr such as an xdist worker crash's). One part is dropped: the teardown sections. They were looked up by node id, so they printed the teardown output of every attempt of the test (including the one that passed) under each failed attempt. Test plan: a flaky test that prints in call and teardown, a test that fails all attempts, and a passing test, run with `--reruns=1` under pytest 7.3.2, 9.1.1 and 9.2.0, with `--tb=native` and `--tb=long --color=yes --showlocals`. The new RERUNS section is identical to the old one except for the dropped teardown sections. With `--tb=line` (adding a setup error and a `pytrace=False` failure) under 7.3.2 and 9.2.0, it prints one line per attempt, matching the old conftest except where the two pytest versions format `reprcrash` differently. ``` cd test && PYTHONPATH=<pytest==$V overlay> python -m pytest -p no:cacheprovider zz_scratch_reruns.py --reruns=1 ``` Authored with an AI assistant (Claude). <details> <summary>Agent Worklog</summary> - 2026-10-28: split out of pytorch#202390 (C). Verified on 7.3.2/9.1.1/9.2.0. - 2026-10-29: kept the `--tb=line` branch (automated review), via public `reprcrash`. </details> --- *This PR was generated by [ptq](https://github.com/drisspg/pt_job_queue) with human review.* Pull Request resolved: pytorch#202412 Approved by: https://github.com/Skylion007
dominikjastrzebskix
pushed a commit
to dominikjastrzebskix/pytorch
that referenced
this pull request
Nov 9, 2026
## Human Note Claude removed the tb=line branch since it doesn't trigger in CI, and claims the teardown sections stuff never worked even on older pytest. I don't really have a bone in this fight. ## Agent Report test/conftest.py's RERUNS section (pytorch#86831) prints why each rerun attempt failed, since pytest-rerunfailures itself only lists reruns. It did so through four private TerminalReporter methods (`_getcrashline`, `_getfailureheadline`, `_outrep_summary`, `_handle_teardown_sections`). pytest 9.2 changed `_handle_teardown_sections` to take a `NodeId`, so the teardown part silently printed nothing. This builds the same output from public API: each rerun report's `head_line`, `toterminal()` (onto `config.get_terminal_writer()`) and `sections`, filtered by `--show-capture` like pytest's FAILURES section. With `--tb=line` it still prints one crash line per attempt, now from the public `rep.longrepr.reprcrash` (falling back to the start of `str(longrepr)`, as `_getcrashline` did, for a plain-string longrepr such as an xdist worker crash's). One part is dropped: the teardown sections. They were looked up by node id, so they printed the teardown output of every attempt of the test (including the one that passed) under each failed attempt. Test plan: a flaky test that prints in call and teardown, a test that fails all attempts, and a passing test, run with `--reruns=1` under pytest 7.3.2, 9.1.1 and 9.2.0, with `--tb=native` and `--tb=long --color=yes --showlocals`. The new RERUNS section is identical to the old one except for the dropped teardown sections. With `--tb=line` (adding a setup error and a `pytrace=False` failure) under 7.3.2 and 9.2.0, it prints one line per attempt, matching the old conftest except where the two pytest versions format `reprcrash` differently. ``` cd test && PYTHONPATH=<pytest==$V overlay> python -m pytest -p no:cacheprovider zz_scratch_reruns.py --reruns=1 ``` Authored with an AI assistant (Claude). <details> <summary>Agent Worklog</summary> - 2026-10-28: split out of pytorch#202390 (C). Verified on 7.3.2/9.1.1/9.2.0. - 2026-10-29: kept the `--tb=line` branch (automated review), via public `reprcrash`. </details> --- *This PR was generated by [ptq](https://github.com/drisspg/pt_job_queue) with human review.* Pull Request resolved: pytorch#202412 Approved by: https://github.com/Skylion007
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
example: https://github.com/pytorch/pytorch/actions/runs/3238428826/jobs/5306808276