`test_compileall` failed in 2038 on 3.12 and 3.13
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Python
- Estrelas
- 77.2k
- Forks
- 36k
- Métricas de merge de PRs
- Métricas de PR pendentes
Descrição
Bug report
Bug description:
While working on reproducible builds for openSUSE (sponsored by the NLnet NGI0 fund), I found that
our python312 package fails to build when the build runs in a VM with
qemu-kvm -rtc base=2038-01-20T00:00:00
# Add a code block here, if required
======================================================================
FAIL: test_import (test.test_compileall.HardlinkDedupTestsNoSourceEpoch.test_import)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abuild/rpmbuild/BUILD/Python-3.12.6/Lib/test/test_py_compile.py", line 22, in wrapper
return fxn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/abuild/rpmbuild/BUILD/Python-3.12.6/Lib/test/test_compileall.py", line 1114, in test_import
self.assertFalse(is_hardlink(pycs[1], pycs[2]))
AssertionError: True is not false
3.13 seems to not be affected by the issue in test_compileall.
The full log is at https://rb.zq1.de/other/python312-ftbfs2038.log.txt
(there are also some expiring SSL certs)
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece por Lib/test/test_compileall.py, próximo de test_import na linha 1114, e reproduza a falha usando o relógio de VM de 2038 descrito no relatório. Compare o comportamento de 3.12 e 3.13 e inspecione o build log vinculado para verificar o resultado do hardlink. Está concluído quando o teste compileall afetado passar no ambiente informado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- build-system, testing-qa
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 35/100