Bug 2081915

Summary: copr-frontend FTBFS with werkzeug 2.1.2
Product: [Community] Copr Reporter: Charalampos Stratakis <cstratak>
Component: frontendAssignee: Copr Team <copr-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jkadlcik, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-09 12:18:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2069345    
Attachments:
Description Flags
build.log none

Description Charalampos Stratakis 2022-05-05 01:27:29 UTC
Created attachment 1877191 [details]
build.log

The latest version of python-werkzeug, 2.1.2, intended for rawhide makes copr-frontend FTBFS with 33 test failures, most of those with:

E       assert 400 == 200
E        +  where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code

Full build logs attached.

Comment 1 Pavel Raiskup 2022-05-05 05:20:48 UTC
Thank you for the report.  Is werkzeug 2.1.2 built somewhere so we can
experiment with that?  Copr or Koji side-tag?

Comment 2 Charalampos Stratakis 2022-05-05 12:11:16 UTC
(In reply to Pavel Raiskup from comment #1)
> Thank you for the report.  Is werkzeug 2.1.2 built somewhere so we can
> experiment with that?  Copr or Koji side-tag?

Of course. You can try out this Copr: https://copr.fedorainfracloud.org/coprs/cstratak/werkzeug-2.1.2/

Comment 3 Pavel Raiskup 2022-07-26 19:13:45 UTC
This is an incompatibility of the new werkzeug release, and not-supported
flask-restful package:

  https://github.com/flask-restful/flask-restful/issues/936

We could migrate to one of the flask-restful alternatives, though this causes
problems in the APIv2 logic, and APIv2 should have been removed already, per
our plan:

  https://fedora-copr.github.io/posts/EOL-APIv1-APIv2

We'll stay on F35 for some time. Please ignore this error for now
on Rawdhie.  We'll try to drop the problematic dependency in
next copr-frontend release, and then close this bug.

Comment 4 Pavel Raiskup 2022-07-26 19:15:10 UTC
Thanks to Frantisek Zatloukal for debugging and providing helpful info!

Comment 5 Jakub Kadlčík 2022-08-25 01:06:39 UTC
The APIv2 that Pavel mentioned is now removed but the copr-frontend is
still failing to build in F37/Rawhide. I think it is caused by
python3-flask-2.2.2-1.fc37.noarch.

I created a new issue for it:
https://pagure.io/copr/copr/issue/2293

Comment 6 Jakub Kadlčík 2022-08-31 22:31:34 UTC
Modified in
https://pagure.io/copr/copr/pull-request/2298