indygreg / indygreg/python-zstandard
Test failure on 32-bit Intel-compatible architecture
Nessuno ha ancora preso questa issue.
- Lingua principale
- C
- Stelle
- 642
- Fork
- 116
- Merge medio
- 1g 14h
- PR unite (30g)
- 5
Descrizione
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?
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con tests/test_data_structures.py e test_estimated_compression_context_size, quindi esegui il test fallito su una build compatibile Intel a 32 bit. Confronta la differenza di dimensione riportata con il valore previsto dal test e determina se l’implementazione o l’assertion specifica dell’architettura è errata; il lavoro è completato quando si è deciso tra una correzione e uno skip esplicitamente giustificato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- operating-systems, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100