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

Update patch for Postgres #2232

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samuel40791765
Copy link
Contributor

Issues:

Addresses CryptoAlg-2917

Description of changes:

The original patch I had for Postgres wasn't the best, as it just simply commented out the single test we didn't support. It's not a patch worthy of submitting upstream.
This new patch simply adds a function check specific to AWS-LC and leverages existing logic to skip the test. I've kept the error string replacements out of the script to minimize churn with our Postgres CI and left a comment regarding that.

Call-outs:

N/A

Testing:

CI

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.

@samuel40791765 samuel40791765 requested a review from a team as a code owner March 1, 2025 00:17
@samuel40791765 samuel40791765 force-pushed the postgres-patch-update branch from 9a0f07d to d9e0eba Compare March 1, 2025 00:17
Comment on lines +17 to +28
+fi
+done
+
+ # Function specific to AWS-LC.
+ for ac_func in awslc_version_string
+do :
+ ac_fn_c_check_func "$LINENO" "awslc_version_string" "ac_cv_func_awslc_version_string"
+if test "x$ac_cv_func_awslc_version_string" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_AWSLC_VERSION_STRING 1
+_ACEOF
+
Copy link
Contributor Author

@samuel40791765 samuel40791765 Mar 1, 2025

Choose a reason for hiding this comment

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

This was autogenerated via autoconf after adding the logic in configure.ac, which is what upstream postgres also does.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.04%. Comparing base (913af96) to head (d9e0eba).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2232   +/-   ##
=======================================
  Coverage   79.04%   79.04%           
=======================================
  Files         612      612           
  Lines      106510   106510           
  Branches    15053    15051    -2     
=======================================
+ Hits        84192    84193    +1     
  Misses      21664    21664           
+ Partials      654      653    -1     

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

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