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(s2n-quic-core): use a smaller length in the Kani test #2128

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

zhassan-aws
Copy link
Contributor

Resolved issues:

This fixes the issue of Kani going out of memory in CI on the inet::checksum::tests::differential test, e.g.

https://github.com/aws/s2n-quic/actions/runs/7892365794/job/21538690964

Description of changes:

The current length used in the inet::checksum::tests::differential test is 16, which causes Kani's latest version (v0.46.0) to run out of memory (see model-checking/kani#3030). Until this issue is fixed, reducing the length to 4 to allow a smaller unwinding depth to prevent the OOM issue.

Call-outs:

Testing:

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

Copy link
Contributor

@camshaft camshaft left a comment

Choose a reason for hiding this comment

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

Thanks!

// Reduce the length to 4 for Kani until
// https://github.com/model-checking/kani/issues/3030 is fixed
#[cfg(any(kani, miri))]
const LEN: usize = if cfg!(kani) { 4 } else { 32 };
Copy link
Contributor Author

@zhassan-aws zhassan-aws Feb 15, 2024

Choose a reason for hiding this comment

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

I just noticed that I inadvertently changed the length for MIRI as well from 16 to 32. Is that OK, or should I revert it?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we'll see if the CI job times out :)

Copy link
Contributor

Choose a reason for hiding this comment

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

@camshaft camshaft merged commit 311ece3 into aws:main Feb 15, 2024
108 of 109 checks passed
@zhassan-aws zhassan-aws deleted the reduce-len branch February 15, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants