Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#160,058 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python, ubuntu
领域
backend, testing

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Python
星标
77.7k
派生
38.3k
平均合并
14 小时 29 分钟
30 天内合并 PR
699

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python/cpython 的其他 Issue

查看 python/cpython 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。