Skip to content

gh-151929: Get machine ID and uptime on Windows in pythoninfo#152146

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:pythoninfo_windows
Jun 25, 2026
Merged

gh-151929: Get machine ID and uptime on Windows in pythoninfo#152146
vstinner merged 2 commits into
python:mainfrom
vstinner:pythoninfo_windows

Conversation

@vstinner

@vstinner vstinner commented Jun 25, 2026

Copy link
Copy Markdown
Member
  • Replace "linux." prefix with "system." in pythoninfo.
  • Add _winapi.GetTickCount64() function.

* Replace "linux." prefix with "system." in pythoninfo.
* Add _winapi.GetTickCount64() function.
@vstinner vstinner added skip news needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jun 25, 2026
@vstinner

Copy link
Copy Markdown
Member Author

Example: Windows / Build and test (x64, tail-call) logs machine_id and uptime correctly:

system.machine_id: b24aee4b-2126-415e-a003-11df61f9a035
system.uptime: 0:28:24

@vstinner

Copy link
Copy Markdown
Member Author

Ah, interesting the machine ID b24aee4b-2126-415e-a003-11df61f9a035 is logged by two jobs:

  • Windows / Build and test (x64, tail-call)
  • Windows (free-threading) / Build and test (x64, tail-call)

@vstinner vstinner enabled auto-merge (squash) June 25, 2026 03:05
@vstinner vstinner disabled auto-merge June 25, 2026 03:14
@vstinner vstinner enabled auto-merge (squash) June 25, 2026 03:17
@vstinner vstinner merged commit f991051 into python:main Jun 25, 2026
215 of 223 checks passed
@vstinner vstinner deleted the pythoninfo_windows branch June 25, 2026 12:02
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker f9910519af8beecba7d65e0348f48fb70b9a31c8 3.15

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker f9910519af8beecba7d65e0348f48fb70b9a31c8 3.14

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker f9910519af8beecba7d65e0348f48fb70b9a31c8 3.13

@bedevere-app

bedevere-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

GH-152187 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jun 25, 2026
@vstinner vstinner removed needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 25, 2026
vstinner added a commit that referenced this pull request Jun 25, 2026
…152146) (#152187)

gh-151929: Get machine ID and uptime on Windows in pythoninfo (#152146)

* Replace "linux." prefix with "system." in pythoninfo.
* Add _winapi.GetTickCount64() function.

(cherry picked from commit f991051)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant