Skip to content
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

Move libpcap tests to Github Actions #3143

Merged
merged 6 commits into from
Mar 30, 2021
Merged

Move libpcap tests to Github Actions #3143

merged 6 commits into from
Mar 30, 2021

Conversation

gpotter2
Copy link
Member

@gpotter2 gpotter2 commented Mar 17, 2021

  • Move libpcap tests to Github actions since our travis suite is pretty much dead
  • Only test root with PyPy (the only differences we're testing with PyPy are the attach_filter functions.. root only + pypy tests already are super long due to the build-on-install)
  • Small Github Actions tweaks

It appears that 880d048 has broken libpcap on Linux. This fixes it

@codecov
Copy link

codecov bot commented Mar 17, 2021

Codecov Report

Merging #3143 (7333f79) into master (9652b23) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3143      +/-   ##
==========================================
- Coverage   85.25%   85.25%   -0.01%     
==========================================
  Files         261      261              
  Lines       54349    54349              
==========================================
- Hits        46336    46334       -2     
- Misses       8013     8015       +2     
Impacted Files Coverage Δ
scapy/arch/libpcap.py 68.96% <100.00%> (ø)
scapy/arch/windows/__init__.py 67.73% <0.00%> (-0.57%) ⬇️
scapy/layers/inet.py 65.92% <0.00%> (-0.08%) ⬇️
scapy/fields.py 91.37% <0.00%> (+0.05%) ⬆️
scapy/layers/ntp.py 84.86% <0.00%> (+0.27%) ⬆️

@gpotter2
Copy link
Member Author

@p-l- @guedou This is now ready for review (and working 😄)


# Detect install mode
if [[ "${1}" == "libpcap" ]]; then
export SCAPY_USE_LIBPCAP="yes"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this does not work. The variable will be removed when install.sh stops.

Copy link
Member Author

@gpotter2 gpotter2 Mar 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, the export is useless. We still need to set it for further below in the script though.

runs-on: ${{ matrix.os }}
timeout-minutes: 25
timeout-minutes: 20
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you decreasing this value?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I increased it very recently as a workaround for GLMAN tests failing, but it shouldn't be required anymore. You can have a look at the timeouts of this build: we're well under that limit.

@p-l- p-l- merged commit 2b96a8e into secdev:master Mar 30, 2021
@gpotter2 gpotter2 deleted the libpcap branch March 30, 2021 14:58
bzalkilani pushed a commit to bzalkilani/scapy that referenced this pull request Jun 12, 2022
* Enable libpcap tests on GHCI

* Remove libpcap tests from travis

* Reduce GHCI timeout accordingly

* Fix libpcap tests

* Fix libpcap packet timeout

* Remove useless export
bzalkilani pushed a commit to bzalkilani/scapy that referenced this pull request Jun 14, 2022
* Enable libpcap tests on GHCI

* Remove libpcap tests from travis

* Reduce GHCI timeout accordingly

* Fix libpcap tests

* Fix libpcap packet timeout

* Remove useless export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants