From a73dbbe4b27494bf527e141414a94f3a3bdc1571 Mon Sep 17 00:00:00 2001 From: GiveMe-A-Name Date: Wed, 27 Nov 2024 16:13:37 +0800 Subject: [PATCH] test: create issues for webpack-test failures - create issues for failed webpack-test - delete test.filter.js for passed webpack-test --- pnpm-lock.yaml | 39 +++++++++++++++++++ .../test.filter.js | 4 -- .../asset-modules/ignore/test.filter.js | 3 +- .../query-and-custom-condition/test.filter.js | 3 +- .../query-and-custom-encoder/test.filter.js | 3 +- .../rule-generator-outputPath/test.filter.js | 3 +- .../node_modules/package/file.svg | 1 + .../node_modules/package/index.js | 1 + .../unsafe-cache-13827/test.filter.js | 2 - .../asset-url/target-web1/test.filter.js | 2 - .../order-multiple-entries/test.filter.js | 3 +- .../configCases/clean/dry/test.filter.js | 3 +- tests/webpack-test/package.json | 4 ++ 13 files changed, 51 insertions(+), 20 deletions(-) delete mode 100644 tests/webpack-test/cases/compile/deduplication-bundle-loader/test.filter.js create mode 100644 tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/file.svg create mode 100644 tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/index.js delete mode 100644 tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/test.filter.js delete mode 100644 tests/webpack-test/configCases/asset-url/target-web1/test.filter.js diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 08b9ba852cbb..4abbce9ebe07 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -949,6 +949,9 @@ importers: babel-plugin-import: specifier: ^1.13.5 version: 1.13.8 + bundle-loader: + specifier: ^0.5.6 + version: 0.5.6 chokidar: specifier: ^3.6.0 version: 3.6.0 @@ -991,6 +994,12 @@ importers: memfs: specifier: ^4.9.2 version: 4.14.0 + mime-types: + specifier: ^2.1.27 + version: 2.1.35 + mini-svg-data-uri: + specifier: ^1.2.3 + version: 1.4.4 node-polyfill-webpack-plugin: specifier: 3.0.0 version: 3.0.0(webpack@5.94.0(@swc/core@1.7.40(@swc/helpers@0.5.13))(webpack-cli@5.1.4(webpack@5.94.0))) @@ -1039,6 +1048,9 @@ importers: typescript: specifier: ^4.7.4 version: 4.9.5 + url-loader: + specifier: ^4.1.0 + version: 4.1.1(file-loader@6.2.0(webpack@5.94.0(@swc/core@1.7.40(@swc/helpers@0.5.13))(webpack-cli@5.1.4(webpack@5.94.0))))(webpack@5.94.0(@swc/core@1.7.40(@swc/helpers@0.5.13))(webpack-cli@5.1.4(webpack@5.94.0))) util: specifier: 0.12.5 version: 0.12.5 @@ -4144,6 +4156,10 @@ packages: builtin-status-codes@3.0.0: resolution: {integrity: sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==} + bundle-loader@0.5.6: + resolution: {integrity: sha512-SUgX+u/LJzlJiuoIghuubZ66eflehnjmqSfh/ib9DTe08sxRJ5F/MhHSjp7GfSJivSp8NWgez4PVNAUuMg7vSg==} + engines: {node: '>= 4'} + bundle-name@4.1.0: resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} engines: {node: '>=18'} @@ -9456,6 +9472,16 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + url-loader@4.1.1: + resolution: {integrity: sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + file-loader: '*' + webpack: ^4.0.0 || ^5.0.0 + peerDependenciesMeta: + file-loader: + optional: true + url-parse@1.5.10: resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} @@ -13398,6 +13424,10 @@ snapshots: builtin-status-codes@3.0.0: {} + bundle-loader@0.5.6: + dependencies: + loader-utils: 1.4.2 + bundle-name@4.1.0: dependencies: run-applescript: 7.0.0 @@ -19676,6 +19706,15 @@ snapshots: dependencies: punycode: 2.3.1 + url-loader@4.1.1(file-loader@6.2.0(webpack@5.94.0(@swc/core@1.7.40(@swc/helpers@0.5.13))(webpack-cli@5.1.4(webpack@5.94.0))))(webpack@5.94.0(@swc/core@1.7.40(@swc/helpers@0.5.13))(webpack-cli@5.1.4(webpack@5.94.0))): + dependencies: + loader-utils: 2.0.4 + mime-types: 2.1.35 + schema-utils: 3.3.0 + webpack: 5.94.0(@swc/core@1.7.40(@swc/helpers@0.5.13))(webpack-cli@5.1.4(webpack@5.94.0)) + optionalDependencies: + file-loader: 6.2.0(webpack@5.94.0(@swc/core@1.7.40(@swc/helpers@0.5.13))(webpack-cli@5.1.4(webpack@5.94.0))) + url-parse@1.5.10: dependencies: querystringify: 2.2.0 diff --git a/tests/webpack-test/cases/compile/deduplication-bundle-loader/test.filter.js b/tests/webpack-test/cases/compile/deduplication-bundle-loader/test.filter.js deleted file mode 100644 index 388fc629b8e2..000000000000 --- a/tests/webpack-test/cases/compile/deduplication-bundle-loader/test.filter.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4304"} - - \ No newline at end of file diff --git a/tests/webpack-test/configCases/asset-modules/ignore/test.filter.js b/tests/webpack-test/configCases/asset-modules/ignore/test.filter.js index 042493e42a5b..04c5f3d14445 100644 --- a/tests/webpack-test/configCases/asset-modules/ignore/test.filter.js +++ b/tests/webpack-test/configCases/asset-modules/ignore/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8531' } diff --git a/tests/webpack-test/configCases/asset-modules/query-and-custom-condition/test.filter.js b/tests/webpack-test/configCases/asset-modules/query-and-custom-condition/test.filter.js index 042493e42a5b..67623a805a02 100644 --- a/tests/webpack-test/configCases/asset-modules/query-and-custom-condition/test.filter.js +++ b/tests/webpack-test/configCases/asset-modules/query-and-custom-condition/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8488' } diff --git a/tests/webpack-test/configCases/asset-modules/query-and-custom-encoder/test.filter.js b/tests/webpack-test/configCases/asset-modules/query-and-custom-encoder/test.filter.js index 042493e42a5b..4e54436a944c 100644 --- a/tests/webpack-test/configCases/asset-modules/query-and-custom-encoder/test.filter.js +++ b/tests/webpack-test/configCases/asset-modules/query-and-custom-encoder/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8538' } diff --git a/tests/webpack-test/configCases/asset-modules/rule-generator-outputPath/test.filter.js b/tests/webpack-test/configCases/asset-modules/rule-generator-outputPath/test.filter.js index 042493e42a5b..962468a21721 100644 --- a/tests/webpack-test/configCases/asset-modules/rule-generator-outputPath/test.filter.js +++ b/tests/webpack-test/configCases/asset-modules/rule-generator-outputPath/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8539' } diff --git a/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/file.svg b/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/file.svg new file mode 100644 index 000000000000..d7b7e40b4f8f --- /dev/null +++ b/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/file.svg @@ -0,0 +1 @@ +icon-square-small diff --git a/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/index.js b/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/index.js new file mode 100644 index 000000000000..b8d757bda878 --- /dev/null +++ b/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/node_modules/package/index.js @@ -0,0 +1 @@ +export default new URL("file.svg", import.meta.url); diff --git a/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/test.filter.js b/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/test.filter.js deleted file mode 100644 index 042493e42a5b..000000000000 --- a/tests/webpack-test/configCases/asset-modules/unsafe-cache-13827/test.filter.js +++ /dev/null @@ -1,2 +0,0 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } diff --git a/tests/webpack-test/configCases/asset-url/target-web1/test.filter.js b/tests/webpack-test/configCases/asset-url/target-web1/test.filter.js deleted file mode 100644 index 042493e42a5b..000000000000 --- a/tests/webpack-test/configCases/asset-url/target-web1/test.filter.js +++ /dev/null @@ -1,2 +0,0 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } diff --git a/tests/webpack-test/configCases/chunk-index/order-multiple-entries/test.filter.js b/tests/webpack-test/configCases/chunk-index/order-multiple-entries/test.filter.js index 3f77f9ff9858..b5842b2b3450 100644 --- a/tests/webpack-test/configCases/chunk-index/order-multiple-entries/test.filter.js +++ b/tests/webpack-test/configCases/chunk-index/order-multiple-entries/test.filter.js @@ -1,5 +1,4 @@ // enable when support compilation.moduleGraph(unimplemented).getPreOrderIndex(unimplemented) -// TODO: Should create a issue for this test module.exports = () => { - return false; + return 'https://github.com/web-infra-dev/rspack/issues/8548'; }; diff --git a/tests/webpack-test/configCases/clean/dry/test.filter.js b/tests/webpack-test/configCases/clean/dry/test.filter.js index 042493e42a5b..59f4790ab6d4 100644 --- a/tests/webpack-test/configCases/clean/dry/test.filter.js +++ b/tests/webpack-test/configCases/clean/dry/test.filter.js @@ -1,2 +1 @@ -// TODO: Should create a issue for this test -module.exports = () => { return false } +module.exports = () => { return 'https://github.com/web-infra-dev/rspack/issues/8549' } diff --git a/tests/webpack-test/package.json b/tests/webpack-test/package.json index 8d8578673c5d..92637be87e0e 100644 --- a/tests/webpack-test/package.json +++ b/tests/webpack-test/package.json @@ -44,10 +44,14 @@ "postcss-pxtorem": "^6.0.0", "pug-loader": "^2.4.0", "raw-loader": "^4.0.2", + "bundle-loader": "^0.5.6", "react": "^18.2.0", "react-dom": "^18.2.0", "react-relay": "^14.1.0", "rimraf": "3.0.2", + "mini-svg-data-uri": "^1.2.3", + "mime-types": "^2.1.27", + "url-loader": "^4.1.0", "sass-embedded": "^1.77.8", "sass-loader": "^16.0.0", "source-map": "^0.7.4",