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

ci: Minor cppcheck speedup #4268

Merged
merged 4 commits into from
Oct 28, 2023
Merged

ci: Minor cppcheck speedup #4268

merged 4 commits into from
Oct 28, 2023

Conversation

lrstewart
Copy link
Contributor

@lrstewart lrstewart commented Oct 27, 2023

Description of changes:

We can get a speedup for cppcheck if we change how we compile it. From my testing, this seems to bring it down from 1:30-2:00 to 1:00-1:10. Most of the savings likely come from MATCHCOMPILER, but maybe the optimizations help a little?

For a bigger speedup we'll need a cache, like Cameron started to add in #2642.

Testing:

Here's one of my test runs: https://github.com/lrstewart/s2n/actions/runs/6661235504/job/18103779503?pr=31

We cache our build of cppcheck, but the cppcheck action doesn't run on main so this PR won't use a cached value from main without my build changes. I verified that by checking our caches: https://github.com/aws/s2n-tls/actions/caches

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Oct 27, 2023
@lrstewart lrstewart marked this pull request as ready for review October 27, 2023 05:46
@lrstewart lrstewart requested a review from dougch as a code owner October 27, 2023 05:46
@lrstewart lrstewart requested a review from jmayclin October 27, 2023 05:50
@lrstewart lrstewart enabled auto-merge (squash) October 27, 2023 18:26
@lrstewart lrstewart merged commit 95753f0 into aws:main Oct 28, 2023
23 checks passed
@lrstewart lrstewart deleted the ci branch October 28, 2023 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants