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

Run FIPS break tests as a part of the CI #1005

Merged
merged 3 commits into from
May 15, 2023
Merged

Conversation

andrewhop
Copy link
Contributor

Description of changes:

Ensure break-kat.go will always work by running it during the FIPS tests. This takes the KAT change from #996 and also runs just the test. Also updated common_posix.sh to always print out the debug information so it's easier to debug things in the future.

Testing:

Ran the script locally.

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

torben-hansen
torben-hansen previously approved these changes May 11, 2023
dkostic
dkostic previously approved these changes May 15, 2023
@andrewhop andrewhop dismissed stale reviews from dkostic and torben-hansen via 1bae7de May 15, 2023 17:35
@andrewhop andrewhop enabled auto-merge (squash) May 15, 2023 17:43
@andrewhop andrewhop merged commit f59ceb9 into aws:main May 15, 2023
andrewhop added a commit that referenced this pull request Feb 6, 2025
### Description of changes: 
The original intention of #1005 was to
ensure break-kat.go always worked with the library.
#1252 then used a side effect to get
the module hash but didn't actually fail the build if the hash was
different.

Turn on `pipefail` so the script exits unsuccessfully if any command
fails even in a pipe. Previously if test-break-kat.sh failed the script
didn't exit, instead it would continue to the grep which would also fail
to find any matching string, and then the `|| true` ensured the script
always continued on.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
andrewhop added a commit to andrewhop/aws-lc that referenced this pull request Feb 6, 2025
### Description of changes:
The original intention of aws#1005 was to
ensure break-kat.go always worked with the library.
aws#1252 then used a side effect to get
the module hash but didn't actually fail the build if the hash was
different.

Turn on `pipefail` so the script exits unsuccessfully if any command
fails even in a pipe. Previously if test-break-kat.sh failed the script
didn't exit, instead it would continue to the grep which would also fail
to find any matching string, and then the `|| true` ensured the script
always continued on.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
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.

3 participants