Bug 2326915 - python-webscrapbook fails to build with Python 3.14: 60x AssertionError in the test suite [tests were commented out]
Summary: python-webscrapbook fails to build with Python 3.14: 60x AssertionError in th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-webscrapbook
Version: 43
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: "FeRD" (Frank Dana)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-18 08:43 UTC by Karolina Surma
Modified: 2025-09-15 01:41 UTC (History)
3 users (show)

Fixed In Version: python-webscrapbook-2.7.1-1.fc43
Clone Of:
Environment:
Last Closed: 2025-09-15 01:41:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-11-18 08:43:32 UTC
python-webscrapbook fails to build with Python 3.14.0a1.

60 failures - AssertionErrors in the tests

======================================================================
FAIL: test_update_items (tests.test_scrapbook_util.TestHostQuery.test_update_items)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-webscrapbook-2.3.3-build/PyWebScrapBook-48ad89d28e811fe4fc633e5071bd874c76caddee/tests/test_scrapbook_util.py", line 279, in test_update_items
    self.assertEqual(book.fulltext['20200101000000000'], {
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        'index.html': {
        ^^^^^^^^^^^^^^^
            'content': 'Phasellus eros quam.',
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        },
        ^^
    })
    ^^
AssertionError: {'index.html': {'content': ''}} != {'index.html': {'content': 'Phasellus eros quam.'}}
- {'index.html': {'content': ''}}
+ {'index.html': {'content': 'Phasellus eros quam.'}}
?                             ++++++++++++++++++++


https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08257810-python-webscrapbook/

For all our attempts to build python-webscrapbook with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-webscrapbook/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Aoife Moloney 2025-02-26 13:16:55 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Miro Hrončok 2025-08-27 21:36:15 UTC
This has been "fixed" by commenting out the tests.

Please don't do that, see https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_running_tests

> You MAY exclude specific failing tests. You MUST NOT disable the entire testsuite or ignore its result to solve a build failure.


Keeping this bugzilla open.

Comment 3 "FeRD" (Frank Dana) 2025-08-28 17:50:38 UTC
(In reply to Miro Hrončok from comment #2)
> 
> Keeping this bugzilla open.

Thanks for the reference; definitely still an active issue.

The "fix" in question was /intended/ to be a short-term debugging change, which I then (predictably) lost track of. Bad packager, no cookie.

(Worse, I'm not even sure if I ever reported the failing tests upstream. Really killing it, on this one.)

Whether or not I did, hopefully by now there's a newer release with, if not completely-passing tests, then at least a more reasonable number of failing tests that can be individually excluded. (68 seems well in excess of that threshold.) I'll investigate.

Comment 4 "FeRD" (Frank Dana) 2025-08-28 19:55:36 UTC
Huzzah, the latest release has only three failing tests. I'll try to figure out if they can be fixed, but worst case I can just exclude those three. Either way, I'll put together an update with the test suite re-enabled.

Comment 5 Miro Hrončok 2025-08-28 20:21:13 UTC
> Bad packager, no cookie.

Don't worry about it :D

Comment 6 Fedora Update System 2025-09-03 07:32:50 UTC
FEDORA-2025-02634e1043 (python-webscrapbook-2.7.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-02634e1043

Comment 7 Fedora Update System 2025-09-06 00:44:16 UTC
FEDORA-2025-bb89a34d2d (python-webscrapbook-2.7.1-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bb89a34d2d

Comment 8 Fedora Update System 2025-09-07 04:35:57 UTC
FEDORA-2025-bb89a34d2d has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-bb89a34d2d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-bb89a34d2d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 "FeRD" (Frank Dana) 2025-09-12 20:09:06 UTC
So, I'm confused by this Bodhi action that just came across for the package:
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bb89a34d2d

----------
FEDORA-2025-bb89a34d2d ejected from the push because 'No checks required but update has less than 1 karma and has been in testing less than 7 days.'
----------

...That was the build that _did_ reenable (and passed!) the full %check suite. (If that's what the message is referring to.)

Comment 10 "FeRD" (Frank Dana) 2025-09-14 00:30:32 UTC
Kevin Fenzi sent a devel-announce email[1] explaining the ejections, and I'll stage the update for Fedora 43 Beta as soon as it's eligible.                                                                                                                                  

[1]: https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org/thread/DWAH32EP765ME2XG5FSEKUO4W4OQKKAV/

Comment 11 Fedora Update System 2025-09-15 01:41:55 UTC
FEDORA-2025-bb89a34d2d (python-webscrapbook-2.7.1-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.