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

TEST cache netmap github checkout #11914

Closed
wants to merge 2 commits into from

Conversation

victorjulien
Copy link
Member

No description provided.

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.19%. Comparing base (d5dd549) to head (e9e2096).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11914      +/-   ##
==========================================
- Coverage   82.70%   79.19%   -3.51%     
==========================================
  Files         912      912              
  Lines      249102   248925     -177     
==========================================
- Hits       206018   197139    -8879     
- Misses      43084    51786    +8702     
Flag Coverage Δ
fuzzcorpus 60.71% <ø> (+0.03%) ⬆️
livemode 18.87% <ø> (+0.14%) ⬆️
pcap 44.15% <ø> (+0.04%) ⬆️
suricata-verify ?
unittests 58.99% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@victorjulien victorjulien force-pushed the gh-cache-netmap/v1 branch 3 times, most recently from 62ed863 to 73d1b51 Compare October 9, 2024 09:33
To avoid build failures due to rate limiting, cache the netmap checkout.

Explicitly restore and save to avoid the checkout action cleaning the
checkout up before it can be stored in the cache.
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
repository: luigirizzo/netmap
# gets cloned to $GITHUB_WORKSPACE/netmap/
path: netmap/

- name: Save Netmap Cache
Copy link
Contributor

Choose a reason for hiding this comment

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

You could also cache the compilation

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 don't want to add additional complexity, this is just about avoiding the rate limit issue

@@ -2489,12 +2496,20 @@ jobs:
linux-headers-$(uname -r)

- name: Checkout Netmap repository
if: steps.netmap-cache.outputs.cache-hit != 'true'
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
Copy link
Contributor

Choose a reason for hiding this comment

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

git clone seems to work better than actions/checkout in #11903

But not sure it is a good path to follow

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 think the checkout action is more idiomatic

@victorjulien victorjulien mentioned this pull request Oct 9, 2024
@victorjulien
Copy link
Member Author

replaced by #11918

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants