Skip to content

Conversation

@mhsmith
Copy link
Member

@mhsmithmhsmith commented Dec 5, 2025

For details, see freakboy3742/pyspamsum#108. Of the ideas listed there, this PR includes the NDK version cleanup and the emulator image change. It doesn't include the idea to use the runner's second disk, as there's no guarantee that will continue to be available in the future.

@mhsmithmhsmith marked this pull request as ready for review December 5, 2025 13:02
@hugovkhugovk enabled auto-merge (squash) December 5, 2025 13:07
@hugovkhugovk merged commit cac4b04 into python:mainDec 5, 2025
58 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2025
(cherry picked from commit cac4b04) Co-authored-by: Malcolm Smith <smith@chaquo.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2025
(cherry picked from commit cac4b04) Co-authored-by: Malcolm Smith <smith@chaquo.com>
@bedevere-app
Copy link

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

@bedevere-appbedevere-appbot removed the needs backport to 3.14 bugs and security fixes label Dec 5, 2025
@bedevere-app
Copy link

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

@bedevere-appbedevere-appbot removed the needs backport to 3.13 bugs and security fixes label Dec 5, 2025
@bedevere-bot
Copy link

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

Hi! The buildbot aarch64 Android 3.x (tier-3) has failed when building commit cac4b04.

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/1594/builds/3913) and take a look at the build logs.
  4. Check if the failure is related to this commit (cac4b04) 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/1594/builds/3913

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

Click to see traceback logs
remote: Enumerating objects: 13, done. remote: Counting objects: 7% (1/13) remote: Counting objects: 15% (2/13) remote: Counting objects: 23% (3/13) remote: Counting objects: 30% (4/13) remote: Counting objects: 38% (5/13) remote: Counting objects: 46% (6/13) remote: Counting objects: 53% (7/13) remote: Counting objects: 61% (8/13) remote: Counting objects: 69% (9/13) remote: Counting objects: 76% (10/13) remote: Counting objects: 84% (11/13) remote: Counting objects: 92% (12/13) remote: Counting objects: 100% (13/13) remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 25% (1/4) remote: Compressing objects: 50% (2/4) remote: Compressing objects: 75% (3/4) remote: Compressing objects: 100% (4/4) remote: Compressing objects: 100% (4/4), done. remote: Total 7 (delta 4), reused 5 (delta 3), pack-reused 0 (from 0)  From https://github.com/python/cpython * branch main -> FETCH_HEAD Note: switching to 'cac4b04973ea4cee80b775782453cddcd694635d'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c <new-branch-name> Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at cac4b04973e Fix disk space issues in Android CI (#142289) Switched to and reset branch 'main' configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal moduleconfigure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 192k 100 192k 0 0 1935k 0 --:--:-- --:--:-- --:--:-- 1935k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 42455 100 42455 0 0 527k 0 --:--:-- --:--:-- --:--:-- 527k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 5044k 100 5044k 0 0 38.2M 0 --:--:-- --:--:-- --:--:-- 38.2M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1257k 100 1257k 0 0 10.0M 0 --:--:-- --:--:-- --:--:-- 10.0M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 635k 100 635k 0 0 6178k 0 --:--:-- --:--:-- --:--:-- 6178k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 479k 100 479k 0 0 4036k 0 --:--:-- --:--:-- --:--:-- 4036k ../../configure: line 4079: pkg-config: command not foundconfigure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal moduleconfigure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly. ../../Python/fileutils.c:458:1: warning: unused function 'decode_current_locale' [-Wunused-function] 458 | decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen, |^~~~~~~~~~~~~~~~~~~~~ ../../Python/fileutils.c:677:1: warning: unused function 'encode_current_locale' [-Wunused-function] 677 | encode_current_locale(const wchar_t *text, char **str, |^~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. ../../Modules/_localemodule.c:195:1: warning: unused function 'is_all_ascii' [-Wunused-function] 195 | is_all_ascii(const char *str) |^~~~~~~~~~~~ 1 warning generated. ../../Modules/pwdmodule.c:69:16: warning: unused variable 'pwd_db_mutex' [-Wunused-variable] 69 | static PyMutex pwd_db_mutex ={0}; |^~~~~~~~~~~~ 1 warning generated. ../../Modules/_hacl/Lib_Memzero0.c:66:6: warning: "Your platform does not support any safe implementation of memzero -- consider a pull request!" [-W#warnings] 66 | #warning "Your platform does not support any safe implementation of memzero -- consider a pull request!" |^ 1 warning generated. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 8784 100 8784 0 0 195k 0 --:--:-- --:--:-- --:--:-- 199k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2894 100 2894 0 0 85045 0 --:--:-- --:--:-- --:--:-- 87696 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 43504 100 43504 0 0 1254k 0 --:--:-- --:--:-- --:--:-- 1287k rror: closed + Exception Group Traceback (most recent call last): | File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Android/android.py", line 931, in <module> | main() | File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Android/android.py", line 907, in main | asyncio.run(result) | File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 194, in run | return runner.run(main) | ^^^^^^^^^^^^^^^^ | File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 118, in run | return self._loop.run_until_complete(task) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete | return future.result() | ^^^^^^^^^^^^^^^ | File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Android/android.py", line 646, in run_testbed | async with asyncio.TaskGroup() as tg: | File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__ | raise me from None | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py", line 520, in wait_for |returnawait fut |^^^^^^^^^| File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Android/android.py", line 496, in find_pid |await asyncio.sleep(0.2) | File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py", line 665, in sleep |returnawait future |^^^^^^^^^^^^| asyncio.exceptions.CancelledError || The above exception was the direct cause of the following exception: || Traceback (most recent call last): | File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Android/android.py", line 505, in logcat_task | pid =await wait_for(find_pid(serial), startup_timeout) |^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py", line 519, in wait_for |asyncwith timeouts.timeout(timeout): | File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 115, in__aexit__|raiseTimeoutErrorfrom exc_val |TimeoutError+------------------------------------

@bedevere-bot
Copy link

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

Hi! The buildbot AMD64 Android 3.x (tier-3) has failed when building commit cac4b04.

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/1591/builds/3486) and take a look at the build logs.
  4. Check if the failure is related to this commit (cac4b04) 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/1591/builds/3486

Failed tests:

  • test_urllib2
  • test_urllibnet

Failed subtests:

  • test_getcode - test.test_urllibnet.urlopenNetworkTests.test_getcode
  • test_ftp_error - test.test_urllib2.HandlerTests.test_ftp_error

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

==

Click to see traceback logs
Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/test/test_urllib2.py", line 798, in test_ftp_error urlopen("ftp://www.pythontest.net/") ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 487, in open response =self._open(req, data) Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 1529, in ftp_open host = socket.gethostbyname(host) socket.gaierror: [Errno 7] No address associated with hostname Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/test/test_urllib2.py", line 798, in test_ftp_error urlopen("ftp://www.pythontest.net/") ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 487, in open response =self._open(req, data) File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 504, in _open result =self._call_chain(self.handle_open, protocol, protocol +'_open', req) File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 464, in _call_chain result = func(*args) File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 1531, in ftp_openraise URLError(msg) urllib.error.URLError: <urlopen error [Errno 7] No address associated with hostname> Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/test/test_urllib2.py", line 800, in test_ftp_errorself.assertEqual(raised.reason, ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^f"ftp error: {exception.args[0]}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: gaierror(7, 'No address associated with hostname') != 'ftp error: 500 OOPS: cannot change directory:/nonexistent' Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/test/test_urllibnet.py", line 107, in test_getcodeself.assertEqual(e.exception.code, 404) ^^^^^^^^^^^^^^^^AttributeError: 'URLError' object has no attribute 'code'

Yhg1s pushed a commit that referenced this pull request Dec 5, 2025
Fix disk space issues in Android CI (GH-142289) (cherry picked from commit cac4b04) Co-authored-by: Malcolm Smith <smith@chaquo.com>
hugovk pushed a commit that referenced this pull request Dec 5, 2025
Co-authored-by: Malcolm Smith <smith@chaquo.com>
@bedevere-bot
Copy link

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

Hi! The buildbot AMD64 Android 3.x (tier-3) has failed when building commit cac4b04.

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/1591/builds/3487) and take a look at the build logs.
  4. Check if the failure is related to this commit (cac4b04) 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/1591/builds/3487

Failed tests:

  • test_urllib2
  • test_urllibnet

Failed subtests:

  • test_getcode - test.test_urllibnet.urlopenNetworkTests.test_getcode
  • test_ftp_error - test.test_urllib2.HandlerTests.test_ftp_error

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

==

Click to see traceback logs
Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/test/test_urllib2.py", line 798, in test_ftp_error urlopen("ftp://www.pythontest.net/") ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 487, in open response =self._open(req, data) File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 504, in _open result =self._call_chain(self.handle_open, protocol, protocol +'_open', req) File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 464, in _call_chain result = func(*args) File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 1531, in ftp_openraise URLError(msg) urllib.error.URLError: <urlopen error [Errno 7] No address associated with hostname> Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/test/test_urllib2.py", line 800, in test_ftp_errorself.assertEqual(raised.reason, ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^f"ftp error: {exception.args[0]}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: gaierror(7, 'No address associated with hostname') != 'ftp error: 500 OOPS: cannot change directory:/nonexistent' Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/urllib/request.py", line 1529, in ftp_open host = socket.gethostbyname(host) socket.gaierror: [Errno 7] No address associated with hostname Traceback (most recent call last): File "/data/user/0/org.python.testbed/files/python/lib/python3.15/test/test_urllibnet.py", line 107, in test_getcodeself.assertEqual(e.exception.code, 404) ^^^^^^^^^^^^^^^^AttributeError: 'URLError' object has no attribute 'code'

@Ascalad
Copy link

On my Android device I have problems and I get a lot of errors when entering apps in navigations. Also the computer device is not working properly and extensions and desktop file are not opening. Pull request and merge repository closes these problems.

@mhsmith
Copy link
MemberAuthor

This page is about Python's internal testing system, it doesn't have anything to do with what's happening on your own device.

Sign up for freeto 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

@mhsmith@bedevere-bot@Ascalad@hugovk