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
Contributor

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
Comment thread test/common/index.js
@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.63%. Comparing base (53b8d3c) to head (ebf12a6).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #62609   +/-   ##
=======================================
  Coverage   89.62%   89.63%           
=======================================
  Files         706      706           
  Lines      219137   219137           
  Branches    41981    41980    -1     
=======================================
+ Hits       196404   196413    +9     
- Misses      14614    14627   +13     
+ Partials     8119     8097   -22     

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

richardlau
richardlau previously approved these changes Apr 7, 2026
@richardlau richardlau dismissed their stale review April 7, 2026 13:13

CI failures

@JamieMagee JamieMagee force-pushed the test-export-isriscv64 branch from a87ddf7 to fdb883e Compare April 7, 2026 20:04
@JamieMagee
Copy link
Copy Markdown
Contributor Author

@richardlau I rebased on top of latest main to see if that solves the CI failures.

@sxa sxa added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 9, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 9, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@JamieMagee
Copy link
Copy Markdown
Contributor Author

Is this possible to be merged?

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 <jamie.magee@gmail.com>
@JamieMagee JamieMagee force-pushed the test-export-isriscv64 branch from fdb883e to ebf12a6 Compare April 21, 2026 06:14
@JamieMagee JamieMagee requested a review from richardlau April 21, 2026 06:14
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.

6 participants