← Back to Pull requests

test: fix on zfs build host #67517

Merged
MarcelCoding merged 2 files (13 lines) on Nov 18, 2026 11:43 UTC
View on GitHub
MarcelCoding MarcelCoding commented on Nov 16, 2026 11:38 UTC
Author

<!--
If you are submitting a pull request for the first time,
check out the guide for first-time contributors for tips and answers to FAQs:
https://github.com/nodejs/node/blob/HEAD/doc/contributing/first-contributions.md

Before submitting a pull request, please read:

  • the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md

  • the commit message formatting guidelines at

  • https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

    For code changes:
    1. Include tests for any bug fixes or new features.
    2. Update documentation if relevant.
    3. Ensure that make -j4 test (UNIX), or vcbuild test (Windows) passes.

    If you believe this PR should be highlighted in the Node.js CHANGELOG
    please add the notable-change label.

    Developer's Certificate of Origin 1.1

    By making a contribution to this project, I certify that:

    (a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

    (b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

    (c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

    (d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
    -->

    Sucessfuly build using the nix environment on a ZFS build host using:

    From 7a826a8d7ad1a478c55afa7286d3fc894ee14fed Mon Sep 17 00:00:00 2001
    From: Marcel <me@m4rc3l.de>
    Date: Sun, 15 Nov 2026 21:41:03 +0100
    Subject: [PATCH] nodejs: fix build on zfs
    
    ---
     pkgs/development/web/nodejs/nodejs.nix | 8 +++++++-
     1 file changed, 7 insertions(+), 1 deletion(-)
    
    diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix
    index 8d682600afd0..b08f285b6b1e 100644
    --- a/pkgs/development/web/nodejs/nodejs.nix
    +++ b/pkgs/development/web/nodejs/nodejs.nix
    @@ -354,7 +354,13 @@ let
     
           pos = builtins.unsafeGetAttrPos "version" args;
     
    -      inherit patches;
    +      patches = patches ++ [
    +        (fetchpatch2 {
    +        name = "test-fix-on-zfs-build-host.patch";
    +          url = "https://github.com/MarcelCoding/node/commit/bb96340faddd5e9441848f7634b36452407becb3.patch?full_index=1";
    +          hash = "sha256-FH6rSroKAxLqqJNkJYgyp3NgAwTnm5cXDa4cq6pH9d0=";
    +        })
    +      ];
     
           postPatch = ''
             substituteInPlace tools/install.py \
    
    

    Here the original failtures:

    not ok 1822 parallel/test-fs-readdir-ucs2
      ---
      duration_ms: 137.37100
      severity: fail
      exitcode: 1
      stack: |-
        /build/node-v24.22.2/test/parallel/test-fs-readdir-ucs2.js:23
          throw e;
          ^
    
        Error: EILSEQ: illegal byte sequence, open '/build/node-v24.22.2/test/.tmp.1843/=�^D�'
            at Object.openSync (node:fs:621:18)
            at Object.<anonymous> (/build/node-v24.22.2/test/parallel/test-fs-readdir-ucs2.js:19:19)
            at Module._compile (node:internal/modules/cjs/loader:1929:14)
            at Object..js (node:internal/modules/cjs/loader:2060:10)
            at Module.load (node:internal/modules/cjs/loader:1651:32)
            at Module._load (node:internal/modules/cjs/loader:1443:12)
            at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
            at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
            at node:internal/main/run_main_module:33:47 {
          errno: -84,
          code: 'EILSEQ',
          syscall: 'open',
          path: '/build/node-v24.22.2/test/.tmp.1843/=�\x04�'
        }
    
        Node.js v24.22.2
    

    not ok 1610 parallel/test-fileurltopathbuffer
      ---
      duration_ms: 296.28200
      severity: fail
      exitcode: 1
      stack: |-
        node:fs:2482
            return binding.writeFileUtf8(
                           ^
    
        Error: EILSEQ: illegal byte sequence, open '/build/node-v24.22.2/test/.tmp.1622/������'
            at writeFileSync (node:fs:2482:20)
            at Object.<anonymous> (/build/node-v24.22.2/test/parallel/test-fileurltopathbuffer.js:58:1)
            at Module._compile (node:internal/modules/cjs/loader:1929:14)
            at Object..js (node:internal/modules/cjs/loader:2060:10)
            at Module.load (node:internal/modules/cjs/loader:1651:32)
            at Module._load (node:internal/modules/cjs/loader:1443:12)
            at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
            at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
            at node:internal/main/run_main_module:33:47 {
          errno: -84,
          code: 'EILSEQ',
          syscall: 'open',
          path: '/build/node-v24.22.2/test/.tmp.1622/������'
        }
    
        Node.js v24.22.2
    

    Diff: 13 lines (+11 / -2) across 2 files Reviewer: aduh95 Review duration: 2884m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.20) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.20 · 13 lines diff across 2 files
    0.20
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.55 · 5 substantive comment(s)
    0.55
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    71%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.158
    Real PR Conversation Timeline
    10 items
    github-actions[bot] github-actions[bot] commented on Nov 16, 2026 11:38 UTC
    Bot

    Welcome to Node.js, and thank you for your first contribution!

    Before review, please take a moment to read:

    the guide for first-time contributors
    the contribution and automation policies
    the pull request guide
    the AI use policy
    * the Code of Conduct

    Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

    aduh95 aduh95 commented on Nov 16, 2026 15:24 UTC
    Contributor

    Is this ready for reviews? Did you confirm you were able to build nodejs-slim on ZFS with that patch?

    MarcelCoding MarcelCoding commented on Nov 16, 2026 15:26 UTC
    Author

    Yes, the build finished in the meantime. But I still have to check the contribution guides etc.

    aduh95 aduh95 approved these changes on Nov 16, 2026 16:36 UTC
    Approved Reviewer

    Approved these changes.

    codecov[bot] codecov[bot] commented on Nov 16, 2026 18:26 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 90.68%. Comparing base (924250d) to head (bb96340).
    :warning: Report is 10 commits behind head on main.

    <details><summary>Additional details and impacted files</summary>

    @@           Coverage Diff           @@
    ##             main   #67517   +/-   ##
    =======================================
      Coverage   90.68%   90.68%           
    =======================================
      Files         799      799           
      Lines      280253   280252    -1     
      Branches    54119    54128    +9     
    =======================================
    + Hits       254148   254154    +6     
    - Misses      16228    16232    +4     
    + Partials     9877     9866   -11     
    

    see 30 files with indirect coverage changes
    </details>
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    lpinca lpinca approved these changes on Nov 17, 2026 20:29 UTC
    Approved Reviewer

    Approved these changes.

    nodejs-github-bot nodejs-github-bot commented on Nov 18, 2026 11:43 UTC
    Bot

    Landed in f8dd0aae2ff652c174faf14394b968c4b846db2d

    Reviewers
    Assignees
    MarcelCoding MarcelCoding
    Labels
    risk: low confidence: 71.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 20.2% (LOW) · Higher = larger blast radius
    20.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 71.9% · Lower = rushed or shallow review
    71.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 5.7% · Safe to merge
    5.7%
    Repository