Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1752766 - Tests fail: No matching package to install: 'python3-sip'
Summary: Tests fail: No matching package to install: 'python3-sip'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: enki
Version: 31
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL: http://apps.fedoraproject.org/koschei...
Whiteboard: PatchNeeded
Depends On:
Blocks: 1753069
TreeView+ depends on / blocked
 
Reported: 2019-09-17 08:03 UTC by Raphael Groner
Modified: 2020-02-07 00:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-07 00:38:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1748527 0 unspecified CLOSED Consider moving sip-api provides from python2-sip to python3-sip 2022-05-16 11:32:56 UTC

Description Raphael Groner 2019-09-17 08:03:11 UTC
Description of problem:
Package enki fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
18.08.0-5.fc32

Steps to Reproduce:
koji build --scratch f32 enki-18.08.0-5.fc32.src.rpm
https://koji.fedoraproject.org/koji/taskinfo?taskID=37699610
...
No matching package to install: 'python3-sip'

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/enki

Comment 1 Raphael Groner 2019-09-17 08:05:29 UTC
FTBFS obviously due to recent rebuild that's not generated any python3-sip but python3-sip-devel only.
ttps://koji.fedoraproject.org/koji/buildinfo?buildID=1378142
https://src.fedoraproject.org/rpms/sip/c/f7175e4e20301e63d2bc8ac7bfa677c3a6eed4f6?branch=master

Comment 3 Raphael Groner 2019-09-17 08:09:19 UTC
BTW python2-sip is missing, too.

Comment 4 Victor Stinner 2019-09-17 08:20:04 UTC
Hi,

What's the rationale for sip 4.19.18-7 change "drop no_namespace variant for f31+"? What is supposed to provide python3-sip? Something like "python3-sip-api12"?

Victor

Comment 5 Victor Stinner 2019-09-17 08:27:07 UTC
> What's the rationale for sip 4.19.18-7 change "drop no_namespace variant for f31+"? What is supposed to provide python3-sip? Something like "python3-sip-api12"?

Oh, I found the rationale: see bz #1748527. enki requirements should look like:
                                 
%{?_sip_api:Requires: python3-sip-api(%{_sip_api_major}) >= %{_sip_api}}

Comment 6 Raphael Groner 2019-09-17 08:27:37 UTC
Some explanation could be found in bug #1748527.

Comment 7 Rex Dieter 2019-09-20 19:32:30 UTC
Simplest fix would be to just remove
Requires: python3-sip

it's unclear to me why that's here or needed.  (Dependencies on python-qt5 should already pull in python3-pyqt5-sip, and you probably don't want more than one loaded at a time)

Comment 8 Rex Dieter 2019-09-20 20:00:17 UTC
So I do see some explicit references to sip on enki source code in tests, though I question why:

tests/test_lib/test_future.py:import sip
tests/test_lib/test_future.py:            sip.delete(o)
tests/base.py:import sip
tests/base.py:    sip.delete(timer)
tests/base.py:    sip.delete(qe)

I would venture, possible fixes include:
* replacing 'sip' with 'PyQt5.sip'
or
* remmove references to sip altogether.

Comment 9 Raphael Groner 2019-09-21 09:20:33 UTC
Rex, thanks for looking into this.

Maybe file the proposal to drop any dependency of sip as a patch or pull request to upstream?

Comment 10 Rex Dieter 2019-10-02 14:44:01 UTC
That's a discussion to be had with your upstream, I'd prefer you do it, but I can as time allows.

Comment 11 Rex Dieter 2019-10-02 14:53:11 UTC
Submitted
https://github.com/andreikop/enki/issues/464

Comment 12 Raphael Groner 2019-10-20 09:16:32 UTC
(In reply to Rex Dieter from comment #11)
> Submitted
> https://github.com/andreikop/enki/issues/464

Upstream closed the issue without any patch or merge. How to proceed then for our package?

Comment 13 Raphael Groner 2019-11-23 09:02:45 UTC
(In reply to Raphael Groner from comment #12)
> (In reply to Rex Dieter from comment #11)
> > Submitted
> > https://github.com/andreikop/enki/issues/464
> 
> Upstream closed the issue without any patch or merge. How to proceed then
> for our package?

Well, that's obviously a bummer or blocker to build properly any new package.

Comment 14 Rex Dieter 2019-11-23 15:07:07 UTC
I'd say just disable the tests, as upstream said: "I do not support the tests now, because there are a lot of hard-to-track infrastructure problems and the tests consume much more time than save."

Comment 15 Raphael Groner 2019-11-23 17:33:00 UTC
Tests are disabled for recent builds. But that's definitely not the recommended way.
Please keep this bug open in hope of an improved upstream reaction.

Comment 16 Rex Dieter 2019-11-23 19:07:10 UTC
Wjat do you mean, disabling tests is not recommended?

That's literally what enki upstream tecommends...

Comment 17 Raphael Groner 2019-11-24 06:59:43 UTC
Maybe those tests have a too complex design for our %check section meaning they've to run in a more common CI environment as we've with gating?

Be aware about the review guideline(s) for a package (mentioned also in fedora-review):
"SHOULD: The reviewer should test that the package functions as described. A package should not segfault instead of running, for example"
https://docs.fedoraproject.org/en-US/packaging-guidelines/ReviewGuidelines/#_things_to_check_on_review

Comment 18 Rex Dieter 2019-11-24 15:57:38 UTC
Probably my last comment on the topic...

sure, our guidelines *do* say you SHOULD run tests, but implicit there are some common-sense items too:
* does upstream recommend always running the tests downstream?
* are the tests reliable?
* are the tests useful?

In this case, I'd say most of answers to those questions is no.

Comment 19 Raphael Groner 2019-11-24 19:42:01 UTC
I can mostly agree although the discussion here tends to get too generic and to run out of scope.

> %{?_sip_api:Requires: python3-sip-api(%{_sip_api_major}) >= %{_sip_api}}
> * replacing 'sip' with 'PyQt5.sip'
Would be a good starting point but we should try to not use any workarounds for the tests at downstream, should we?

Comment 20 Rex Dieter 2019-11-24 22:39:11 UTC
Per comment #7 , you shouldn't need any explicit dependencies, and if you were to apply any downstream patch/workaround, it would be to patch code references to use 'PyQt5.sip' instead of just 'sip'

That said, I would argue against any downstream workarounds at this point.

Comment 21 Raphael Groner 2020-01-10 17:49:21 UTC
Not reproducible (any more) in rawhide, see koschei's recent rebuilds.

Comment 22 Raphael Groner 2020-02-07 00:38:02 UTC
No idea why koschei is stuck with new rebuilds for F31. Closing in behalf of low risk for this.


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