| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The getlogin function is not thread-safe: replace with getlogin_r where available. Note that this function is untested (unit test is skipped with a note it caused CI failures as behaviour differs between NIX environments).
…at order) if available, falling back to a hard-coded maximum login name length of 255 if neither is available.
There was a problem hiding this comment.
This should get a test case.
Sorry, something went wrong.
The specific change or os.getlogin generally? The existing (unconditionally skipped) test could be re-enabled, but it doesn't test very much at all, and presumably will still fail on some CI systems. Perhaps we could expand it to get the "correct" result to check against via a shell command? Then if/when it fails on specific platforms either skip or special-case the test for them? Testing the specific change: I can add a multi-threaded test, but it would ideally be conditional on having getlogin_r or it would crash on platforms that don't (assuming there actually are any). Probably easiest to just selectively skip the test on any such platforms I suppose. |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @colesbury for commit 675342c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F132751%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was a problem hiding this comment.
This LGTM assuming the build bots pass
Sorry, something went wrong.
|
Buildbot failures look unrelated to me. |
Sorry, something went wrong.
|
Thanks @duaneg for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
|
Thanks @duaneg for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
The `getlogin` function is not thread-safe: replace with `getlogin_r` where available. (cherry picked from commit 1ffe913) Co-authored-by: Duane Griffin <duaneg@dghda.com>
|
Sorry, @duaneg and @colesbury, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 1ffe913c2017b44804aca18befd45689df06c069 3.13 |
Sorry, something went wrong.
|
GH-135097 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
The `getlogin` function is not thread-safe: replace with `getlogin_r` where available. (cherry picked from commit 1ffe913) Co-authored-by: Duane Griffin <duaneg@dghda.com>
|
GH-135098 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 CentOS9 NoGIL Refleaks 3.14 (tier-1) has failed when building commit d8c2bfa. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1774/builds/150 Failed tests:
Failed subtests:
Test leaking resources:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.refleak.nogil/build/Lib/test/test_concurrent_futures/executor.py", line 220, in test_free_reference
for _ in support.sleeping_retry(support.SHORT_TIMEOUT):
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.refleak.nogil/build/Lib/test/support/__init__.py", line 2591, in sleeping_retry
for _ in busy_retry(timeout, err_msg, error=error):
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.14.itamaro-centos-aws.refleak.nogil/build/Lib/test/support/__init__.py", line 2561, in busy_retry
raise AssertionError(msg)
AssertionError: timeout (68.3 seconds)
|
Sorry, something went wrong.
The `getlogin` function is not thread-safe: replace with `getlogin_r` where available.
The `getlogin` function is not thread-safe: replace with `getlogin_r` where available.
The `getlogin` function is not thread-safe: replace with `getlogin_r` where available.
| Back | FazBrowse Home | New Git URL |
The getlogin function is not thread-safe: replace with getlogin_r where available.
Note that this function is untested (unit test is skipped with a note it caused CI failures as behaviour differs between NIX environments).