Skip to content

test: deflake test-webcrypto-crypto-job-mode#63543

Open
panva wants to merge 1 commit into
nodejs:mainfrom
panva:deflake-job-mode-test
Open

test: deflake test-webcrypto-crypto-job-mode#63543
panva wants to merge 1 commit into
nodejs:mainfrom
panva:deflake-job-mode-test

Conversation

@panva
Copy link
Copy Markdown
Member

@panva panva commented May 24, 2026

Deflake the test by corrupting the first AES-CBC ciphertext byte instead of the final byte. Mutating the final byte made the decrypted padding block random, which could occasionally produce valid PKCS#7 padding and cause subtle.decrypt() to resolve. Mutating the first byte deterministically corrupts the padding block for this two-block ciphertext, so the expected OperationError rejection is stable.

flake e.g. https://ci.nodejs.org/job/node-test-commit-linuxone/55565/nodes=rhel8-s390x/testReport/junit/(root)/parallel/test_webcrypto_crypto_job_mode/

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
@panva panva added test Issues and PRs related to the tests. flaky-test Issues and PRs related to the tests with unstable failures on the CI. labels May 24, 2026
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label May 24, 2026
@panva panva added dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v25.x PRs that should not land on the v25.x-staging branch and should not be released in v25.x. needs-ci PRs that need a full CI run. and removed needs-ci PRs that need a full CI run. labels May 24, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.33%. Comparing base (dfe2d47) to head (c63a36b).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #63543      +/-   ##
==========================================
+ Coverage   90.13%   90.33%   +0.20%     
==========================================
  Files         718      730      +12     
  Lines      228399   234161    +5762     
  Branches    42931    43908     +977     
==========================================
+ Hits       205860   211522    +5662     
- Misses      14283    14366      +83     
- Partials     8256     8273      +17     

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

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

Labels

dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v25.x PRs that should not land on the v25.x-staging branch and should not be released in v25.x. flaky-test Issues and PRs related to the tests with unstable failures on the CI. 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.

2 participants