8000 Update patch for Postgres by samuel40791765 · Pull Request #2232 · aws/aws-lc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Mar 10, 2025

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
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.

@samuel40791765 samuel40791765 merged commit db72311 into aws:main Mar 10, 2025
111 of 114 checks passed
@samuel40791765 samuel40791765 deleted the postgres-patch-update branch March 10, 2025 18:46
samuel40791765 added a commit to samuel40791765/aws-lc that referenced this pull request Apr 23, 2025
samuel40791765 added a commit to samuel40791765/aws-lc that referenced this pull request May 1, 2025
samuel40791765 added a commit that referenced this pull request May 2, 2025
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.
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
0