-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
tests: replace the LDAP OSS-Fuzz testcase #4530
Conversation
The original testcase triggers a separate issue on 32-bit machines: secdev#4527 and it should probably be tested separately. The new testcase triggers the issue fixed in 1935723 only: ```sh >>> assert l[0][LDAP].summary() == "LDAP" Traceback (most recent call last): File "<input>", line 2, in <module> File "scapy/scapy/packet.py", line 1692, in summary return self._do_summary()[1] ^^^^^^^^^^^^^^^^^^ File "scapy/scapy/packet.py", line 1669, in _do_summary ret = self.mysummary() ^^^^^^^^^^^^^^^^ File "scapy/scapy/layers/ldap.py", line 736, in mysummary self.messageID.val, ^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'val' ```
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4530 +/- ##
==========================================
+ Coverage 80.66% 81.58% +0.92%
==========================================
Files 356 356
Lines 85278 85278
==========================================
+ Hits 68787 69577 +790
+ Misses 16491 15701 -790 |
(Also I was going to switch |
@evverx If that's OK for the packit folks, we could test Scapy on other architectures too. That will be super cool. |
@guedou To clarify, and as pointed out by evverx, we can already do that on all platforms that packit support. (via /packit build) However my point was that packit is designed to help fedora have a more streamlined upstream/downstream integration, not to be a freely available CI. If I understand it well, we're already kinda "abusing" the way it works to use it as a CI (evverx#1 (comment)). I didn't want to have it triggered on each commit because I felt that would be an abuse, so we currently only trigger it manually once in a while. I'm not against it, but out of respect that's probably something we should ask permission for. |
Thanks for the PR anyways! |
Fedora ships scapy (https://src.fedoraproject.org/rpms/scapy) and all the tests running upstream on Fedora machines help to catch things as soon as possible. From a Fedora perspective It's much better than waiting for releases and then trying to figure out why packages fail to build.
Got it. I'll talk to the Packit folks and open a PR once it's confirmed that it's OK to run it on PRs. |
I opened packit/packit#2407 |
The original testcase triggers a separate issue on 32-bit machines: #4527 and it should probably be tested separately. The new testcase triggers the issue fixed in 1935723 only:
It was tested in https://download.copr.fedorainfracloud.org/results/packit/evverx-scapy-2/fedora-40-i386/07994883-scapy/builder-live.log.gz