Repository navigation
[CI] Use py3.10 in upload-utilization-stats - #169501
Closed
desertfire wants to merge 2 commits into
Closed
desertfire wants to merge 2 commits into
desertfire wants to merge 2 commits into
Conversation
Summary: To fix failures like this on CI, ``` 2025-12-03T19:04:16.4264214Z ##[endgroup] 2025-12-03T19:04:16.8364369Z Traceback (most recent call last): 2025-12-03T19:04:16.8365336Z File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main 2025-12-03T19:04:16.8366153Z return _run_code(code, main_globals, None, 2025-12-03T19:04:16.8366898Z File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code 2025-12-03T19:04:16.8368113Z exec(code, run_globals) 2025-12-03T19:04:16.8368891Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/upload_utilization_stats/upload_utilization_stats.py", line 17, in <module> 2025-12-03T19:04:16.8369619Z from tools.stats.utilization_stats_lib import ( 2025-12-03T19:04:16.8370231Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 13, in <module> 2025-12-03T19:04:16.8370807Z class UtilizationStats: 2025-12-03T19:04:16.8371390Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 14, in UtilizationStats 2025-12-03T19:04:16.8371999Z avg: float | None = None 2025-12-03T19:04:16.8372353Z TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ``` e.g. https://productionresultssa17.blob.core.windows.net/actions-results/e3792057-a4cd-4eaa-b759-317aa47a149b/workflow-job-run-9ddd4c2f-8892-5cca-89c2-e6d976902e9d/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-12-03T21%3A15%3A42Z&sig=gvBdBvL2Z6KRploHfvLZF07GZvwLvR7SvN%2FxM1Vo2Fw%3D&ske=2025-12-04T06%3A43%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-12-03T18%3A43%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-12-03T21%3A05%3A37Z&sv=2025-11-05 [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/169501
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 1 Pending, 1 Unrelated FailureAs of commit 1175ea5 with merge base 90f0139 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
desertfire
added a commit
that referenced
this pull request
Dec 3, 2025
Summary: To fix failures like this on CI, ``` 2025-12-03T19:04:16.4264214Z ##[endgroup] 2025-12-03T19:04:16.8364369Z Traceback (most recent call last): 2025-12-03T19:04:16.8365336Z File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main 2025-12-03T19:04:16.8366153Z return _run_code(code, main_globals, None, 2025-12-03T19:04:16.8366898Z File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code 2025-12-03T19:04:16.8368113Z exec(code, run_globals) 2025-12-03T19:04:16.8368891Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/upload_utilization_stats/upload_utilization_stats.py", line 17, in <module> 2025-12-03T19:04:16.8369619Z from tools.stats.utilization_stats_lib import ( 2025-12-03T19:04:16.8370231Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 13, in <module> 2025-12-03T19:04:16.8370807Z class UtilizationStats: 2025-12-03T19:04:16.8371390Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 14, in UtilizationStats 2025-12-03T19:04:16.8371999Z avg: float | None = None 2025-12-03T19:04:16.8372353Z TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ``` e.g. https://productionresultssa17.blob.core.windows.net/actions-results/e3792057-a4cd-4eaa-b759-317aa47a149b/workflow-job-run-9ddd4c2f-8892-5cca-89c2-e6d976902e9d/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-12-03T21%3A15%3A42Z&sig=gvBdBvL2Z6KRploHfvLZF07GZvwLvR7SvN%2FxM1Vo2Fw%3D&ske=2025-12-04T06%3A43%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-12-03T18%3A43%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-12-03T21%3A05%3A37Z&sv=2025-11-05 ghstack-source-id: e2138fb Pull Request resolved: #169501
Contributor
Author
|
BTW, there are a few other workflow files still use |
malfet
approved these changes
Dec 3, 2025
malfet
left a comment
Collaborator
There was a problem hiding this comment.
In theory LGTM, but I think setup-python doesn't work on our runners
Summary: To fix failures like this on CI, ``` 2025-12-03T19:04:16.4264214Z ##[endgroup] 2025-12-03T19:04:16.8364369Z Traceback (most recent call last): 2025-12-03T19:04:16.8365336Z File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main 2025-12-03T19:04:16.8366153Z return _run_code(code, main_globals, None, 2025-12-03T19:04:16.8366898Z File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code 2025-12-03T19:04:16.8368113Z exec(code, run_globals) 2025-12-03T19:04:16.8368891Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/upload_utilization_stats/upload_utilization_stats.py", line 17, in <module> 2025-12-03T19:04:16.8369619Z from tools.stats.utilization_stats_lib import ( 2025-12-03T19:04:16.8370231Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 13, in <module> 2025-12-03T19:04:16.8370807Z class UtilizationStats: 2025-12-03T19:04:16.8371390Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 14, in UtilizationStats 2025-12-03T19:04:16.8371999Z avg: float | None = None 2025-12-03T19:04:16.8372353Z TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ``` e.g. https://productionresultssa17.blob.core.windows.net/actions-results/e3792057-a4cd-4eaa-b759-317aa47a149b/workflow-job-run-9ddd4c2f-8892-5cca-89c2-e6d976902e9d/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-12-03T21%3A15%3A42Z&sig=gvBdBvL2Z6KRploHfvLZF07GZvwLvR7SvN%2FxM1Vo2Fw%3D&ske=2025-12-04T06%3A43%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-12-03T18%3A43%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-12-03T21%3A05%3A37Z&sv=2025-11-05 [ghstack-poisoned]
desertfire
added a commit
that referenced
this pull request
Dec 3, 2025
Summary: To fix failures like this on CI, ``` 2025-12-03T19:04:16.4264214Z ##[endgroup] 2025-12-03T19:04:16.8364369Z Traceback (most recent call last): 2025-12-03T19:04:16.8365336Z File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main 2025-12-03T19:04:16.8366153Z return _run_code(code, main_globals, None, 2025-12-03T19:04:16.8366898Z File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code 2025-12-03T19:04:16.8368113Z exec(code, run_globals) 2025-12-03T19:04:16.8368891Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/upload_utilization_stats/upload_utilization_stats.py", line 17, in <module> 2025-12-03T19:04:16.8369619Z from tools.stats.utilization_stats_lib import ( 2025-12-03T19:04:16.8370231Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 13, in <module> 2025-12-03T19:04:16.8370807Z class UtilizationStats: 2025-12-03T19:04:16.8371390Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 14, in UtilizationStats 2025-12-03T19:04:16.8371999Z avg: float | None = None 2025-12-03T19:04:16.8372353Z TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ``` e.g. https://productionresultssa17.blob.core.windows.net/actions-results/e3792057-a4cd-4eaa-b759-317aa47a149b/workflow-job-run-9ddd4c2f-8892-5cca-89c2-e6d976902e9d/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-12-03T21%3A15%3A42Z&sig=gvBdBvL2Z6KRploHfvLZF07GZvwLvR7SvN%2FxM1Vo2Fw%3D&ske=2025-12-04T06%3A43%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-12-03T18%3A43%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-12-03T21%3A05%3A37Z&sv=2025-11-05 ghstack-source-id: 12d123b Pull Request resolved: #169501
Contributor
Author
|
@pytorchbot merge |
Collaborator
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 |
umechand-amd
pushed a commit
to ROCm/pytorch
that referenced
this pull request
Dec 8, 2025
Summary: To fix failures like this on CI, ``` 2025-12-03T19:04:16.4264214Z ##[endgroup] 2025-12-03T19:04:16.8364369Z Traceback (most recent call last): 2025-12-03T19:04:16.8365336Z File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main 2025-12-03T19:04:16.8366153Z return _run_code(code, main_globals, None, 2025-12-03T19:04:16.8366898Z File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code 2025-12-03T19:04:16.8368113Z exec(code, run_globals) 2025-12-03T19:04:16.8368891Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/upload_utilization_stats/upload_utilization_stats.py", line 17, in <module> 2025-12-03T19:04:16.8369619Z from tools.stats.utilization_stats_lib import ( 2025-12-03T19:04:16.8370231Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 13, in <module> 2025-12-03T19:04:16.8370807Z class UtilizationStats: 2025-12-03T19:04:16.8371390Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 14, in UtilizationStats 2025-12-03T19:04:16.8371999Z avg: float | None = None 2025-12-03T19:04:16.8372353Z TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ``` e.g. https://productionresultssa17.blob.core.windows.net/actions-results/e3792057-a4cd-4eaa-b759-317aa47a149b/workflow-job-run-9ddd4c2f-8892-5cca-89c2-e6d976902e9d/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-12-03T21%3A15%3A42Z&sig=gvBdBvL2Z6KRploHfvLZF07GZvwLvR7SvN%2FxM1Vo2Fw%3D&ske=2025-12-04T06%3A43%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-12-03T18%3A43%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-12-03T21%3A05%3A37Z&sv=2025-11-05 Pull Request resolved: pytorch#169501 Approved by: https://github.com/malfet
JacobSzwejbka
pushed a commit
that referenced
this pull request
Dec 8, 2025
Summary: To fix failures like this on CI, ``` 2025-12-03T19:04:16.4264214Z ##[endgroup] 2025-12-03T19:04:16.8364369Z Traceback (most recent call last): 2025-12-03T19:04:16.8365336Z File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main 2025-12-03T19:04:16.8366153Z return _run_code(code, main_globals, None, 2025-12-03T19:04:16.8366898Z File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code 2025-12-03T19:04:16.8368113Z exec(code, run_globals) 2025-12-03T19:04:16.8368891Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/upload_utilization_stats/upload_utilization_stats.py", line 17, in <module> 2025-12-03T19:04:16.8369619Z from tools.stats.utilization_stats_lib import ( 2025-12-03T19:04:16.8370231Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 13, in <module> 2025-12-03T19:04:16.8370807Z class UtilizationStats: 2025-12-03T19:04:16.8371390Z File "/home/ec2-user/actions-runner/_work/pytorch/pytorch/tools/stats/utilization_stats_lib.py", line 14, in UtilizationStats 2025-12-03T19:04:16.8371999Z avg: float | None = None 2025-12-03T19:04:16.8372353Z TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ``` e.g. https://productionresultssa17.blob.core.windows.net/actions-results/e3792057-a4cd-4eaa-b759-317aa47a149b/workflow-job-run-9ddd4c2f-8892-5cca-89c2-e6d976902e9d/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-12-03T21%3A15%3A42Z&sig=gvBdBvL2Z6KRploHfvLZF07GZvwLvR7SvN%2FxM1Vo2Fw%3D&ske=2025-12-04T06%3A43%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-12-03T18%3A43%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-12-03T21%3A05%3A37Z&sv=2025-11-05 Pull Request resolved: #169501 Approved by: https://github.com/malfet
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.
Stack from ghstack (oldest at bottom):
Summary: To fix failures like this on CI,
e.g. https://productionresultssa17.blob.core.windows.net/actions-results/e3792057-a4cd-4eaa-b759-317aa47a149b/workflow-job-run-9ddd4c2f-8892-5cca-89c2-e6d976902e9d/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-12-03T21%3A15%3A42Z&sig=gvBdBvL2Z6KRploHfvLZF07GZvwLvR7SvN%2FxM1Vo2Fw%3D&ske=2025-12-04T06%3A43%3A09Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-12-03T18%3A43%3A09Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-12-03T21%3A05%3A37Z&sv=2025-11-05