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

Ensure enabling local symbols doesn't change the module hash #2169

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

andrewhop
Copy link
Contributor

@andrewhop andrewhop commented Feb 5, 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 andrewhop requested a review from a team as a code owner February 5, 2025 01:39
@andrewhop andrewhop requested a review from nebeid February 5, 2025 01:39
@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.97%. Comparing base (cc9c9f0) to head (18efef9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2169   +/-   ##
=======================================
  Coverage   78.97%   78.97%           
=======================================
  Files         611      611           
  Lines      105552   105632   +80     
  Branches    14950    14951    +1     
=======================================
+ Hits        83361    83428   +67     
- Misses      21538    21554   +16     
+ Partials      653      650    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrewhop andrewhop changed the title Ensure local symbols doesn't change the module hash Ensure enabling local symbols doesn't change the module hash Feb 5, 2025
@andrewhop andrewhop merged commit f407534 into aws:main Feb 6, 2025
120 of 126 checks passed
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.

4 participants