Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

test_bz2 failed on RISC-V 64-bit Ubuntu Clang 3.15

Aberta
#160,058 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python, ubuntu
Domínio
backend, testing

Direção de pesquisa

Start with Lib/test/test_bz2.py, especially testOpenDel around line 470 and testDecompressorChunksMaxsize around line 963, and inspect the linked buildbot run. Re-run the failing tests on the RISC-V 64-bit Ubuntu Clang builder to determine whether the timeout and invalid stream error reproduce or stem from the reported repository corruption. Done when the cause is established and the affected test passes reliably.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

tests type-bug

RISC-V 64-bit Ubuntu Clang 3.15: https://buildbot.python.org/#/builders/2256/builds/229

The first run timed out:

0:57:52 load avg: 0.27 [560/560/1] test_bz2 worker non-zero exit code (Exit code 1)
(...)
testMultiStreamOrdering (test.test_bz2.BZ2FileTest.testMultiStreamOrdering) ... ok
testOpenBytesFilename (test.test_bz2.BZ2FileTest.testOpenBytesFilename) ... ok
testOpenDel (test.test_bz2.BZ2FileTest.testOpenDel) ... Timeout (0:40:00)!
Thread 0x0000003fe1894020 [python] (most recent call first):
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/compression/_common/_streams.py", line 53 in __init__
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/bz2.py", line 91 in __init__
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/test_bz2.py", line 470 in testOpenDel
  (...)

When re-run in verbose mode, testDecompressorChunksMaxsize() failed:

ERROR: testDecompressorChunksMaxsize (test.test_bz2.BZ2DecompressorTest.testDecompressorChunksMaxsize)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildbot/workers/rise-riscv64-2/3.15.rise-riscv64-2.clang/build/Lib/test/test_bz2.py", line 963, in testDecompressorChunksMaxsize
    out.append(bzd.decompress(b'', max_length=max_length))
               ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: Invalid data stream

Maybe the machine is sick, git gc failed with:

error: bad packed object CRC for 2220dc50df3746dee568bd36eda88e6cdc83b542
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
fatal: object 2220dc50df3746dee568bd36eda88e6cdc83b542 cannot be read
fatal: could not finish pack-objects to repack promisor objects
fatal: failed to run repack
fatal: object 2220dc50df3746dee568bd36eda88e6cdc83b542 cannot be read
fatal: could not finish pack-objects to repack promisor objects
fatal: failed to run repack
Linguagem predominante
Python
Estrelas
77.7k
Forks
38.3k
Merge médio
14h 29min
PRs com merge (30d)
699

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de python/cpython

Todas as issues de python/cpython

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.