Skip to content

test: accept decoder errors for wrong FIPS passphrases - #65075

Closed
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:testerror
Closed

test: accept decoder errors for wrong FIPS passphrases#65075
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:testerror

Conversation

@Archkon

@Archkon Archkon commented Aug 6, 2026

Copy link
Copy Markdown

Wrong-passphrase CBC decryption can occasionally produce valid padding. OpenSSL then parses the invalid plaintext and reports ASN.1 or decoder errors instead of bad decrypt.

To fix the flaky test that encountered at https://github.com/nodejs/node/actions/runs/31081775174/job/92552480382

Wrong-passphrase CBC decryption can occasionally produce valid padding.
OpenSSL then parses the invalid plaintext and reports ASN.1 or decoder
errors instead of bad decrypt.

Accept these equivalent failures for FIPS-generated keys while keeping
strict checks for fixed non-FIPS fixtures.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Aug 6, 2026
@Archkon

This comment was marked as spam.

@panva panva added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Aug 6, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 6, 2026
@nodejs-github-bot

This comment was marked as outdated.

@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 90.30%. Comparing base (c18fd90) to head (d490ef4).
⚠️ Report is 49 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65075      +/-   ##
==========================================
- Coverage   90.31%   90.30%   -0.01%     
==========================================
  Files         759      759              
  Lines      247646   247754     +108     
  Branches    46697    46725      +28     
==========================================
+ Hits       223654   223740      +86     
- Misses      15463    15481      +18     
- Partials     8529     8533       +4     

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

@Archkon

This comment was marked as spam.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@avivkeller avivkeller added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 9, 2026
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 9, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/65075
βœ”  Done loading data for nodejs/node/pull/65075
----------------------------------- PR info ------------------------------------
Title      test: accept decoder errors for wrong FIPS passphrases (#65075)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     Archkon:testerror -> nodejs:main
Labels     test, author ready, needs-ci, commit-queue
Commits    1
 - test: accept decoder errors for wrong FIPS passphrases
Committers 1
 - Archkon <180910180+Archkon@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/65075
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/65075
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
--------------------------------------------------------------------------------
   β„Ή  This PR was created on Thu, 06 Aug 2026 09:40:16 GMT
   βœ”  Approvals: 1
   βœ”  - Filip Skokan (@panva) (TSC): https://github.com/nodejs/node/pull/65075#pullrequestreview-4874270829
   ✘  This PR needs to wait 87 more hours to land (or 0 minutes if there is one more approval)
   ✘  GitHub CI is still running
   β„Ή  Last Full PR CI on 2026-08-06T14:01:02Z: https://ci.nodejs.org/job/node-test-pull-request/75569/
- Querying data for job/node-test-pull-request/75569/
βœ”  Build data downloaded
   βœ”  Last Jenkins CI successful
--------------------------------------------------------------------------------
   βœ”  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/31330750033

@aduh95 aduh95 closed this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants