Skip to content

test: enable persistent cache #480

test: enable persistent cache

test: enable persistent cache #480

Triggered via pull request December 30, 2024 12:46
Status Failure
Total duration 2m 13s
Artifacts

test.yml

on: pull_request
Matrix: changes
Matrix: integration-e2e
Matrix: ut
Test passed or skipped
0s
Test passed or skipped
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 4 warnings
tests/config.test.ts > Should compose create Rsbuild config correctly > Merge Rsbuild config in each format: packages/core/tests/config.test.ts#L208
Error: Snapshot `Should compose create Rsbuild config correctly > Merge Rsbuild config in each format 1` mismatched - Expected + Received @@ -127,10 +127,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -375,10 +376,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -602,10 +604,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -776,10 +779,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { ❯ tests/config.test.ts:208:35
ut (ubuntu-latest, 20)
Process completed with exit code 1.
ut (ubuntu-latest, 18)
The job was canceled because "ubuntu-latest_20" failed.
tests/config.test.ts > Should compose create Rsbuild config correctly > Merge Rsbuild config in each format: packages/core/tests/config.test.ts#L208
Error: Snapshot `Should compose create Rsbuild config correctly > Merge Rsbuild config in each format 1` mismatched - Expected + Received @@ -127,10 +127,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -375,10 +376,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -602,10 +604,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -776,10 +779,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { ❯ tests/config.test.ts:208:35
ut (ubuntu-latest, 18)
Process completed with exit code 1.
ut (ubuntu-latest, 22)
The job was canceled because "ubuntu-latest_20" failed.
tests/config.test.ts > Should compose create Rsbuild config correctly > Merge Rsbuild config in each format: packages/core/tests/config.test.ts#L208
Error: Snapshot `Should compose create Rsbuild config correctly > Merge Rsbuild config in each format 1` mismatched - Expected + Received @@ -127,10 +127,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -375,10 +376,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -602,10 +604,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { @@ -776,10 +779,11 @@ }, "tools": { "htmlPlugin": false, "rspack": [ { + "cache": true, "experiments": { "cache": { "type": "persistent", }, "rspackFuture": { ❯ tests/config.test.ts:208:35
ut (ubuntu-latest, 22)
Process completed with exit code 1.
ut (18, windows-latest)
The job was canceled because "ubuntu-latest_20" failed.
ut (18, windows-latest)
The operation was canceled.
integration/redirect/jsNotResolved.test.ts > redirect.js.extension: false: tests/integration/redirect/jsNotResolved.test.ts#L59
Error: Snapshot `redirect.js.extension: false 1` mismatched - Expected + Received "import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash"; import * as __WEBPACK_EXTERNAL_MODULE_prettier__ from "prettier"; import * as __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__ from "./bar.js"; - import * as __WEBPACK_EXTERNAL_MODULE__foo_23da6eef__ from "./foo"; + import * as __WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__ from "./foo.js"; console.log('prettier: ', __WEBPACK_EXTERNAL_MODULE_prettier__["default"]); - const src_rslib_entry_ = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].toUpper(__WEBPACK_EXTERNAL_MODULE__foo_23da6eef__["default"] + __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__["default"]); + const src_rslib_entry_ = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].toUpper(__WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__["default"] + __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__["default"]); export { src_rslib_entry_ as default }; " ❯ integration/redirect/jsNotResolved.test.ts:59:24
integration/style/css-modules/index.test.ts > should extract css-modules successfully in bundle-false with output.cssModules.auto config: tests/scripts/vitest.ts#L15
AssertionError: expected 'require("./reset.css");\nconst reset_…' to contain 'import "./reset.css"' - Expected + Received - import "./reset.css" + require("./reset.css"); + const reset_rslib_entry_ = { + outer: "outer-A5qq_G" + }; + export { reset_rslib_entry_ as default }; + ❯ Module.expectFileContainContent scripts/vitest.ts:15:25 ❯ integration/style/css-modules/index.test.ts:69:3
integration-e2e (ubuntu-latest, 22)
Process completed with exit code 1.
integration-e2e (18, windows-latest)
The job was canceled because "ubuntu-latest_22" failed.
integration-e2e (18, windows-latest)
The operation was canceled.
integration-e2e (ubuntu-latest, 18)
The job was canceled because "ubuntu-latest_22" failed.
integration/redirect/jsNotResolved.test.ts > redirect.js.extension: false: tests/integration/redirect/jsNotResolved.test.ts#L59
Error: Snapshot `redirect.js.extension: false 1` mismatched - Expected + Received "import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash"; import * as __WEBPACK_EXTERNAL_MODULE_prettier__ from "prettier"; import * as __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__ from "./bar.js"; - import * as __WEBPACK_EXTERNAL_MODULE__foo_23da6eef__ from "./foo"; + import * as __WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__ from "./foo.js"; console.log('prettier: ', __WEBPACK_EXTERNAL_MODULE_prettier__["default"]); - const src_rslib_entry_ = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].toUpper(__WEBPACK_EXTERNAL_MODULE__foo_23da6eef__["default"] + __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__["default"]); + const src_rslib_entry_ = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].toUpper(__WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__["default"] + __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__["default"]); export { src_rslib_entry_ as default }; " ❯ integration/redirect/jsNotResolved.test.ts:59:24
integration/style/css-modules/index.test.ts > should extract css-modules successfully in bundle-false: tests/scripts/vitest.ts#L15
AssertionError: expected '"use strict";\nvar __webpack_require_…' to contain 'require("./index_module.css")' - Expected + Received - require("./index_module.css") + "use strict"; + var __webpack_require__ = {}; + (()=>{ + __webpack_require__.d = function(exports1, definition) { + for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { + enumerable: true, + get: definition[key] + }); + }; + })(); + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); + (()=>{ + __webpack_require__.r = function(exports1) { + if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { + value: 'Module' + }); + Object.defineProperty(exports1, '__esModule', { + value: true + }); + }; + })(); + var __webpack_exports__ = {}; + __webpack_require__.r(__webpack_exports__); + __webpack_require__.d(__webpack_exports__, { + default: ()=>index_module_rslib_entry_ + }); + import("./index_module.css"); + const index_module_rslib_entry_ = { + "content-wrapper": "content-wrapper-iNtwbA", + contentWrapper: "content-wrapper-iNtwbA" + }; + var __webpack_export_target__ = exports; + for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__]; + if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', { + value: true + }); + ❯ Module.expectFileContainContent scripts/vitest.ts:15:25 ❯ integration/style/css-modules/index.test.ts:50:3
integration/style/css-modules/index.test.ts > should extract css-modules successfully in bundle-false with output.cssModules.auto config: tests/scripts/vitest.ts#L15
AssertionError: expected '"use strict";\nvar __webpack_require_…' to contain 'require("./reset.css")' - Expected + Received - require("./reset.css") + "use strict"; + var __webpack_require__ = {}; + (()=>{ + __webpack_require__.d = function(exports1, definition) { + for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { + enumerable: true, + get: definition[key] + }); + }; + })(); + (()=>{ + __webpack_require__.o = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); + }; + })(); + (()=>{ + __webpack_require__.r = function(exports1) { + if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { + value: 'Module' + }); + Object.defineProperty(exports1, '__esModule', { + value: true + }); + }; + })(); + var __webpack_exports__ = {}; + __webpack_require__.r(__webpack_exports__); + __webpack_require__.d(__webpack_exports__, { + default: ()=>reset_rslib_entry_ + }); + import("./reset.css"); + const reset_rslib_entry_ = { + outer: "outer-A5qq_G" + }; + var __webpack_export_target__ = exports; + for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__]; + if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', { + value: true + }); + ❯ Module.expectFileContainContent scripts/vitest.ts:15:25 ❯ integration/style/css-modules/index.test.ts:78:3
integration-e2e (ubuntu-latest, 18)
The operation was canceled.
integration-e2e (ubuntu-latest, 20)
The job was canceled because "ubuntu-latest_22" failed.
integration/redirect/jsNotResolved.test.ts > redirect.js.extension: false: tests/integration/redirect/jsNotResolved.test.ts#L59
Error: Snapshot `redirect.js.extension: false 1` mismatched - Expected + Received "import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash"; import * as __WEBPACK_EXTERNAL_MODULE_prettier__ from "prettier"; import * as __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__ from "./bar.js"; - import * as __WEBPACK_EXTERNAL_MODULE__foo_23da6eef__ from "./foo"; + import * as __WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__ from "./foo.js"; console.log('prettier: ', __WEBPACK_EXTERNAL_MODULE_prettier__["default"]); - const src_rslib_entry_ = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].toUpper(__WEBPACK_EXTERNAL_MODULE__foo_23da6eef__["default"] + __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__["default"]); + const src_rslib_entry_ = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].toUpper(__WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__["default"] + __WEBPACK_EXTERNAL_MODULE__bar_js_69b41beb__["default"]); export { src_rslib_entry_ as default }; " ❯ integration/redirect/jsNotResolved.test.ts:59:24
integration-e2e (ubuntu-latest, 20)
The operation was canceled.
changes (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
changes (18)
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
ut (ubuntu-latest, 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
integration-e2e (ubuntu-latest, 22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636