Skip to content

gh-150368: Change Windows user group to secure identifier#150369

Merged
vstinner merged 2 commits into
python:mainfrom
anytokin:main
Jun 1, 2026
Merged

gh-150368: Change Windows user group to secure identifier#150369
vstinner merged 2 commits into
python:mainfrom
anytokin:main

Conversation

@anytokin
Copy link
Copy Markdown
Contributor

@anytokin anytokin commented May 24, 2026

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented May 24, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 24, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 24, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@anytokin anytokin changed the title gh-#150368: Change Windows user group to secure identifier gh-150368: Change Windows user group to secure identifier May 24, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 25, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM. But it would be nice if I could reproduce the issue to check the PR: #150368 (comment).

Comment thread Lib/test/test_tempfile.py Outdated
@vstinner
Copy link
Copy Markdown
Member

Lib/test/test_ntpath.py and Lib/test/test_os/test_os.py already call icacls.exe with identifiers instead of names:

Lib/test/test_ntpath.py:            ['icacls.exe', test_file, '/deny', '*S-1-5-32-545:(S)'],
Lib/test/test_os/test_os.py:            ['icacls.exe', fname, '/deny', '*S-1-5-32-545:(S)'],

@zooba zooba 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 May 28, 2026
@zooba
Copy link
Copy Markdown
Member

zooba commented May 28, 2026

LGTM with Victor's proposed comment fix.

Not totally sure how far this should be backported, but easy enough to let the bot try and fail.

Co-authored-by: Victor Stinner <vstinner@python.org>
@chris-eibl chris-eibl self-requested a review May 30, 2026 16:54
Copy link
Copy Markdown
Member

@chris-eibl chris-eibl left a comment

Choose a reason for hiding this comment

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

Approving since I can reproduce the failure on Windows 10 with german settings and the PR fixes it for me.

@anytokin: please sign the Contributor License Agreement, then we can merge.

@vstinner
Copy link
Copy Markdown
Member

vstinner commented Jun 1, 2026

Tests / Windows / Build and test (Win32, switch-case) (pull_request): Failing after 12m

FAIL: test_generator_not_under_consumer_arithmetic (test.test_profiling.test_sampling_profiler.test_blocking.TestBlockingModeStackAccuracy.test_generator_not_under_consumer_arithmetic)

That's the unrelated issue gh-150429.

@vstinner vstinner enabled auto-merge (squash) June 1, 2026 11:15
@vstinner vstinner merged commit 9d64c35 into python:main Jun 1, 2026
89 of 91 checks passed
@miss-islington-app
Copy link
Copy Markdown

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

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jun 1, 2026

GH-150701 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 1, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jun 1, 2026

GH-150702 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 Jun 1, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jun 1, 2026

GH-150703 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jun 1, 2026
@vstinner
Copy link
Copy Markdown
Member

vstinner commented Jun 1, 2026

Merged. Thanks for fix @anytokin!

vstinner pushed a commit that referenced this pull request Jun 1, 2026
…est_tempfile (GH-150369) (#150702)

gh-150368: Change Windows user group to secure identifier in test_tempfile (GH-150369)
(cherry picked from commit 9d64c35)

Co-authored-by: Dawid Konrad Kohnke <51542233+anytokin@users.noreply.github.com>
vstinner pushed a commit that referenced this pull request Jun 1, 2026
…est_tempfile (GH-150369) (#150701)

gh-150368: Change Windows user group to secure identifier in test_tempfile (GH-150369)
(cherry picked from commit 9d64c35)

Co-authored-by: Dawid Konrad Kohnke <51542233+anytokin@users.noreply.github.com>
@bedevere-bot
Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Debian root 3.15 (tier-1) has failed when building commit 58335ee.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/2019/builds/114) and take a look at the build logs.
  4. Check if the failure is related to this commit (58335ee) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/2019/builds/114

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/root/buildarea/3.15.angelico-debian-amd64/build/Lib/test/support/__init__.py", line 948, in gc_collect
    gc.collect()
    ~~~~~~~~~~^^
ResourceWarning: unclosed file <_io.FileIO name=11 mode='wb' closefd=True>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants