-
Notifications
You must be signed in to change notification settings - Fork 134
Update patch for Postgres #2232
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
Conversation
9a0f07d
to
d9e0eba
Compare
+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 | ||
+ |
There was a problem hiding this comment.
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 ReportAll modified and coverable lines are covered by tests ✅
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. |
This reverts commit db72311.
This reverts commit db72311.
This reverts commit db72311. The original patch was much more stable. Instead of changing the postgres configure script to check against AWS-LC functions, we comment out the relevant test instead. I've added comments in the patch to reference back to the commit if we ever decide to upstream support to postgres. The Postgres ARM CI dimension is failing, but the failure doesn't seem relevant to this patch. 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.
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.