Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#160,058 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, ubuntu
Ambito
backend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
77.7k
Fork
38.3k
Merge medio
14h 29m
PR unite (30g)
699

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di python/cpython

Tutte le issue di python/cpython

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.