Skip to content

rsbuild-ecosystem-ci-from-pr #4

rsbuild-ecosystem-ci-from-pr

rsbuild-ecosystem-ci-from-pr #4

Manually triggered October 16, 2024 03:48
Status Failure
Total duration 1h 3m 59s
Artifacts

ecosystem-ci-from-pr.yml

on: workflow_dispatch
Matrix: execute-all
create-comment
3s
create-comment
execute-selected-suite
0s
execute-selected-suite
update-comment
2s
update-comment
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 7 warnings
integration/require/index.test.ts > require.resolve: workspace/rslib/rslib/tests/integration/require/index.test.ts#L30
AssertionError: expected 'import * as __WEBPACK_EXTERNAL_MODULE…' to contain 'const cjs1 = require.resolve(\'./othe…' - Expected + Received - const cjs1 = require.resolve('./other') + import * as __WEBPACK_EXTERNAL_MODULE_node_module__ from "node:module"; + var __webpack_modules__ = { + "./. sync recursive": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive"; + module.exports = webpackEmptyContext; + }, + "./. sync recursive ^.*\\.\\/other$": function(module, __unused_webpack_exports, __webpack_require__) { + var map = { + "./other": "./other.ts" + }; + function webpackContext(req) { + var id = webpackContextResolve(req); + return __webpack_require__(id); + } + function webpackContextResolve(req) { + if (!__webpack_require__.o(map, req)) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + return map[req]; + } + webpackContext.keys = function() { + return Object.keys(map); + }; + webpackContext.resolve = webpackContextResolve; + module.exports = webpackContext; + webpackContext.id = "./. sync recursive ^.*\\.\\/other$"; + }, + "./other.ts": function(module) { + module.exports = 'ok'; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); /************************************************************************/ + // Using CommonJS require. + const cjs1 = /*require.resolve*/ "./other.ts"; + const cjs2 = /*require.resolve*/ __webpack_require__("./. sync recursive ^.*\\.\\/other$").resolve(`${process.env.DIR}./other`); + const assignedResolve = __webpack_require__("./. sync recursive").resolve; + const cjs3 = assignedResolve('./other'); + // Using createRequire. + const _require = (0, __WEBPACK_EXTERNAL_MODULE_node_module__.createRequire)(import.meta.url); + const cr1 = _require.resolve('./other'); + const cr2 = _require.resolve(`${process.env.DIR}./other`); + const assignedResolve2 = _require.resolve; + const cr3 = assignedResolve2('./other'); + export { cjs1, cjs2, cjs3, cr1, cr2, cr3 }; + ❯ integration/require/index.test.ts:30:25
integration/require/index.test.ts > require dynamic: workspace/rslib/rslib/tests/integration/require/index.test.ts#L59
AssertionError: expected 'import * as __WEBPACK_EXTERNAL_MODULE…' to contain 'const cjs1 = require(`${process.env.D…' - Expected + Received - const cjs1 = require(`${process.env.DIR}./other`) + import * as __WEBPACK_EXTERNAL_MODULE_node_module__ from "node:module"; + var __webpack_modules__ = { + "./. sync recursive": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive"; + module.exports = webpackEmptyContext; + }, + "./. sync recursive ^.*\\.\\/other$": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive ^.*\\.\\/other$"; + module.exports = webpackEmptyContext; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); /************************************************************************/ + // Using CommonJS require. + const cjs1 = __webpack_require__("./. sync recursive ^.*\\.\\/other$")(`${process.env.DIR}./other`); + const cjs2 = __webpack_require__("./. sync recursive")(process.env.DIR); + // Using createRequire. + const _require = (0, __WEBPACK_EXTERNAL_MODULE_node_module__.createRequire)(import.meta.url); + const cr1 = _require(`${process.env.DIR}./other`); + const cr2 = _require(process.env.DIR); + export { cjs1, cjs2, cr1, cr2 }; + ❯ integration/require/index.test.ts:59:25
integration/require/index.test.ts > import dynamic: workspace/rslib/rslib/tests/integration/require/index.test.ts#L78
AssertionError: expected 'var __webpack_modules__ = {\n "./.…' to contain 'const i1 = import(`${process.env.DIR}…' - Expected + Received - const i1 = import(`${process.env.DIR}./other`) + var __webpack_modules__ = { + "./. lazy recursive ^.*\\.\\/other$": function(module) { + function webpackEmptyAsyncContext(req) { + // Here Promise.resolve().then() is used instead of new Promise() to prevent + // uncaught exception popping up in devtools + return Promise.resolve().then(function() { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + }); + } + webpackEmptyAsyncContext.keys = ()=>[]; + webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; + webpackEmptyAsyncContext.id = "./. lazy recursive ^.*\\.\\/other$"; + module.exports = webpackEmptyAsyncContext; + }, + "./. lazy recursive": function(module) { + function webpackEmptyAsyncContext(req) { + // Here Promise.resolve().then() is used instead of new Promise() to prevent + // uncaught exception popping up in devtools + return Promise.resolve().then(function() { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + }); + } + webpackEmptyAsyncContext.keys = ()=>[]; + webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; + webpackEmptyAsyncContext.id = "./. lazy recursive"; + module.exports = webpackEmptyAsyncContext; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); /************************************************************************/ + const i1 = __webpack_require__("./. lazy recursive ^.*\\.\\/other$")(`${process.env.DIR}./other`); + const i2 = __webpack_require__("./. lazy recursive")(process.env.DIR); + const condition = true; + const i3 = __webpack_require__("./. lazy recursive")(condition ? './other1' : './other2'); + export { i1, i2, i3 }; + ❯ integration/require/index.test.ts:78:25
integration/require/index.test.ts > require as expression: workspace/rslib/rslib/tests/integration/require/index.test.ts#L96
AssertionError: expected 'var __webpack_modules__ = {\n "./.…' to contain 'lazyFn(\'./other.js\', require)' - Expected + Received - lazyFn('./other.js', require) + var __webpack_modules__ = { + "./. sync recursive": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive"; + module.exports = webpackEmptyContext; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); + /************************************************************************/ const lazyFn = (module, requireFn)=>{}; + lazyFn('./other.js', __webpack_require__("./. sync recursive")); + ❯ integration/require/index.test.ts:96:25
integration/shims/index.test.ts > ESM shims > require: workspace/rslib/rslib/tests/integration/shims/index.test.ts#L53
AssertionError: expected './src/ok.cjs' to be '/home/runner/work/rsbuild-ecosystem-c…' // Object.is equality Expected: "/home/runner/work/rsbuild-ecosystem-ci/rsbuild-ecosystem-ci/workspace/rslib/rslib/tests/integration/shims/esm/dist/enabled/esm2/ok.cjs" Received: "./src/ok.cjs" ❯ integration/shims/index.test.ts:53:20
integration/shims/index.test.ts > ESM shims disabled > using require in ESM without shim will cause runtime error: workspace/rslib/rslib/tests/integration/shims/index.test.ts#L77
AssertionError: promise resolved "undefined" instead of rejecting - Expected: [Error: rejected promise] + Received: undefined ❯ integration/shims/index.test.ts:77:35
integration/require/index.test.ts > require.resolve: workspace/rslib/rslib/tests/integration/require/index.test.ts#L30
AssertionError: expected 'import * as __WEBPACK_EXTERNAL_MODULE…' to contain 'const cjs1 = require.resolve(\'./othe…' - Expected + Received - const cjs1 = require.resolve('./other') + import * as __WEBPACK_EXTERNAL_MODULE_node_module__ from "node:module"; + var __webpack_modules__ = { + "./. sync recursive": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive"; + module.exports = webpackEmptyContext; + }, + "./. sync recursive ^.*\\.\\/other$": function(module, __unused_webpack_exports, __webpack_require__) { + var map = { + "./other": "./other.ts" + }; + function webpackContext(req) { + var id = webpackContextResolve(req); + return __webpack_require__(id); + } + function webpackContextResolve(req) { + if (!__webpack_require__.o(map, req)) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + return map[req]; + } + webpackContext.keys = function() { + return Object.keys(map); + }; + webpackContext.resolve = webpackContextResolve; + module.exports = webpackContext; + webpackContext.id = "./. sync recursive ^.*\\.\\/other$"; + }, + "./other.ts": function(module) { + module.exports = 'ok'; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); /************************************************************************/ + // Using CommonJS require. + const cjs1 = /*require.resolve*/ "./other.ts"; + const cjs2 = /*require.resolve*/ __webpack_require__("./. sync recursive ^.*\\.\\/other$").resolve(`${process.env.DIR}./other`); + const assignedResolve = __webpack_require__("./. sync recursive").resolve; + const cjs3 = assignedResolve('./other'); + // Using createRequire. + const _require = (0, __WEBPACK_EXTERNAL_MODULE_node_module__.createRequire)(import.meta.url); + const cr1 = _require.resolve('./other'); + const cr2 = _require.resolve(`${process.env.DIR}./other`); + const assignedResolve2 = _require.resolve; + const cr3 = assignedResolve2('./other'); + export { cjs1, cjs2, cjs3, cr1, cr2, cr3 }; + ❯ integration/require/index.test.ts:30:25
integration/require/index.test.ts > require dynamic: workspace/rslib/rslib/tests/integration/require/index.test.ts#L59
AssertionError: expected 'import * as __WEBPACK_EXTERNAL_MODULE…' to contain 'const cjs1 = require(`${process.env.D…' - Expected + Received - const cjs1 = require(`${process.env.DIR}./other`) + import * as __WEBPACK_EXTERNAL_MODULE_node_module__ from "node:module"; + var __webpack_modules__ = { + "./. sync recursive": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive"; + module.exports = webpackEmptyContext; + }, + "./. sync recursive ^.*\\.\\/other$": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive ^.*\\.\\/other$"; + module.exports = webpackEmptyContext; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); /************************************************************************/ + // Using CommonJS require. + const cjs1 = __webpack_require__("./. sync recursive ^.*\\.\\/other$")(`${process.env.DIR}./other`); + const cjs2 = __webpack_require__("./. sync recursive")(process.env.DIR); + // Using createRequire. + const _require = (0, __WEBPACK_EXTERNAL_MODULE_node_module__.createRequire)(import.meta.url); + const cr1 = _require(`${process.env.DIR}./other`); + const cr2 = _require(process.env.DIR); + export { cjs1, cjs2, cr1, cr2 }; + ❯ integration/require/index.test.ts:59:25
integration/require/index.test.ts > import dynamic: workspace/rslib/rslib/tests/integration/require/index.test.ts#L78
AssertionError: expected 'var __webpack_modules__ = {\n "./.…' to contain 'const i1 = import(`${process.env.DIR}…' - Expected + Received - const i1 = import(`${process.env.DIR}./other`) + var __webpack_modules__ = { + "./. lazy recursive ^.*\\.\\/other$": function(module) { + function webpackEmptyAsyncContext(req) { + // Here Promise.resolve().then() is used instead of new Promise() to prevent + // uncaught exception popping up in devtools + return Promise.resolve().then(function() { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + }); + } + webpackEmptyAsyncContext.keys = ()=>[]; + webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; + webpackEmptyAsyncContext.id = "./. lazy recursive ^.*\\.\\/other$"; + module.exports = webpackEmptyAsyncContext; + }, + "./. lazy recursive": function(module) { + function webpackEmptyAsyncContext(req) { + // Here Promise.resolve().then() is used instead of new Promise() to prevent + // uncaught exception popping up in devtools + return Promise.resolve().then(function() { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + }); + } + webpackEmptyAsyncContext.keys = ()=>[]; + webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; + webpackEmptyAsyncContext.id = "./. lazy recursive"; + module.exports = webpackEmptyAsyncContext; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); /************************************************************************/ + const i1 = __webpack_require__("./. lazy recursive ^.*\\.\\/other$")(`${process.env.DIR}./other`); + const i2 = __webpack_require__("./. lazy recursive")(process.env.DIR); + const condition = true; + const i3 = __webpack_require__("./. lazy recursive")(condition ? './other1' : './other2'); + export { i1, i2, i3 }; + ❯ integration/require/index.test.ts:78:25
integration/require/index.test.ts > require as expression: workspace/rslib/rslib/tests/integration/require/index.test.ts#L96
AssertionError: expected 'var __webpack_modules__ = {\n "./.…' to contain 'lazyFn(\'./other.js\', require)' - Expected + Received - lazyFn('./other.js', require) + var __webpack_modules__ = { + "./. sync recursive": function(module) { + function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + webpackEmptyContext.keys = ()=>[]; + webpackEmptyContext.resolve = webpackEmptyContext; + webpackEmptyContext.id = "./. sync recursive"; + module.exports = webpackEmptyContext; + } + }; + /************************************************************************/ // The module cache + var __webpack_module_cache__ = {}; + // The require function + function __webpack_require__(moduleId) { + // Check if module is in cache + var cachedModule = __webpack_module_cache__[moduleId]; + if (void 0 !== cachedModule) return cachedModule.exports; + // Create a new module (and put it into the cache) + var module = __webpack_module_cache__[moduleId] = { + exports: {} + }; + // Execute the module function + __webpack_modules__[moduleId](module, module.exports, __webpack_require__); + // Return the exports of the module + return module.exports; + } + /************************************************************************/ // webpack/runtime/has_own_property + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); + /************************************************************************/ const lazyFn = (module, requireFn)=>{}; + lazyFn('./other.js', __webpack_require__("./. sync recursive")); + ❯ integration/require/index.test.ts:96:25
execute-all (plugins)
Process completed with exit code 1.
execute-all (rspress)
Process completed with exit code 1.
create-comment
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/github-script@v6. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
execute-all (examples)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
execute-all (rslib)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
execute-all (plugins)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
execute-all (modernjs)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
execute-all (rspress)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
update-comment
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/github-script@v6. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/