Skip to content

[FIPS 4.x] Backport CI and test fixes - #3892

Open
justsmth wants to merge 23 commits into
aws:fips-2025-09-12-ltsfrom
justsmth:backport-fips4-ci-fixes
Open

justsmth wants to merge 23 commits into
aws:fips-2025-09-12-ltsfrom
justsmth:backport-fips4-ci-fixes

Conversation

@justsmth

@justsmth justsmth commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Issues:

Addresses diagnosed CI failures from #3880.

Description of changes:

Backport mainline CI and test fixes to fips-2025-09-12-lts for toolchain and downstream-project drift, with LTS-specific adjustments to ABI baselines, Rust bindings, and build harnesses. Each mainline PR is backported separately, preserving its author and source-commit reference.

Mainline backports

Listed in branch commit order. The last column identifies the applied scope and any LTS adjustments.

Mainline PR Mainline commit Backport commit Scope / LTS adjustment
#2686 a66b1deb73 4f305b0fb6 Give ACCP FIPS and non-FIPS CodeBuild jobs distinct identifiers.
#2722 1ba90562f4 a2a98b423e Preserve incoming MSVC flags, including /EHsc.
#2825 4dd38064e1 7e50e28fd5 Pin httpd's test harness to pytest<7.0.
#2888 92ff0c52fd 43a00805a0 Fix associative-array handling and use the intended OpenSSL 1.1.1/3.0 comparison baselines.
#2911 76a2504001 b2b60f8a07 Remove socat's unsupported test.sh -v option.
#2953 4b2fea4c35 4aaa131424 Build older CMake versions with bundled curl.
#2966 478ca60d75 66668d12cf Regenerate Rust cc-builder source lists; also regenerate universal bindings so the consumer does not infer APIs absent from LTS.
#3068 b58133f069 9d9ec5ba12 Extend the bundled-curl fix to CMake 4.0.
#3298 d426e060e6 232ed4f1e4 Take the VS2026 generator, SDK warning handling, and intermediate Clang update; retain the LTS matrix and CMake 3.5 compatibility.
#3406 fd0b60f0e8 c6f2a3eaa0 Take only the Windows LLVM upgrade, without expanding the LTS compiler matrix.
#3645 c3661cc415 2a3d92fef2 Guard unused fork-detection test state using the LTS filename and feature macro; do not rename runtime symbols.
#3648 80ea5005b1 dc2cb1eb0a Remove write-only isolated-rand test counters.
#3667 4bb6b63b7f b7bc9ae9e8 Allow added symbols only in release comparisons and preserve tool failures. Omit the mainline ABI freeze/suppressions; add wrapper regressions.
#3669 33e73b30fc 4e6eabec6e Configure and build inside the selected MSYS2 shell, preserving the LTS jobs.
#3687 7274a242a4 a1ecee3006 Make TLS 1.1 tests self-contained. Restrict the server to loopback and add bounded teardown with invalid-cipher and late-client regressions.
#3747 8c07b69b44 91014230fc Apply httpd/libssh2 compatibility patches and Python/Java/Kafka harness updates, retaining the LTS checkout versions and job structure.
#3810 784feabf5f 0992c0a6aa Pin librdkafka to v2.16.0 and exclude upstream races 0151,0182; omit the new tracking job.
#3822 f2ffa25da1 e02e9cad85 Explicitly install MinGW make in the existing MSYS2 matrix.
#3823 1ef42e00aa d014b98c59 Expect socat's non-TLS VSOCK test to fail on the GHA runner.
#3825 e5831c3542 fc181ce5c6 Handle lcov's inconsistent diagnostic for macro-generated functions.

Additional LTS-specific fixes

These have no corresponding mainline PR and are separate commits after the backports.

Commit Change
74dfa0e651 Forward the CMake matrix's generator, FIPS, and linkage arguments through both container wrappers. Retain CMake 3.5 compatibility in the shared FIPS path and add argument-forwarding regressions.
092e49734e Select the highest published stable v4.Y.Z release for FIPS 4 ABI comparisons, with pagination and failure-path regressions.
86c9f47fbd Link libstdc++ after the AWS-LC archives in Linux static Python 3.9 builds, retaining the standalone integration check.

Call-outs:

No public API or BCM implementation changes. Android migration, SAW proof compatibility, the old benchmark image, and timeout failures remain separate follow-ups.

Testing:

Linux normal/FIPS crypto and SSL suites passed; Windows MSVC SSL and targeted tests and macOS targeted tests passed. Rust binding regeneration and 835 consumer tests passed. CMake 3.5 static/shared FIPS builds passed; one datagram test fails under Docker AppArmor but passes natively. Helper regressions and downstream patch checks passed; end-to-end downstream testing and full CI remain pending.

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.

nhatnghiho and others added 23 commits December 4, 2026 17:13
(cherry picked from commit 4b2fea4)
Keep the LTS job matrix and regenerate universal FFI as well as platform bindings, so the cc-builder consumer does not infer APIs absent from FIPS 4.

(cherry picked from commit 478ca60)
(cherry picked from commit b58133f)
…3298)

Backport the SDK warning handling, VS2026 generator, and intermediate Clang update without changing the LTS job matrix or legacy CodeBuild launcher. Use a CMake 3.5-compatible comparison for the MSVC version guard.

(cherry picked from commit d426e06)
Backport only the Windows LLVM upgrade; retain the existing LTS compiler matrix elsewhere.

(cherry picked from commit fd0b60f)
Apply the test-state guards to the LTS fork_detect.c filename and feature macro without renaming runtime symbols.

(cherry picked from commit c3661cc)
Use ignore-additions only for release comparisons and preserve every nonzero abidiff status. Keep incremental checks strict, omit the mainline ABI freeze and suppressions, and add isolated wrapper regression tests.

(cherry picked from commit 4bb6b63)
Preserve the LTS jobs while moving MSYS2 configuration and builds into the selected subsystem shell.

(cherry picked from commit 33e73b3)
…#3687)

Bind the test listener to loopback only, bound accept and socket I/O, and close the listener after its sole accept attempt. Add invalid-cipher and late-client regressions so client failures cannot strand the server thread. Existing CLI listener defaults remain unchanged.

(cherry picked from commit 7274a24)
Retain the LTS checkout versions, Python setup action, libssh2 release/main split, and source-root conventions while applying the downstream patches and broker setup.

(cherry picked from commit 8c07b69)
Pin the existing required job and retain the upstream skip list without adding a new librdkafka-main tracking job.

(cherry picked from commit 784feab)
…#3822)

Apply the explicit MinGW make package to the existing LTS MSYS2 matrix only.

(cherry picked from commit f2ffa25)
Forward the generator, FIPS, and linkage arguments through both container wrappers and test all eight combinations with mocks. Use the CMake 3.5-compatible version comparison in the shared FIPS path that these arguments now exercise.
Select the highest published stable v4.Y.Z release across all pages rather than a mainline release. Add selector regressions covering pagination, prereleases, empty results, and API failures.
Place libstdc++ after the AWS-LC archives when linking static Python 3.9 on Linux, where GCC assertions in libssl require it. Retain the standalone integration job and leave other platforms unchanged.
@justsmth
justsmth requested a review from a team as a code owner December 4, 2026 22:27

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

}

bssl::UniquePtr<X509> x509(X509_new());
uint64_t serial;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warning: variable 'serial' is not initialized [cppcoreguidelines-init-variables]

Suggested change
uint64_t serial;
uint64_t serial = 0;

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🔒 Security Review — View Report

Please review before merging.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.36232% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.27%. Comparing base (fa57b95) to head (86c9f47).
⚠️ Report is 11 commits behind head on fips-2025-09-12-lts.

Files with missing lines Patch % Lines
tool/transport_common.cc 52.27% 11 Missing and 10 partials ⚠️
tool-openssl/s_client_integration_test.cc 84.52% 7 Missing and 6 partials ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           fips-2025-09-12-lts    #3892      +/-   ##
=======================================================
- Coverage                78.37%   78.27%   -0.11%     
=======================================================
  Files                      700      704       +4     
  Lines                   125838   127005    +1167     
  Branches                 17435    18571    +1136     
=======================================================
+ Hits                     98630    99408     +778     
- Misses                   26243    26580     +337     
- Partials                   965     1017      +52     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

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

8 participants