发布

  • fix(core): copy native file atomically to avoid hanging graph creation (#30695)

    frostbyte_neo 发布于 2025-04-11 23:21:14 +00:00

    Current Behavior

    When copying the native file out of node_modules into tmp from multiple
    processes (aka plugin workers)... this can result in Node deadlocking.

    Expected Behavior

    Copying the native file out of node_modules into tmp from multiple
    processes will first copy to unique places in /tmp but then atomically
    rename to the final location where it is still loaded from.

    This at least fixes a flaky test in nx:test where the explicit
    dependencies tests were timing out after 35 seconds

    Related Issue(s)

    Fixes #

    下载附件