Skip to content

gh-67795: Skip test values below the time_t minimum on platforms with 32-bit time_t - #162878

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-67795-skip-32bit-time-t
Dec 1, 2026
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-67795-skip-32bit-time-t

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Fix the 32-bit buildbots broken by #139273 (ARM Raspbian 3.x, x86 Debian Installed with X 3.x).

On platforms with 32-bit time_t, a value slightly less than the time_t minimum (a few picoseconds below INT_MIN seconds) overflows in _PyTime_ObjectToTimespec() and _PyTime_ObjectToTimeval() even if it is rounded up to the minimum. Skip such values in check_ratio_rounding().

🤖 Generated with Claude Code

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

!buildbot ARM Raspbian 3.x
!buildbot x86 Debian Installed with X 3.x

@bedevere-bot

Copy link
Copy Markdown

The regex 'ARM Raspbian 3.x' did not match any buildbot builder. Is the requested builder in the list of stable builders?

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

!buildbot Raspbian|x86 Debian Installed

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 2030655 🤖

Results will be shown at:

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

The command will test the builders whose names match following regular expression: Raspbian|x86 Debian Installed

The builders matched are:

  • ARM Raspbian PR
  • x86 Debian Installed with X PR
  • ARM64 Raspbian Debug PR
@serhiy-storchaka
serhiy-storchaka merged commit a8c6de2 into python:main Dec 1, 2026
62 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the gh-67795-skip-32bit-time-t branch December 1, 2026 00:01
@bedevere-bot

Copy link
Copy Markdown

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

Hi! The buildbot RISC-V 64-bit Ubuntu Clang 3.x (tier-3) has failed when building commit a8c6de2.

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

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

==

Click to see traceback logs
fatal: SHA1 COLLISION FOUND WITH 02d37d5dd2cefced3e2d834d453d6a5c848a2b9e !
fatal: fetch-pack: invalid index-pack output
fatal: SHA1 COLLISION FOUND WITH 02d37d5dd2cefced3e2d834d453d6a5c848a2b9e !
fatal: fetch-pack: invalid index-pack output
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.

rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: unable to read 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
fatal: could not finish pack-objects to repack promisor objects
fatal: failed to run repack

remote: Enumerating objects: 7, done.        
remote: Counting objects:  14% (1/7)        
remote: Counting objects:  28% (2/7)        
remote: Counting objects:  42% (3/7)        
remote: Counting objects:  57% (4/7)        
remote: Counting objects:  71% (5/7)        
remote: Counting objects:  85% (6/7)        
remote: Counting objects: 100% (7/7)        
remote: Counting objects: 100% (7/7), 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 4 (delta 3), reused 0 (delta 0), pack-reused 0 (from 0)        
Receiving objects:  25% (1/4)
Receiving objects:  50% (2/4)
Receiving objects:  75% (3/4)
Receiving objects: 100% (4/4)
Receiving objects: 100% (4/4), 1.08 KiB | 39.00 KiB/s, done.
Resolving deltas:   0% (0/3)
Resolving deltas:  33% (1/3)
Resolving deltas:  66% (2/3)
Resolving deltas: 100% (3/3)
Resolving deltas: 100% (3/3), completed with 3 local objects.
From https://github.com/python/cpython
 * branch                  main       -> FETCH_HEAD
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.

rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: unable to read 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
fatal: could not finish pack-objects to repack promisor objects
fatal: failed to run repack

Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.

rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
rror: bad packed object CRC for 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: unable to read 02d26c4bef3ad0f9c97e47993a7fa67898842e5c
fatal: could not finish pack-objects to repack promisor objects
fatal: failed to run repack

Note: switching to 'a8c6de26fa4775f137228defbda7ceb421ac0510'.

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 a8c6de26fa gh-67795: Skip test values below the time_t minimum on platforms with 32-bit time_t (GH-162878)
Switched to and reset branch 'main'

configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module

python: Python/marshal.c:634: void w_resolve_refs(WFILE *): Assertion `*ptr == TYPE_REF' failed.
Aborted (core dumped)
make: *** [Makefile:2574: pythoninfo] Error 134
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

2 participants