Skip to content

test: export isRiscv64 from common module#62609

Open
JamieMagee wants to merge 1 commit intonodejs:mainfrom
JamieMagee:test-export-isriscv64
Open

test: export isRiscv64 from common module#62609
JamieMagee wants to merge 1 commit intonodejs:mainfrom
JamieMagee:test-export-isriscv64

Conversation

@JamieMagee
Copy link
Copy Markdown

isRiscv64 was defined and used internally for the timeout multiplier, but wasn't exported. Tests that needed to check for riscv64 had to inline process.arch === 'riscv64' instead.

Add it to the exports alongside the other platform booleans.

@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 Apr 5, 2026
isRiscv64 is defined and used internally for the timeout multiplier
but was not exported. Export it alongside the other platform booleans
(isLinux, isFreeBSD, isPi, etc.) so tests can use common.isRiscv64
instead of inlining process.arch checks.

Refs: nodejs/build#4099
Signed-off-by: Jamie Magee <[email protected]>
@JamieMagee JamieMagee force-pushed the test-export-isriscv64 branch from 772a762 to a87ddf7 Compare April 5, 2026 23:58
@JamieMagee JamieMagee requested a review from cjihrig April 6, 2026 01:36
@cjihrig cjihrig added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 6, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 6, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.71%. Comparing base (12249cc) to head (a87ddf7).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62609      +/-   ##
==========================================
- Coverage   91.53%   89.71%   -1.83%     
==========================================
  Files         352      695     +343     
  Lines      147833   214546   +66713     
  Branches    23148    41093   +17945     
==========================================
+ Hits       135321   192476   +57155     
- Misses      12255    14127    +1872     
- Partials      257     7943    +7686     

see 462 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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants