Repository navigation
[Profiler] Fix gc test by checking for at least one gc event between bounds - #186832
ryanzhang22 wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/186832
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 New FailuresAs of commit 5942ef9 with merge base 0a9ce1d ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@ryanzhang22 has imported this pull request. If you are a Meta employee, you can view this in D108054666. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 3 jobs have failed, first few of them are: trunk / win-vs2022-cpu-py3 / test (default, 2, 4, windows.4xlarge.nonephemeral), trunk / win-vs2022-cpu-py3 / test (default, 1, 4, windows.4xlarge.nonephemeral), trunk / win-vs2022-cpu-py3 / test (default, 3, 4, windows.4xlarge.nonephemeral) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 5 checks: trunk / win-vs2022-cpu-py3 / test (default, 2, 4, windows.4xlarge.nonephemeral), trunk / win-vs2022-cpu-py3 / test (default, 1, 4, windows.4xlarge.nonephemeral), trunk / win-vs2022-cpu-py3 / test (openreg, 1, 1, windows.4xlarge.nonephemeral), trunk / win-vs2022-cpu-py3 / test (default, 3, 4, windows.4xlarge.nonephemeral), trunk / win-vs2022-cpu-py3 / test (default, 4, 4, windows.4xlarge.nonephemeral) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…bounds (pytorch#186832) This test has been failing in CI: https://github.com/pytorch/kineto/actions/runs/27210714257/job/80338678706 It runs profiling with gc enabled and inserts a gc event between two `record_function` blocks, then expects that all gc events in the produced trace are between the two `record_function` timestamps. However, on a fresh build, there's something else that triggers python gc which is causing a spurious event to show up in the profile, leading to test failure. We are really just checking that the singular gc event we induce is in the profile, so instead of checking that all events fall within the timeframe, just check if at least one does. Pull Request resolved: pytorch#186832 Approved by: https://github.com/scotts
…bounds (pytorch#186832) This test has been failing in CI: https://github.com/pytorch/kineto/actions/runs/27210714257/job/80338678706 It runs profiling with gc enabled and inserts a gc event between two `record_function` blocks, then expects that all gc events in the produced trace are between the two `record_function` timestamps. However, on a fresh build, there's something else that triggers python gc which is causing a spurious event to show up in the profile, leading to test failure. We are really just checking that the singular gc event we induce is in the profile, so instead of checking that all events fall within the timeframe, just check if at least one does. Pull Request resolved: pytorch#186832 Approved by: https://github.com/scotts
…bounds (pytorch#186832) This test has been failing in CI: https://github.com/pytorch/kineto/actions/runs/27210714257/job/80338678706 It runs profiling with gc enabled and inserts a gc event between two `record_function` blocks, then expects that all gc events in the produced trace are between the two `record_function` timestamps. However, on a fresh build, there's something else that triggers python gc which is causing a spurious event to show up in the profile, leading to test failure. We are really just checking that the singular gc event we induce is in the profile, so instead of checking that all events fall within the timeframe, just check if at least one does. Pull Request resolved: pytorch#186832 Approved by: https://github.com/scotts
This test has been failing in CI: https://github.com/pytorch/kineto/actions/runs/27210714257/job/80338678706
It runs profiling with gc enabled and inserts a gc event between two
record_functionblocks, then expects that all gc events in the produced trace are between the tworecord_functiontimestamps. However, on a fresh build, there's something else that triggers python gc which is causing a spurious event to show up in the profile, leading to test failure.We are really just checking that the singular gc event we induce is in the profile, so instead of checking that all events fall within the timeframe, just check if at least one does.