Skip to content

[v24.x] test: fix crypto tests against BoringSSL - #65808

Open
codebytere wants to merge 2 commits into
nodejs:v24.x-stagingfrom
codebytere:v24.x-test-boringssl-crypto
Open

[v24.x] test: fix crypto tests against BoringSSL#65808
codebytere wants to merge 2 commits into
nodejs:v24.x-stagingfrom
codebytere:v24.x-test-boringssl-crypto

Conversation

@codebytere

Copy link
Copy Markdown
Member

Four parallel crypto tests fail on v24.x-staging when Node is built with --shared-openssl against BoringSSL (the boringssl that tools/nix/openssl-matrix.nix pins on main, 0.20260803.0). main is unaffected and its BoringSSL job is green; each of these is specific to how the BoringSSL work was backported to v24.x.

test-crypto-pqc-key-objects-ml-dsa and -ml-kem compare a seeded key's PKCS#8 export against the seed+expanded fixture, and BoringSSL only writes the seed-only encoding, so they now expect private_seed_only there. main expects seed-only on every backend since #62178 (semver-major), so the backport in #63563 kept the old expectation. test-crypto-keygen-deprecation and test-crypto-keygen-duplicate-deprecated-option generate rsa-pss key pairs, which BoringSSL doesn't support; the other rsa-pss keygen tests skip since #62883, but these two were already gone from main (#58706), so that backport never touched them.

Tests: built v24.x-staging against that BoringSSL on linux-x64 and ran parallel and sequential; these four were the only BoringSSL-related failures and pass with this change. The OpenSSL paths are unchanged.

cc @nodejs/crypto


Disclosure: the code and this description were written by Claude Code, directed and reviewed by @codebytere.

test-crypto-pqc-key-objects-ml-dsa and -ml-kem compare a seeded key's
PKCS#8 export against the seed+expanded fixture on every backend.
BoringSSL only writes the seed-only encoding, so expect the
private_seed_only fixture there. main expects seed-only on every
backend since nodejs#62178, which is
semver-major, so the BoringSSL support backported in
nodejs#63563 kept the old expectation.

Refs: nodejs#63563
Signed-off-by: Shelley Vohr <shelley.vohr@gmail.com>
test-crypto-keygen-deprecation and
test-crypto-keygen-duplicate-deprecated-option generate rsa-pss key
pairs, which BoringSSL does not support. The other rsa-pss keygen tests
skip there since nodejs#62883, but these
two only exist on v24.x (nodejs#58706
removed them from main earlier), so its backport could not cover them.

Refs: nodejs#62883
Signed-off-by: Shelley Vohr <shelley.vohr@gmail.com>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch. labels Sep 5, 2026
@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.32%. Comparing base (9e39360) to head (efc02c2).
⚠️ Report is 249 commits behind head on v24.x-staging.

Additional details and impacted files
@@                Coverage Diff                @@
##           v24.x-staging   #65808      +/-   ##
=================================================
+ Coverage          90.31%   90.32%   +0.01%     
=================================================
  Files                711      714       +3     
  Lines             228425   231840    +3415     
  Branches           43160    43946     +786     
=================================================
+ Hits              206293   209410    +3117     
- Misses             14090    14158      +68     
- Partials            8042     8272     +230     

see 170 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants