Skip to content

Schaap/rspack test#2788

Draft
nickschaap wants to merge 3 commits intoaspect-build:mainfrom
nickschaap:schaap/rspack-test
Draft

Schaap/rspack test#2788
nickschaap wants to merge 3 commits intoaspect-build:mainfrom
nickschaap:schaap/rspack-test

Conversation

@nickschaap
Copy link
Copy Markdown


Changes are visible to end-users: yes/no

  • Searched for relevant documentation and updated as needed: yes/no
  • Breaking change (forces users to change their own code or config): yes/no
  • Suggested release notes appear below: yes/no

Test plan

  • Covered by existing test cases
  • New test cases added
  • Manual testing; please provide instructions so we can reproduce:

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Nick Schaap seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@aspect-workflows
Copy link
Copy Markdown

aspect-workflows Bot commented Mar 31, 2026

Bazel 7 (Test)

⚠️ Buildkite build #12470 failed.

//examples/js_binary:run4-a_cjs failed to build

bin4_cjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-a_cjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_cjs_/bin4_cjs out4-cjs-dist/out4-a @mycorp/pkg-a
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1386
  throw err;
  ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2349/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2349/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2349/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2349/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js',
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2349/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs'
  ]
}
 
Node.js v22.22.0

//examples/js_binary:run4-b_cjs failed to build

bin4_cjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-b_cjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_cjs_/bin4_cjs out4-b_cjs @mycorp/pkg-b
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1386
  throw err;
  ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2372/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2372/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2372/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2372/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs',
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2372/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs'
  ]
}
 
Node.js v22.22.0

//examples/js_binary:run4-b_mjs failed to build

bin4_mjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-b_mjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_mjs_/bin4_mjs out4-b_mjs @mycorp/pkg-b
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/package_json_reader:314
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^
 
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'acorn' imported from /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2543/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.mjs
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
    at packageResolve (node:internal/modules/esm/resolve:767:81)
    at moduleResolve (node:internal/modules/esm/resolve:853:18)
    at defaultResolve (node:internal/modules/esm/resolve:983:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:731:20)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {
  code: 'ERR_MODULE_NOT_FOUND'
}
 
Node.js v22.22.0

//examples/js_binary:run4-a_mjs failed to build

bin4_mjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-a_mjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_mjs_/bin4_mjs out4-mjs-dist/out4-a @mycorp/pkg-a
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1383
  const err = new Error(message);
              ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2563/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2563/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2563/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js'
  ]
}
 
Node.js v22.22.0
Failed tests (26)
//examples/npm_deps:test10_cjs [k8-fastbuild]                                                  🔗
//examples/npm_deps:test10_mjs [k8-fastbuild]                                                  🔗
//examples/npm_deps:test11_cjs [k8-fastbuild]                                                  🔗
//examples/npm_deps:test11_mjs [k8-fastbuild]                                                  🔗
//examples/npm_deps:test7_a [k8-fastbuild]                                                     🔗
//examples/npm_deps:test7_b_cjs [k8-fastbuild]                                                 🔗
//examples/npm_deps:test7_b_mjs [k8-fastbuild]                                                 🔗
//examples/npm_deps:test9_cjs [k8-fastbuild]                                                   🔗
//examples/npm_deps:test9_mjs [k8-fastbuild]                                                   🔗
//examples/npm_deps:test_uvu_version [k8-fastbuild]                                            🔗
//js/private/test/image:assert_custom_layers_nomatch_test_node_modules_test [k8-fastbuild]     🔗
//js/private/test/image:assert_custom_layers_nomatch_test_package_store_1p_test [k8-fastbuild] 🔗
//js/private/test/image:assert_custom_layers_nomatch_test_package_store_3p_test [k8-fastbuild] 🔗
//js/private/test/image:assert_custom_owner_test_node_modules_test [k8-fastbuild]              🔗
//js/private/test/image:assert_custom_owner_test_package_store_1p_test [k8-fastbuild]          🔗
//js/private/test/image:assert_custom_owner_test_package_store_3p_test [k8-fastbuild]          🔗
//js/private/test/image:assert_default_test_node_modules_test [k8-fastbuild]                   🔗
//js/private/test/image:assert_default_test_package_store_1p_test [k8-fastbuild]               🔗
//js/private/test/image:assert_default_test_package_store_3p_test [k8-fastbuild]               🔗
//js/private/test/image:assert_regex_edge_cases_test_node_modules_test [k8-fastbuild]          🔗
//js/private/test/image:assert_regex_edge_cases_test_package_store_1p_test [k8-fastbuild]      🔗
//js/private/test/image:assert_regex_edge_cases_test_package_store_3p_test [k8-fastbuild]      🔗
//js/private/test/image:checksum_test_test_test [k8-fastbuild]                                 🔗
//npm/private/test:write_npm_translate_lock_0_test [k8-fastbuild]                              🔗
//npm/private/test:write_npm_translate_lock_1_test [k8-fastbuild]                              🔗
//npm/private/test:write_npm_translate_lock_2_test [k8-fastbuild]                              🔗

💡 To reproduce the build failures, run

bazel build //examples/js_binary:run4-a_cjs //examples/js_binary:run4-b_cjs //examples/js_binary:run4-b_mjs //examples/js_binary:run4-a_mjs

💡 To reproduce 17 of the test failures, run

bazel test //js/private/test/image:assert_default_test_package_store_1p_test //js/private/test/image:assert_custom_layers_nomatch_test_package_store_3p_test //js/private/test/image:assert_regex_edge_cases_test_node_modules_test //examples/npm_deps:test11_cjs //js/private/test/image:assert_custom_layers_nomatch_test_node_modules_test //js/private/test/image:assert_regex_edge_cases_test_package_store_3p_test //js/private/test/image:assert_custom_owner_test_package_store_1p_test //js/private/test/image:assert_custom_owner_test_node_modules_test //examples/npm_deps:test10_mjs //examples/npm_deps:test_uvu_version //examples/npm_deps:test9_cjs //npm/private/test:write_npm_translate_lock_0_test //examples/npm_deps:test7_a //js/private/test/image:assert_default_test_package_store_3p_test //js/private/test/image:assert_regex_edge_cases_test_package_store_1p_test //npm/private/test:write_npm_translate_lock_2_test //npm/private/test:write_npm_translate_lock_1_test

Bazel 8 (Test)

⚠️ Buildkite build #12470 failed.

//examples/js_binary:run4-b_mjs failed to build

bin4_mjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-b_mjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_mjs_/bin4_mjs out4-b_mjs @mycorp/pkg-b
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/package_json_reader:314
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^
 
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'acorn' imported from /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2745/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.mjs
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
    at packageResolve (node:internal/modules/esm/resolve:767:81)
    at moduleResolve (node:internal/modules/esm/resolve:853:18)
    at defaultResolve (node:internal/modules/esm/resolve:983:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:731:20)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {
  code: 'ERR_MODULE_NOT_FOUND'
}
 
Node.js v22.22.0

//examples/js_binary:run4-a_mjs failed to build

bin4_mjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-a_mjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_mjs_/bin4_mjs out4-mjs-dist/out4-a @mycorp/pkg-a
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1383
  const err = new Error(message);
              ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2774/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2774/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2774/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js'
  ]
}
 
Node.js v22.22.0

//examples/js_binary:run4-a_cjs failed to build

bin4_cjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-a_cjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_cjs_/bin4_cjs out4-cjs-dist/out4-a @mycorp/pkg-a
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1386
  throw err;
  ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2778/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2778/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2778/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2778/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js',
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2778/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs'
  ]
}
 
Node.js v22.22.0

//examples/js_binary:run4-b_cjs failed to build

bin4_cjs failed: error executing JsRunBinary command (from target //examples/js_binary:run4-b_cjs) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/examples/js_binary/bin4_cjs_/bin4_cjs out4-b_cjs @mycorp/pkg-b
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1386
  throw err;
  ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2801/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2801/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2801/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2801/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs',
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/2801/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs'
  ]
}
 
Node.js v22.22.0
Failed tests (10)
//examples/npm_deps:test10_cjs [k8-fastbuild]       🔗
//examples/npm_deps:test10_mjs [k8-fastbuild]       🔗
//examples/npm_deps:test11_cjs [k8-fastbuild]       🔗
//examples/npm_deps:test11_mjs [k8-fastbuild]       🔗
//examples/npm_deps:test7_a [k8-fastbuild]          🔗
//examples/npm_deps:test7_b_cjs [k8-fastbuild]      🔗
//examples/npm_deps:test7_b_mjs [k8-fastbuild]      🔗
//examples/npm_deps:test9_cjs [k8-fastbuild]        🔗
//examples/npm_deps:test9_mjs [k8-fastbuild]        🔗
//examples/npm_deps:test_uvu_version [k8-fastbuild] 🔗

💡 To reproduce the build failures, run

bazel build //examples/js_binary:run4-b_mjs //examples/js_binary:run4-a_mjs //examples/js_binary:run4-a_cjs //examples/js_binary:run4-b_cjs

💡 To reproduce the test failures, run

bazel test //examples/npm_deps:test7_a //examples/npm_deps:test11_cjs //examples/npm_deps:test10_mjs //examples/npm_deps:test_uvu_version //examples/npm_deps:test7_b_cjs //examples/npm_deps:test7_b_mjs //examples/npm_deps:test10_cjs //examples/npm_deps:test9_mjs //examples/npm_deps:test9_cjs //examples/npm_deps:test11_mjs

Bazel 9 (Test)

⚠️ Buildkite build #12470 failed.

//examples/js_binary:run4-a_mjs failed to build

bin4_mjs failed: error executing JsRunBinary command (from _run_binary rule target //examples/js_binary:run4-a_mjs) bazel-out/k8-opt-exec/bin/examples/js_binary/bin4_mjs_/bin4_mjs out4-mjs-dist/out4-a @mycorp/pkg-a
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1383
  const err = new Error(message);
              ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1246/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1246/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1246/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js'
  ]
}
 
Node.js v22.22.0

//examples/js_binary:run4-b_mjs failed to build

bin4_mjs failed: error executing JsRunBinary command (from _run_binary rule target //examples/js_binary:run4-b_mjs) bazel-out/k8-opt-exec/bin/examples/js_binary/bin4_mjs_/bin4_mjs out4-b_mjs @mycorp/pkg-b
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/package_json_reader:314
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^
 
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'acorn' imported from /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1279/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.mjs
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
    at packageResolve (node:internal/modules/esm/resolve:767:81)
    at moduleResolve (node:internal/modules/esm/resolve:853:18)
    at defaultResolve (node:internal/modules/esm/resolve:983:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:731:20)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {
  code: 'ERR_MODULE_NOT_FOUND'
}
 
Node.js v22.22.0

//examples/js_binary:run4-b_cjs failed to build

bin4_cjs failed: error executing JsRunBinary command (from _run_binary rule target //examples/js_binary:run4-b_cjs) bazel-out/k8-opt-exec/bin/examples/js_binary/bin4_cjs_/bin4_cjs out4-b_cjs @mycorp/pkg-b
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1386
  throw err;
  ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1308/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1308/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1308/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1308/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-b/index.cjs',
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1308/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs'
  ]
}
 
Node.js v22.22.0

//examples/js_binary:run4-a_cjs failed to build

bin4_cjs failed: error executing JsRunBinary command (from _run_binary rule target //examples/js_binary:run4-a_cjs) bazel-out/k8-opt-exec/bin/examples/js_binary/bin4_cjs_/bin4_cjs out4-cjs-dist/out4-a @mycorp/pkg-a
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
node:internal/modules/cjs/loader:1386
  throw err;
  ^
 
Error: Cannot find module 'acorn'
Require stack:
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1328/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js
- /mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1328/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1328/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js:4:15)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1328/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@[email protected]/node_modules/@mycorp/pkg-a/index.js',
    '/mnt/ephemeral/output/rules_js/__main__/sandbox/linux-sandbox/1328/execroot/_main/bazel-out/k8-fastbuild/bin/examples/js_binary/case4.cjs'
  ]
}
 
Node.js v22.22.0
Failed tests (10)
//examples/npm_deps:test10_cjs [k8-fastbuild]       🔗
//examples/npm_deps:test10_mjs [k8-fastbuild]       🔗
//examples/npm_deps:test11_cjs [k8-fastbuild]       🔗
//examples/npm_deps:test11_mjs [k8-fastbuild]       🔗
//examples/npm_deps:test7_a [k8-fastbuild]          🔗
//examples/npm_deps:test7_b_cjs [k8-fastbuild]      🔗
//examples/npm_deps:test7_b_mjs [k8-fastbuild]      🔗
//examples/npm_deps:test9_cjs [k8-fastbuild]        🔗
//examples/npm_deps:test9_mjs [k8-fastbuild]        🔗
//examples/npm_deps:test_uvu_version [k8-fastbuild] 🔗

💡 To reproduce the build failures, run

bazel build //examples/js_binary:run4-a_mjs //examples/js_binary:run4-b_mjs //examples/js_binary:run4-b_cjs //examples/js_binary:run4-a_cjs

💡 To reproduce the test failures, run

bazel test //examples/npm_deps:test10_mjs //examples/npm_deps:test11_mjs //examples/npm_deps:test_uvu_version //examples/npm_deps:test7_b_cjs //examples/npm_deps:test7_b_mjs //examples/npm_deps:test9_mjs //examples/npm_deps:test10_cjs //examples/npm_deps:test11_cjs //examples/npm_deps:test7_a //examples/npm_deps:test9_cjs

Bazel 7 (Test)

e2e/bzlmod

All tests were cache hits

7 tests (100.0%) were fully cached saving 664ms.


Bazel 8 (Test)

e2e/bzlmod

All tests were cache hits

7 tests (100.0%) were fully cached saving 642ms.


Bazel 9 (Test)

e2e/bzlmod

All tests were cache hits

7 tests (100.0%) were fully cached saving 596ms.


Bazel 7 (Test)

e2e/git_dep_metadata

All tests were cache hits

1 test (100.0%) was fully cached saving 30ms.


Bazel 8 (Test)

e2e/git_dep_metadata

All tests were cache hits

1 test (100.0%) was fully cached saving 26ms.


Bazel 9 (Test)

e2e/git_dep_metadata

All tests were cache hits

1 test (100.0%) was fully cached saving 30ms.


Bazel 7 (Test)

e2e/gyp_no_install_script

All tests were cache hits

2 tests (100.0%) were fully cached saving 112ms.


Bazel 8 (Test)

e2e/gyp_no_install_script

All tests were cache hits

1 test (100.0%) was fully cached saving 50ms.


Bazel 9 (Test)

e2e/gyp_no_install_script

All tests were cache hits

1 test (100.0%) was fully cached saving 46ms.


Bazel 7 (Test)

e2e/js_binary_workspace

All tests were cache hits

1 test (100.0%) was fully cached saving 44ms.


Bazel 8 (Test)

e2e/js_binary_workspace

All tests were cache hits

1 test (100.0%) was fully cached saving 30ms.


Bazel 9 (Test)

e2e/js_binary_workspace

All tests were cache hits

1 test (100.0%) was fully cached saving 35ms.


Bazel 7 (Test)

e2e/js_image_oci

All tests were cache hits

1 test (100.0%) was fully cached saving 3s.


Bazel 7 (Test)

e2e/npm_link_package

All tests were cache hits

2 tests (100.0%) were fully cached saving 172ms.


Bazel 8 (Test)

e2e/npm_link_package

All tests were cache hits

2 tests (100.0%) were fully cached saving 137ms.


Bazel 9 (Test)

e2e/npm_link_package

All tests were cache hits

2 tests (100.0%) were fully cached saving 170ms.


Bazel 7 (Test)

e2e/npm_link_package-esm

All tests were cache hits

2 tests (100.0%) were fully cached saving 189ms.


Bazel 8 (Test)

e2e/npm_link_package-esm

All tests were cache hits

2 tests (100.0%) were fully cached saving 138ms.


Bazel 9 (Test)

e2e/npm_link_package-esm

All tests were cache hits

2 tests (100.0%) were fully cached saving 173ms.


Bazel 7 (Test)

e2e/npm_link_package-rerooted

All tests were cache hits

2 tests (100.0%) were fully cached saving 207ms.


Bazel 8 (Test)

e2e/npm_link_package-rerooted

All tests were cache hits

2 tests (100.0%) were fully cached saving 139ms.


Bazel 9 (Test)

e2e/npm_link_package-rerooted

All tests were cache hits

2 tests (100.0%) were fully cached saving 186ms.


Bazel 7 (Test)

e2e/npm_translate_lock

All tests were cache hits

3 tests (100.0%) were fully cached saving 383ms.


Bazel 8 (Test)

e2e/npm_translate_lock

All tests were cache hits

3 tests (100.0%) were fully cached saving 287ms.


Bazel 9 (Test)

e2e/npm_translate_lock

All tests were cache hits

3 tests (100.0%) were fully cached saving 289ms.


Bazel 7 (Test)

e2e/npm_translate_lock_disable_hooks

All tests were cache hits

3 tests (100.0%) were fully cached saving 268ms.


Bazel 8 (Test)

e2e/npm_translate_lock_disable_hooks

All tests were cache hits

1 test (100.0%) was fully cached saving 62ms.


Bazel 9 (Test)

e2e/npm_translate_lock_disable_hooks

All tests were cache hits

1 test (100.0%) was fully cached saving 32ms.


Bazel 7 (Test)

e2e/npm_translate_lock_empty

All tests were cache hits

2 tests (100.0%) were fully cached saving 132ms.


Bazel 8 (Test)

e2e/npm_translate_lock_empty

All tests were cache hits

2 tests (100.0%) were fully cached saving 114ms.


Bazel 9 (Test)

e2e/npm_translate_lock_empty

All tests were cache hits

2 tests (100.0%) were fully cached saving 105ms.


Bazel 7 (Test)

e2e/npm_translate_lock_exclude_package_contents

All tests were cache hits

1 test (100.0%) was fully cached saving 33ms.


Bazel 8 (Test)

e2e/npm_translate_lock_exclude_package_contents

All tests were cache hits

1 test (100.0%) was fully cached saving 21ms.


Bazel 9 (Test)

e2e/npm_translate_lock_exclude_package_contents

All tests were cache hits

1 test (100.0%) was fully cached saving 86ms.


Bazel 7 (Test)

e2e/npm_translate_lock_multi

All tests were cache hits

2 tests (100.0%) were fully cached saving 106ms.


Bazel 8 (Test)

e2e/npm_translate_lock_multi

All tests were cache hits

2 tests (100.0%) were fully cached saving 54ms.


Bazel 9 (Test)

e2e/npm_translate_lock_multi

All tests were cache hits

2 tests (100.0%) were fully cached saving 113ms.


Bazel 7 (Test)

e2e/npm_translate_lock_partial_clone

All tests were cache hits

1 test (100.0%) was fully cached saving 26ms.


Bazel 8 (Test)

e2e/npm_translate_lock_partial_clone

All tests were cache hits

1 test (100.0%) was fully cached saving 30ms.


Bazel 9 (Test)

e2e/npm_translate_lock_partial_clone

All tests were cache hits

1 test (100.0%) was fully cached saving 38ms.


Bazel 7 (Test)

e2e/npm_translate_lock_replace_packages

All tests were cache hits

4 tests (100.0%) were fully cached saving 321ms.


Bazel 8 (Test)

e2e/npm_translate_lock_replace_packages

All tests were cache hits

4 tests (100.0%) were fully cached saving 249ms.


Bazel 9 (Test)

e2e/npm_translate_lock_replace_packages

All tests were cache hits

4 tests (100.0%) were fully cached saving 320ms.


Bazel 7 (Test)

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

1 test (100.0%) was fully cached saving 50ms.


Bazel 8 (Test)

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

1 test (100.0%) was fully cached saving 67ms.


Bazel 9 (Test)

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

1 test (100.0%) was fully cached saving 50ms.


Bazel 7 (Test)

e2e/npm_translate_package_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 25ms.


Bazel 8 (Test)

e2e/npm_translate_package_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 62ms.


Bazel 9 (Test)

e2e/npm_translate_package_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 32ms.


Bazel 7 (Test)

e2e/npm_translate_yarn_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 25ms.


Bazel 8 (Test)

e2e/npm_translate_yarn_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 62ms.


Bazel 9 (Test)

e2e/npm_translate_yarn_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 32ms.


Bazel 7 (Test)

e2e/output_paths

All tests were cache hits

2 tests (100.0%) were fully cached saving 213ms.


Bazel 8 (Test)

e2e/output_paths

All tests were cache hits

2 tests (100.0%) were fully cached saving 252ms.


Bazel 9 (Test)

e2e/output_paths

All tests were cache hits

2 tests (100.0%) were fully cached saving 171ms.


Bazel 7 (Test)

e2e/package_json_module

All tests were cache hits

1 test (100.0%) was fully cached saving 195ms.


Bazel 8 (Test)

e2e/package_json_module

All tests were cache hits

1 test (100.0%) was fully cached saving 192ms.


Bazel 9 (Test)

e2e/package_json_module

All tests were cache hits

1 test (100.0%) was fully cached saving 190ms.


Bazel 7 (Test)

e2e/patch_from_repo

All tests were cache hits

1 test (100.0%) was fully cached saving 25ms.


Bazel 7 (Test)

e2e/pnpm_lockfiles

All tests were cache hits

41 tests (100.0%) were fully cached saving 4s.


Bazel 8 (Test)

e2e/pnpm_lockfiles

All tests were cache hits

13 tests (100.0%) were fully cached saving 1s.


Bazel 9 (Test)

e2e/pnpm_lockfiles

All tests were cache hits

13 tests (100.0%) were fully cached saving 955ms.


Bazel 7 (Test)

e2e/pnpm_repo_install

All tests were cache hits

1 test (100.0%) was fully cached saving 746ms.


Bazel 8 (Test)

e2e/pnpm_repo_install

All tests were cache hits

1 test (100.0%) was fully cached saving 772ms.


Bazel 9 (Test)

e2e/pnpm_repo_install

All tests were cache hits

1 test (100.0%) was fully cached saving 738ms.


Bazel 7 (Test)

e2e/pnpm_version

All tests were cache hits

1 test (100.0%) was fully cached saving 44ms.


Bazel 8 (Test)

e2e/pnpm_version

All tests were cache hits

1 test (100.0%) was fully cached saving 44ms.


Bazel 9 (Test)

e2e/pnpm_version

All tests were cache hits

1 test (100.0%) was fully cached saving 42ms.


Bazel 7 (Test)

e2e/pnpm_workspace

All tests were cache hits

15 tests (100.0%) were fully cached saving 2s.


Bazel 8 (Test)

e2e/pnpm_workspace

All tests were cache hits

14 tests (100.0%) were fully cached saving 2s.


Bazel 9 (Test)

e2e/pnpm_workspace

All tests were cache hits

14 tests (100.0%) were fully cached saving 2s.


Bazel 7 (Test)

e2e/pnpm_workspace_deps

All tests were cache hits

3 tests (100.0%) were fully cached saving 212ms.


Bazel 8 (Test)

e2e/pnpm_workspace_deps

All tests were cache hits

3 tests (100.0%) were fully cached saving 278ms.


Bazel 9 (Test)

e2e/pnpm_workspace_deps

All tests were cache hits

3 tests (100.0%) were fully cached saving 237ms.


Bazel 7 (Test)

e2e/pnpm_workspace_rerooted

All tests were cache hits

15 tests (100.0%) were fully cached saving 2s.


Bazel 8 (Test)

e2e/pnpm_workspace_rerooted

All tests were cache hits

14 tests (100.0%) were fully cached saving 1s.


Bazel 9 (Test)

e2e/pnpm_workspace_rerooted

All tests were cache hits

14 tests (100.0%) were fully cached saving 2s.


Bazel 7 (Test)

e2e/repo_mapping

All tests were cache hits

3 tests (100.0%) were fully cached saving 222ms.


Bazel 8 (Test)

e2e/repo_mapping

All tests were cache hits

3 tests (100.0%) were fully cached saving 154ms.


Bazel 9 (Test)

e2e/repo_mapping

All tests were cache hits

3 tests (100.0%) were fully cached saving 308ms.


Bazel 7 (Test)

e2e/runfiles

Buildkite build #12470 is running...


Bazel 8 (Test)

e2e/runfiles

Buildkite build #12470 is running...


Bazel 9 (Test)

e2e/runfiles

Buildkite build #12470 is running...


Bazel 7 (Test)

e2e/stamped_package_json

All tests were cache hits

1 test (100.0%) was fully cached saving 48ms.


Bazel 8 (Test)

e2e/stamped_package_json

Buildkite build #12470 is running...


Bazel 9 (Test)

e2e/stamped_package_json

All tests were cache hits

1 test (100.0%) was fully cached saving 130ms.


Bazel 7 (Test)

e2e/vendored_node

Buildkite build #12470 is running...


Bazel 8 (Test)

e2e/vendored_node

All tests were cache hits

1 test (100.0%) was fully cached saving 57ms.


Bazel 9 (Test)

e2e/vendored_node

Buildkite build #12470 is running...


Bazel 7 (Test)

e2e/vendored_tarfile

All tests were cache hits

1 test (100.0%) was fully cached saving 25ms.


Bazel 8 (Test)

e2e/vendored_tarfile

All tests were cache hits

1 test (100.0%) was fully cached saving 62ms.


Bazel 9 (Test)

e2e/vendored_tarfile

All tests were cache hits

1 test (100.0%) was fully cached saving 32ms.


Bazel 7 (Test)

e2e/verify_patches

Buildkite build #12470 is running...


Bazel 8 (Test)

e2e/verify_patches

All tests were cache hits

2 tests (100.0%) were fully cached saving 120ms.


Bazel 9 (Test)

e2e/verify_patches

Buildkite build #12470 is running...


Bazel 7 (Test)

e2e/worker

All tests were cache hits

1 test (100.0%) was fully cached saving 75ms.


Bazel 8 (Test)

e2e/worker

Waiting for runner...


Bazel 9 (Test)

e2e/worker

Buildkite build #12470 is running...


Bazel 7 (Test)

examples/protobuf/bufbuild-es

Waiting for runner...


Bazel 8 (Test)

examples/protobuf/bufbuild-es

Waiting for runner...


Bazel 9 (Test)

examples/protobuf/bufbuild-es

Waiting for runner...


Bazel 7 (Test)

examples/protobuf/google-protobuf

Waiting for runner...


Bazel 8 (Test)

examples/protobuf/google-protobuf

Waiting for runner...


Bazel 9 (Test)

examples/protobuf/google-protobuf

Waiting for runner...


Buildifier      Format

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants