Bug 1956399

Summary: scapy: Remove dependency on tox
Product: Red Hat Enterprise Linux 9 Reporter: Miro Hrončok <mhroncok>
Component: scapyAssignee: Andrea Claudi <aclaudi>
Status: CLOSED CURRENTRELEASE QA Contact: Li Shuang <shuali>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aclaudi, asamalik, python-maint, rlemosor, shuali, torsava
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: scapy-2.4.4-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:33:05 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: 1887522, 1918886    

Description Miro Hrončok 2021-05-03 15:44:17 UTC
Please remove the dependency on tox, as tox is to be removed from RHEL 9.

If you cannot remove the dependency on tox, let us know ASAP, so we can decide on the best next step.

Thanks.

Comment 1 Miro Hrončok 2021-05-18 22:01:06 UTC
Andrea, could you please respond here?

Comment 2 Miro Hrončok 2021-05-31 12:17:28 UTC
Gentle ping here. We would like to remove tox, could you please remove the dependency? I can send a merge request, but this bugzilla lacks the necessary release+ flag.

Comment 3 Andrea Claudi 2021-05-31 13:19:31 UTC
Hi Miro,
and sorry for the late answer. AFAICS, tox is needed to build the scapy-doc package, but if we can go without that there is no problem on my side on removing the tox dependency. Can you please confirm this?

Comment 4 Miro Hrončok 2021-05-31 13:57:29 UTC
Since you asked me to verify, I've prepared the change in https://gitlab.com/redhat/centos-stream/rpms/scapy/-/merge_requests/1

However, it requires the release+ flag here.

Comment 5 Andrea Claudi 2021-05-31 14:08:47 UTC
Thanks Miro, I have no objection to your patch.
Shuang, can you please consider to set qa_ack+ and ITM? Thanks!

Comment 6 Li Shuang 2021-06-01 02:31:44 UTC
Hi Andrea,

Could you help to give some testing instructions?

Thanks,
Shuang

Comment 7 Andrea Claudi 2021-06-01 09:32:11 UTC
Hi Shuang, sure. As this is a build dependency, you can:

1. clone the scapy package dist-git repo (http://pkgs.devel.redhat.com/cgit/rpms/scapy/) and switch to the rhel-9.0.0-beta branch
2. try to build the package with "rhpkg local" and verify it doesn't ask for python3-tox to be installed

Comment 8 Andrea Claudi 2021-06-01 09:33:16 UTC
Switching it to ON_QA as the change already hit rhel-9.0.0-beta.

Comment 9 Tomas Orsava 2021-06-09 16:18:43 UTC
(In reply to Andrea Claudi from comment #8)
> Switching it to ON_QA as the change already hit rhel-9.0.0-beta.

Hi Andrea, I have just checked the RHEL 9 Beta composes, and they still contain the old version of scapy (0:2.4.4-2) that still depends on tox. Could you please take a look? Perhaps it's stuck on gating.

Comment 10 Miro Hrončok 2021-06-09 16:31:27 UTC
The latest RHEL9 build is scapy-2.4.4-2.el9. It is past gating but it does not yet contain the fix.

The situation in CentOS Stream 9 is the same.

The fixed commit https://gitlab.com/redhat/centos-stream/rpms/scapy/-/commit/71b7e779d245611341d1bcb0c9bf611aa21d4af9 has not yet been built.


(The testing instructions are not good enough, because they only test the state in git.)

Comment 12 Miro Hrončok 2021-06-15 12:05:28 UTC
May I build the package? Or could you?

Comment 13 Adam Samalik 2021-06-17 11:52:48 UTC
Getting this change built and included in the compose is one of two things that block the removal of ~120 packages from RHEL: https://issues.redhat.com/browse/RHELPLAN-84346

Comment 14 Andrea Claudi 2021-06-17 12:34:43 UTC
Miro, for some reason I erroneously thought that merging the change was enough to trigger the build. Sorry about that and for the late answer, I was OoO for some days. I'll build the package today.

Comment 19 Miro Hrončok 2021-06-21 06:54:23 UTC
Tox was a *build* dependency of scapy, hence installing scapy is not a good verification for this bugzilla.
Instead, repoquering the source repositories, verifying from the SRPM directly, or building the package in brew is a good verification.

OTOH there's no point to verify tox dependency is missing, the change was very explicit about that. Better to verify the generated documentation is still the same as before.

Anyway, the build i still stuck on gating.

Comment 20 Andrea Claudi 2021-06-21 14:29:09 UTC
Gating issues solved asking osci team to manually restart tests. rpmdeplint failure seems to be unrelated to scapy, double-checking it before waiving.