Skip to content

feat: add rsdoctor in rspack ecosystem-ci #361

feat: add rsdoctor in rspack ecosystem-ci

feat: add rsdoctor in rspack ecosystem-ci #361

Triggered via pull request November 26, 2024 08:56
Status Failure
Total duration 33m 19s
Artifacts 1

ci.yml

on: pull_request
Get Runner Labels  /  Get Runner Labels
0s
Get Runner Labels / Get Runner Labels
Prepare Rspack Binding
12m 34s
Prepare Rspack Binding
Matrix: ci
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
integration/alias/index.test.ts > source.alias: workspace/rslib/rslib/tests/integration/alias/index.test.ts#L13
Error: Snapshot `source.alias 2` mismatched - Expected + Received ""use strict"; var __webpack_exports__ = {}; const a = 'hello world'; console.info(a); var __webpack_export_target__ = exports; - for(var i in __webpack_exports__)__webpack_export_target__[i] = __webpack_exports__[i]; + 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 }); " ❯ integration/alias/index.test.ts:13:23
integration/auto-extension/index.test.ts > should respect output.filename.js to override builtin logic > type is commonjs: workspace/rslib/rslib/tests/integration/auto-extension/index.test.ts#L42
Error: Snapshot `should respect output.filename.js to override builtin logic > type is commonjs 1` mismatched Expected: ""<ROOT>/tests/integration/auto-extension/type-commonjs/config-override/dist/cjs/index.d08e1bb3.js"" Received: ""<ROOT>/tests/integration/auto-extension/type-commonjs/config-override/dist/cjs/index.15d386b8.js"" ❯ integration/auto-extension/index.test.ts:42:28
integration/bundle-false/index.test.ts > svgr in bundleless: workspace/rslib/rslib/tests/integration/bundle-false/index.test.ts#L109
Error: Snapshot `svgr in bundleless 2` mismatched - Expected + Received @@ -59,10 +59,10 @@ }) }); /* ESM default export */ const logoreact = SvgLogo; /* ESM default export */ const src_rslib_entry_ = logoreact; var __webpack_export_target__ = exports; - for(var i in __webpack_exports__)__webpack_export_target__[i] = __webpack_exports__[i]; + 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 }); " ❯ integration/bundle-false/index.test.ts:109:42
integration/extension-alias/index.test.ts > resolve.extensionAlias should work: workspace/rslib/rslib/tests/integration/extension-alias/index.test.ts#L8
Error: Snapshot `resolve.extensionAlias should work 1` mismatched - Expected + Received @@ -4,10 +4,10 @@ const foo = 'foo'; // Relative import paths need explicit file extensions in ECMAScript imports // when '--moduleResolution' is 'node16' or 'nodenext'. console.log(foo + bar); var __webpack_export_target__ = exports; - for(var i in __webpack_exports__)__webpack_export_target__[i] = __webpack_exports__[i]; + 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 }); " ❯ integration/extension-alias/index.test.ts:8:23
integration/shims/index.test.ts > ESM shims > __dirname: workspace/rslib/rslib/tests/integration/shims/index.test.ts#L17
AssertionError: expected 'import { fileURLToPath as __webpack_f…' to contain 'import { fileURLToPath as __webpack_f…' - Expected + Received - import { fileURLToPath as __webpack_fileURLToPath__ } from "url"; + import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url"; + import { dirname as __webpack_dirname__ } from "node:path"; + var src_rslib_entry_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url)); + var src_rslib_entry_filename = __webpack_fileURLToPath__(import.meta.url); + const d1 = src_rslib_entry_dirname; + const f1 = src_rslib_entry_filename; + /* ESM default export */ const src_rslib_entry_ = ()=>{ + const d2 = src_rslib_entry_dirname; + const f2 = src_rslib_entry_filename; + const importMetaUrl = import.meta.url; + return { + d1, + d2, + f1, + f2, + importMetaUrl + }; + }; + export { src_rslib_entry_ as default }; + ❯ integration/shims/index.test.ts:17:28
integration/shims/index.test.ts > ESM shims > __filename: workspace/rslib/rslib/tests/integration/shims/index.test.ts#L30
AssertionError: expected 'import { fileURLToPath as __webpack_f…' to contain 'import { fileURLToPath as __webpack_f…' - Expected + Received - import { fileURLToPath as __webpack_fileURLToPath__ } from "url"; + import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url"; + import { dirname as __webpack_dirname__ } from "node:path"; + var src_rslib_entry_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url)); + var src_rslib_entry_filename = __webpack_fileURLToPath__(import.meta.url); + const d1 = src_rslib_entry_dirname; + const f1 = src_rslib_entry_filename; + /* ESM default export */ const src_rslib_entry_ = ()=>{ + const d2 = src_rslib_entry_dirname; + const f2 = src_rslib_entry_filename; + const importMetaUrl = import.meta.url; + return { + d1, + d2, + f1, + f2, + importMetaUrl + }; + }; + export { src_rslib_entry_ as default }; + ❯ integration/shims/index.test.ts:30:28
integration/alias/index.test.ts > source.alias: workspace/rslib/rslib/tests/integration/alias/index.test.ts#L13
Error: Snapshot `source.alias 2` mismatched - Expected + Received ""use strict"; var __webpack_exports__ = {}; const a = 'hello world'; console.info(a); var __webpack_export_target__ = exports; - for(var i in __webpack_exports__)__webpack_export_target__[i] = __webpack_exports__[i]; + 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 }); " ❯ integration/alias/index.test.ts:13:23
integration/auto-extension/index.test.ts > should respect output.filename.js to override builtin logic > type is commonjs: workspace/rslib/rslib/tests/integration/auto-extension/index.test.ts#L42
Error: Snapshot `should respect output.filename.js to override builtin logic > type is commonjs 1` mismatched Expected: ""<ROOT>/tests/integration/auto-extension/type-commonjs/config-override/dist/cjs/index.d08e1bb3.js"" Received: ""<ROOT>/tests/integration/auto-extension/type-commonjs/config-override/dist/cjs/index.15d386b8.js"" ❯ integration/auto-extension/index.test.ts:42:28
integration/bundle-false/index.test.ts > svgr in bundleless: workspace/rslib/rslib/tests/integration/bundle-false/index.test.ts#L109
Error: Snapshot `svgr in bundleless 2` mismatched - Expected + Received @@ -59,10 +59,10 @@ }) }); /* ESM default export */ const logoreact = SvgLogo; /* ESM default export */ const src_rslib_entry_ = logoreact; var __webpack_export_target__ = exports; - for(var i in __webpack_exports__)__webpack_export_target__[i] = __webpack_exports__[i]; + 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 }); " ❯ integration/bundle-false/index.test.ts:109:42
integration/extension-alias/index.test.ts > resolve.extensionAlias should work: workspace/rslib/rslib/tests/integration/extension-alias/index.test.ts#L8
Error: Snapshot `resolve.extensionAlias should work 1` mismatched - Expected + Received @@ -4,10 +4,10 @@ const foo = 'foo'; // Relative import paths need explicit file extensions in ECMAScript imports // when '--moduleResolution' is 'node16' or 'nodenext'. console.log(foo + bar); var __webpack_export_target__ = exports; - for(var i in __webpack_exports__)__webpack_export_target__[i] = __webpack_exports__[i]; + 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 }); " ❯ integration/extension-alias/index.test.ts:8:23
Prepare Rspack Binding
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3, MasterworksIO/action-local-cache@2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
_selftest
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/
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/
rsdoctor
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/
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/
rsbuild
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/
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/
nuxt
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/
devserver
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/
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/

Artifacts

Produced during runtime
Name Size
binding-linux-x64-gnu
23.3 MB