gh-127146: Report uid in Emscripten + node as native uid by hoodmane · Pull Request #136509 · python/cpython · GitHub
Skip to content

gh-127146: Report uid in Emscripten + node as native uid - #136509

Merged
freakboy3742 merged 4 commits into
python:mainfrom
hoodmane:emscripten-uid-match-native
Jul 16, 2025
Merged

gh-127146: Report uid in Emscripten + node as native uid#136509
freakboy3742 merged 4 commits into
python:mainfrom
hoodmane:emscripten-uid-match-native

Conversation

@hoodmane

@hoodmane hoodmane commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

Fixes test_netrc.NetrcTestCase.test_security, which was getting mad that we reported the uid of a file correctly but reported the user's uid as 0.

cc @freakboy3742.

Fixes `test_netrc.NetrcTestCase.test_security`, which was getting mad
that we reported the uid of a file correctly but reported the user's uid
as 0.
@freakboy3742

Copy link
Copy Markdown
Contributor

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit f2a7202 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136509%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@freakboy3742

freakboy3742 commented Jul 11, 2025

Copy link
Copy Markdown
Contributor

The buildbot isn't happy with the new C file...

@hoodmane

Copy link
Copy Markdown
Contributor Author

Indeed, there is a missing #include.
!buildbot emscripten

@hoodmane

Copy link
Copy Markdown
Contributor Author

How do the !buildbot pragmas work? I don't find a section the devguide https://devguide.python.org/testing/buildbots/ Maybe we should add a paragraph there explaining.

@freakboy3742

Copy link
Copy Markdown
Contributor

!buildbot emscripten

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 789681e 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136509%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@freakboy3742

Copy link
Copy Markdown
Contributor

How do the !buildbot pragmas work? I don't find a section the devguide https://devguide.python.org/testing/buildbots/ Maybe we should add a paragraph there explaining.

I'm not sure if the buildbot issue is a permissions thing, or if the buildbot directive has to be a comment on its own. I've asked on Discord for clarification; in the meantime, I've kicked off a build for you.

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like that has done the job!

@freakboy3742
freakboy3742 enabled auto-merge (squash) July 14, 2025 02:47
@freakboy3742
freakboy3742 disabled auto-merge July 14, 2025 03:21
@freakboy3742

Copy link
Copy Markdown
Contributor

Looks like it still isn't happy - I thought the "up-to-date" error was a configure.ac thing, but it looks like a linting check on the new C file...

@zware

zware commented Jul 14, 2025

Copy link
Copy Markdown
Member

the buildbot directive has to be a comment on its own

^ this, or at least the comment has to start with the buildbot command.

Improvements welcome :)

@hoodmane

Copy link
Copy Markdown
Contributor Author

!buildbot emscripten

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @hoodmane for commit b8df7ea 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136509%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@freakboy3742

Copy link
Copy Markdown
Contributor

!buildbot ios|android

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit b8df7ea 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136509%2Fmerge

The command will test the builders whose names match following regular expression: ios|android

The builders matched are:

  • aarch64 Android PR
  • iOS ARM64 Simulator PR
  • AMD64 Android PR

@freakboy3742

Copy link
Copy Markdown
Contributor

!buildbot this-doesnt-exist

@bedevere-bot

Copy link
Copy Markdown

The regex 'this-doesnt-exist' did not match any buildbot builder. Is the requested builder in the list of stable builders?

@freakboy3742

Copy link
Copy Markdown
Contributor

(The buildbot trigger noise was part of testing python/devguide#1605; the iOS/Android builds aren't actually required for testing)

@freakboy3742

Copy link
Copy Markdown
Contributor

With the platform specific exclusion in the c-analyzer, this is now passing the netrc test; we're down to just the pydoc test failure.

@freakboy3742
freakboy3742 merged commit e81c4e8 into python:main Jul 16, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @hoodmane for the PR, and @freakboy3742 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 16, 2025
…nGH-136509)

Corrects the handling of getuid on emscripten, which was consistently reporting as 0.
(cherry picked from commit e81c4e8)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
@bedevere-app

bedevere-app Bot commented Jul 16, 2025

Copy link
Copy Markdown

GH-136699 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 16, 2025
freakboy3742 pushed a commit that referenced this pull request Jul 16, 2025
…36509) (#136699)

Corrects the handling of getuid on emscripten, which was consistently reporting as 0.
(cherry picked from commit e81c4e8)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…n#136509)

Corrects the handling of getuid on emscripten, which was consistently reporting as 0.
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…n#136509)

Corrects the handling of getuid on emscripten, which was consistently reporting as 0.
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…pythonGH-136509) (python#136699)

Corrects the handling of getuid on emscripten, which was consistently reporting as 0.
(cherry picked from commit e81c4e8)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
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.

4 participants