Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rst2pdf/0.101: Tests failure when building the debian package #1186

Open
sandrotosi opened this issue Jan 31, 2024 · 3 comments
Open

rst2pdf/0.101: Tests failure when building the debian package #1186

sandrotosi opened this issue Jan 31, 2024 · 3 comments

Comments

@sandrotosi
Copy link

Hello! i maintain rst2pdf in Debian and while packaging 0.101 i decided to start running the unittests provided in the source tarballs. Most of them succeed but a few are failing:

FAILED tests/input/test-referencing-an-aliased-font.rst::test-referencing-an-aliased-font
FAILED tests/input/test_aafigure.rst::test_aafigure
FAILED tests/input/test_aafigure_extra.rst::test_aafigure_extra
FAILED tests/input/test_blockquotes_in_table.rst::test_blockquotes_in_table
FAILED tests/input/test_docutils_math.rst::test_docutils_math
FAILED tests/input/test_issue_231.rst::test_issue_231
FAILED tests/input/test_issue_349.rst::test_issue_349
FAILED tests/input/test_issue_363.rst::test_issue_363
FAILED tests/input/test_issue_73_unicode_box_drawing_characters_renders_without_errors.rst::test_issue_73_unicode_box_drawing_characters_renders_without_errors
FAILED tests/input/test_issue_785.rst::test_issue_785
FAILED tests/input/test_math.rst::test_math
FAILED tests/input/test_raw_html.rst::test_raw_html
FAILED tests/input/test_slides.rst::test_slides
FAILED tests/input/sphinx-issue252/conf.py::sphinx-issue252
FAILED tests/input/sphinx-issue257/conf.py::sphinx-issue257

the full build log is rst2pdf_0.101-1_amd64.build.txt (the tests results are at the end, both for Python 3.11 and 3.12) and they are mostly because the diff threshold was higher than expected.

Im wondering if we can do something to make the tests succeed; the full list of dependencies installed is in the build log but:

🖥 Versions

# python3.11 -V
Python 3.11.7
# python3.12 -V
Python 3.12.1

pip freeze | grep rst2pdf
0.101

pip freeze | grep reportlab
4.0.9-1

pip freeze | grep Sphinx
7.2.6

Which operating system are you using?

Debian unstable

thanks!

@akrabat
Copy link
Member

akrabat commented Jan 31, 2024

Thanks for letting us know Sandro. The tests work locally for me and passed on CI in #1181 just now, so there's something different here. I'll look into it.

@dvzrv
Copy link

dvzrv commented Apr 11, 2024

When rebuilding the package for Arch Linux for the Python 3.12 rebuild I'm running into a similar set of failures:

=========================== short test summary info ============================
FAILED tests/input/sphinx-issue252/conf.py::sphinx-issue252
FAILED tests/input/test-referencing-an-aliased-font.rst::test-referencing-an-aliased-font
FAILED tests/input/test_aafigure_extra.rst::test_aafigure_extra
FAILED tests/input/test_blockquotes_in_table.rst::test_blockquotes_in_table
FAILED tests/input/test_docutils_math.rst::test_docutils_math
FAILED tests/input/test_issue_231.rst::test_issue_231
FAILED tests/input/test_issue_349.rst::test_issue_349
FAILED tests/input/test_issue_363.rst::test_issue_363
FAILED tests/input/test_issue_73_unicode_box_drawing_characters_renders_without_errors.rst::test_issue_73_unicode_box_drawing_characters_renders_without_errors
FAILED tests/input/test_issue_785.rst::test_issue_785
===== 10 failed, 280 passed, 22 skipped, 2 deselected in 144.16s (0:02:24) =====

rst2pdf-0.101-2-x86_64-build.log
rst2pdf-0.101-2-x86_64-check.log

@akrabat
Copy link
Member

akrabat commented Apr 12, 2024

Hi,
It would be helpful if you could provide the generated PDF and log file that is in tests/output for these failed tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants