Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Test failure on 32-bit Intel-compatible architecture

オープン
#147 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

tests/test_data_structures.py と test_estimated_compression_context_size から始め、次に 32 ビットの Intel 互換ビルドで失敗しているテストを実行します。報告されたサイズの差をテストの期待値と比較し、実装とアーキテクチャ固有の assertion のどちらが誤っているのかを判断します。修正するか、明確な根拠のある skip にするかを決定できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

While building on the 32-bit Intel compatible architecture ('i386'), we see this test failure:

======================================================================
FAIL: test_estimated_compression_context_size (tests.test_data_structures.TestCompressionParameters)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-zstandard-0.15.2.drv-0/zstandard-0.15.2/tests/test_data_structures.py", line 104, in test_estimated_compression_context_size
    self.assertAlmostEqual(
AssertionError: 1294656 != 1295064 within 400 delta (408 difference)

----------------------------------------------------------------------
Ran 278 tests in 0.866s

FAILED (failures=1, skipped=42)
Test failed: <unittest.runner.TextTestResult run=278 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=278 errors=0 failures=1>
command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with status 1

I noticed that Gentoo is skipping the test: https://bugs.gentoo.org/773979

Can you advise if this test should be skipped? Or does it highlight a real problem with python-zstandard on the 32-bit Intel architecture?

主要言語
C
スター
641
フォーク
117
平均マージ
8日 2時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

indygreg/python-zstandard のほかの issue

indygreg/python-zstandard の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。