Skip to content

[CI] Use py3.10 in upload-utilization-stats - #169501

Closed
desertfire wants to merge 2 commits into
gh/desertfire/615/basefrom
gh/desertfire/615/head
Closed

desertfire wants to merge 2 commits into
gh/desertfire/615/basefrom
gh/desertfire/615/head

Conversation

@desertfire

@desertfire desertfire commented Dec 3, 2025 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

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

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
desertfire requested a review from a team as a code owner December 3, 2025 21:11
@pytorch-bot

pytorch-bot Bot commented Dec 3, 2025 •

Copy link
Copy Markdown

🔗 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 Failure

As of commit 1175ea5 with merge base 90f0139 (image):

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
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Dec 3, 2025
@desertfire
desertfire requested review from atalman and huydhn December 3, 2025 21:16
@desertfire

Copy link
Copy Markdown
Contributor Author

BTW, there are a few other workflow files still use python-version: '3.9'. We probably use update those as well.

@malfet malfet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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
@desertfire

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 4, 2025
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

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
@github-actions
github-actions Bot deleted the gh/desertfire/615/head branch January 4, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants