[Pkg-javascript-devel] Bug#1002787: babel-minify: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Tue Dec 28 20:14:04 GMT 2021
Source: babel-minify
Version: 0.5.1+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211228 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> gulp buildPackages buildUtils
> [19:17:17] Local gulp not found in /<<PKGBUILDDIR>>
> [19:17:17] Try running: yarn add gulp
> [19:17:17] Using globally installed gulp
> [19:17:17] Using gulpfile /<<PKGBUILDDIR>>/gulpfile.js
> [19:17:17] Starting 'buildPackages'...
> [19:17:17] Starting 'buildUtils'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/packages/babel-helper-evaluate-path/src/index.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/utils/test-runner/src/argParser.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/packages/babel-helper-flip-expressions/src/index.js'...
> (node:3973535) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/utils/test-runner/src/fs.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/packages/babel-helper-is-void-0/src/index.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/utils/test-runner/src/index.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/packages/babel-helper-mark-eval-scopes/src/index.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/utils/test-transform/src/test-transform.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/packages/babel-helper-remove-or-void/src/index.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/utils/unpad/src/unpad.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/packages/babel-helper-to-multiple-sequence-expressions/src/index.js'...
> [19:17:17] Compiling '/<<PKGBUILDDIR>>/packages/babel-minify/src/cli.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-minify/src/fs.js'...
> [19:17:18] Finished 'buildUtils' after 632 ms
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-minify/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-minify/src/options-parser.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-builtins/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-constant-folding/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-constant-folding/src/replacements.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-dead-code-elimination/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-dead-code-elimination/src/remove-use-strict.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-flip-comparisons/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-guarded-expressions/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-infinity/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-mangle-names/src/bfs-traverse.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-mangle-names/src/charset.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-mangle-names/src/counted-set.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-mangle-names/src/fixup-var-scoping.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-mangle-names/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-mangle-names/src/is-label-identifier.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-mangle-names/src/scope-tracker.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-numeric-literals/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-replace/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-simplify/src/assignment-expression.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-simplify/src/conditional-expression.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-simplify/src/helpers.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-simplify/src/if-statement.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-simplify/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-simplify/src/logical-expression.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-simplify/src/pattern-match.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-minify-type-constructors/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-inline-consecutive-adds/src/array-collapser.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-inline-consecutive-adds/src/array-property-collapser.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-inline-consecutive-adds/src/collapser.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-inline-consecutive-adds/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-inline-consecutive-adds/src/object-collapser.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-inline-consecutive-adds/src/set-collapser.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-inline-environment-variables/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-member-expression-literals/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-merge-sibling-variables/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-minify-booleans/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-node-env-inline/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-property-literals/src/escape-string-literal.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-property-literals/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-property-literals/src/property-name.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-regexp-constructors/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-remove-console/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-remove-debugger/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-remove-undefined/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-simplify-comparison-operators/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-plugin-transform-undefined-to-void/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/babel-preset-minify/src/index.js'...
> [19:17:18] Compiling '/<<PKGBUILDDIR>>/packages/gulp-babel-minify/src/index.js'...
> [19:17:18] Finished 'buildPackages' after 1.42 s
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test --buildsystem=nodejs
> Found debian/nodejs/additional_components
> Adding component(s): packages/babel-helper-evaluate-path, packages/babel-helper-flip-expressions, packages/babel-helper-is-void-0, packages/babel-helper-mark-eval-scopes, packages/babel-helper-remove-or-void, packages/babel-helper-to-multiple-sequence-expressions, packages/babel-minify, packages/babel-plugin-minify-builtins, packages/babel-plugin-minify-constant-folding, packages/babel-plugin-minify-dead-code-elimination, packages/babel-plugin-minify-flip-comparisons, packages/babel-plugin-minify-guarded-expressions, packages/babel-plugin-minify-infinity, packages/babel-plugin-minify-mangle-names, packages/babel-plugin-minify-numeric-literals, packages/babel-plugin-minify-replace, packages/babel-plugin-minify-simplify, packages/babel-plugin-minify-type-constructors, packages/babel-plugin-transform-inline-consecutive-adds, packages/babel-plugin-transform-inline-environment-variables, packages/babel-plugin-transform-member-expression-literals, packages/babel-plugin-transform-merge-sibling-variables, packages/babel-plugin-transform-minify-booleans, packages/babel-plugin-transform-node-env-inline, packages/babel-plugin-transform-property-literals, packages/babel-plugin-transform-regexp-constructors, packages/babel-plugin-transform-remove-console, packages/babel-plugin-transform-remove-debugger, packages/babel-plugin-transform-remove-undefined, packages/babel-plugin-transform-simplify-comparison-operators, packages/babel-plugin-transform-undefined-to-void, packages/babel-preset-minify, packages/gulp-babel-minify
> Adding component(s): utils/test-runner, utils/test-transform, utils/unpad
> ln -s ../debian/tests/test_modules/object.getownpropertydescriptors node_modules/object.getownpropertydescriptors
> ln -s ../debian/tests/test_modules/util.promisify node_modules/util.promisify
> ln -s ../packages/babel-helper-evaluate-path node_modules/babel-helper-evaluate-path
> /bin/sh -ex debian/tests/pkg-js/test
> + test !=
> + cat debian/tests/valid_tests
> + LIST=packages/babel-helper-mark-eval-scopes/__tests__/helper-mark-eval-scopes-test.js
> packages/babel-minify/__tests__/node-api-tests.js
> packages/babel-plugin-minify-builtins/__tests__/index.js
> packages/babel-plugin-minify-constant-folding/__tests__/index.js
> packages/babel-plugin-minify-dead-code-elimination/__tests__/dead-code-elimination-test.js
> packages/babel-plugin-minify-flip-comparisons/__tests__/index.js
> packages/babel-plugin-minify-guarded-expressions/__tests__/index.js
> packages/babel-plugin-minify-infinity/__tests__/index.js
> packages/babel-plugin-minify-mangle-names/__tests__/index.js
> packages/babel-plugin-minify-mangle-names/__tests__/mangle-names-test.js
> packages/babel-plugin-minify-numeric-literals/__tests__/index.js
> packages/babel-plugin-minify-replace/__tests__/replace-test.js
> packages/babel-plugin-minify-simplify/__tests__/index.js
> packages/babel-plugin-minify-simplify/__tests__/pattern-match.js
> packages/babel-plugin-minify-simplify/__tests__/simplify-test.js
> packages/babel-plugin-minify-type-constructors/__tests__/index.js
> packages/babel-plugin-minify-type-constructors/__tests__/type-constructors-test.js
> packages/babel-plugin-transform-inline-consecutive-adds/__tests__/index.js
> packages/babel-plugin-transform-inline-environment-variables/__tests__/inline-env-var-test.js
> packages/babel-plugin-transform-member-expression-literals/__tests__/index.js
> packages/babel-plugin-transform-minify-booleans/__tests__/index.js
> packages/babel-plugin-transform-node-env-inline/__tests__/node-env-inline-test.js
> packages/babel-plugin-transform-property-literals/__tests__/index.js
> packages/babel-plugin-transform-regexp-constructors/__tests__/index.js
> packages/babel-plugin-transform-remove-console/__tests__/index.js
> packages/babel-plugin-transform-remove-debugger/__tests__/index.js
> packages/babel-plugin-transform-remove-undefined/__tests__/index.js
> packages/babel-plugin-transform-simplify-comparison-operators/__tests__/index.js
> packages/babel-plugin-transform-undefined-to-void/__tests__/index.js
> packages/babel-preset-minify/__tests__/options-tests.js
> packages/babel-preset-minify/__tests__/preset-tests.js
> packages/gulp-babel-minify/__tests__/gulp-babili-test.js
> + jest --ci packages/babel-helper-mark-eval-scopes/__tests__/helper-mark-eval-scopes-test.js packages/babel-minify/__tests__/node-api-tests.js packages/babel-plugin-minify-builtins/__tests__/index.js packages/babel-plugin-minify-constant-folding/__tests__/index.js packages/babel-plugin-minify-dead-code-elimination/__tests__/dead-code-elimination-test.js packages/babel-plugin-minify-flip-comparisons/__tests__/index.js packages/babel-plugin-minify-guarded-expressions/__tests__/index.js packages/babel-plugin-minify-infinity/__tests__/index.js packages/babel-plugin-minify-mangle-names/__tests__/index.js packages/babel-plugin-minify-mangle-names/__tests__/mangle-names-test.js packages/babel-plugin-minify-numeric-literals/__tests__/index.js packages/babel-plugin-minify-replace/__tests__/replace-test.js packages/babel-plugin-minify-simplify/__tests__/index.js packages/babel-plugin-minify-simplify/__tests__/pattern-match.js packages/babel-plugin-minify-simplify/__tests__/simplify-test.js packages/babel-plugin-minify-type-constructors/__tests__/index.js packages/babel-plugin-minify-type-constructors/__tests__/type-constructors-test.js packages/babel-plugin-transform-inline-consecutive-adds/__tests__/index.js packages/babel-plugin-transform-inline-environment-variables/__tests__/inline-env-var-test.js packages/babel-plugin-transform-member-expression-literals/__tests__/index.js packages/babel-plugin-transform-minify-booleans/__tests__/index.js packages/babel-plugin-transform-node-env-inline/__tests__/node-env-inline-test.js packages/babel-plugin-transform-property-literals/__tests__/index.js packages/babel-plugin-transform-regexp-constructors/__tests__/index.js packages/babel-plugin-transform-remove-console/__tests__/index.js packages/babel-plugin-transform-remove-debugger/__tests__/index.js packages/babel-plugin-transform-remove-undefined/__tests__/index.js packages/babel-plugin-transform-simplify-comparison-operators/__tests__/index.js packages/babel-plugin-transform-undefined-to-void/__tests__/index.js packages/babel-preset-minify/__tests__/options-tests.js packages/babel-preset-minify/__tests__/preset-tests.js packages/gulp-babel-minify/__tests__/gulp-babili-test.js
> PASS packages/babel-plugin-minify-simplify/__tests__/pattern-match.js
> PASS packages/babel-preset-minify/__tests__/preset-tests.js (9.041 s)
> PASS packages/babel-plugin-minify-simplify/__tests__/simplify-test.js (9.671 s)
> PASS packages/babel-preset-minify/__tests__/options-tests.js
> PASS packages/babel-plugin-minify-replace/__tests__/replace-test.js
> PASS packages/babel-minify/__tests__/node-api-tests.js
> PASS packages/babel-plugin-minify-dead-code-elimination/__tests__/dead-code-elimination-test.js
> PASS packages/babel-plugin-minify-type-constructors/__tests__/type-constructors-test.js
> (node:3973606) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> PASS packages/gulp-babel-minify/__tests__/gulp-babili-test.js (12.979 s)
> PASS packages/babel-plugin-transform-inline-environment-variables/__tests__/inline-env-var-test.js
> PASS packages/babel-helper-mark-eval-scopes/__tests__/helper-mark-eval-scopes-test.js
> PASS packages/babel-plugin-transform-node-env-inline/__tests__/node-env-inline-test.js
> PASS packages/babel-plugin-minify-mangle-names/__tests__/mangle-names-test.js
> PASS packages/babel-plugin-minify-infinity/__tests__/index.js
> PASS packages/babel-plugin-minify-guarded-expressions/__tests__/index.js
> PASS packages/babel-plugin-transform-remove-undefined/__tests__/index.js
> PASS packages/babel-plugin-minify-numeric-literals/__tests__/index.js
> PASS packages/babel-plugin-transform-remove-console/__tests__/index.js
> PASS packages/babel-plugin-transform-property-literals/__tests__/index.js
> PASS packages/babel-plugin-transform-remove-debugger/__tests__/index.js
> PASS packages/babel-plugin-minify-constant-folding/__tests__/index.js
> PASS packages/babel-plugin-minify-builtins/__tests__/index.js
> PASS packages/babel-plugin-transform-simplify-comparison-operators/__tests__/index.js
> PASS packages/babel-plugin-minify-simplify/__tests__/index.js
> PASS packages/babel-plugin-transform-member-expression-literals/__tests__/index.js
> PASS packages/babel-plugin-transform-regexp-constructors/__tests__/index.js
> PASS packages/babel-plugin-minify-flip-comparisons/__tests__/index.js
> PASS packages/babel-plugin-minify-type-constructors/__tests__/index.js
> PASS packages/babel-plugin-transform-inline-consecutive-adds/__tests__/index.js
> PASS packages/babel-plugin-transform-minify-booleans/__tests__/index.js
> PASS packages/babel-plugin-transform-undefined-to-void/__tests__/index.js
> FAIL packages/babel-plugin-minify-mangle-names/__tests__/index.js
> ● babel-plugin-minify-mangle-names › constant-violations-2
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 5
> + Received + 5
>
> @@ -1,12 +1,12 @@
> !function () {
> - var b = 1;
> + var a = 1;
> - b--;
> + a--;
> - var b = 10;
> + var a = 10;
> - a(b);
> + b(a);
>
> - function a() {
> + function b() {
> var a = 10;
> a++;
> var a = 20;
> a(a);
> }
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
> ● babel-plugin-minify-mangle-names › issue-822
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 20
> + Received + 20
>
> function d3_svg_line(a) {
> - var c = d3_geom_pointX,
> + var b = d3_geom_pointX,
> - d = d3_geom_pointY,
> + c = d3_geom_pointY,
> e = d3_true,
> f = d3_svg_lineLinear,
> g = f.key,
> h = 0.7;
>
> - function b(b) {
> + function i(c) {
> - var j = [],
> + var g = [],
> - k = [],
> + j = [],
> - l = -1,
> + k = -1,
> - m = b.length,
> + l = c.length,
> - n,
> + m,
> - o = d3_functor(c);
> + n = d3_functor(b);
>
> - function g() {
> + function o() {
> - j.push("M", f(a(k), h));
> + g.push("M", f(a(j), h));
> }
>
> - while (++l < m) {
> + while (++k < l) {
> - if (e.call(this, n = b[l], l)) {
> + if (e.call(this, m = c[k], k)) {
> - k.push([+o.call(this, n, l)]);
> + j.push([+n.call(this, m, k)]);
> - } else if (k.length) {
> + } else if (j.length) {
> - g();
> + o();
> - k = [];
> + j = [];
> }
> }
>
> - if (k.length) g();
> + if (j.length) o();
> - return j.length ? j.join("") : null;
> + return g.length ? g.join("") : null;
> }
>
> - return b;
> + return i;
> }
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
> ● babel-plugin-minify-mangle-names › keep-class-name
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 5
> + Received + 5
>
> (function () {
> class Foo {}
>
> - const b = class Bar extends Foo {};
> + const a = class Bar extends Foo {};
> - var c = class Baz {};
> + var b = class Baz {};
>
> - function a() {
> + function c() {
> - new c();
> + new b();
> }
>
> - a();
> + c();
> })();
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
> ● babel-plugin-minify-mangle-names › reuse
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 8
> + Received + 8
>
> function Foo() {
> - var ba, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + var aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> var z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> var Z, $;
> - ba, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> Z, $;
>
> - function aa() {
> + function _() {
> - var aa, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + var h, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> var z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> var Z, $;
> - aa, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + h, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> Z, $;
>
> - function h() {
> + function _() {
> var aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> var z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> var Z, $;
> aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> Z, $;
> }
>
> - h();
> + _();
> }
>
> - aa();
> + _();
> }
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
> Summary of all failing tests
> FAIL packages/babel-plugin-minify-mangle-names/__tests__/index.js
> ● babel-plugin-minify-mangle-names › constant-violations-2
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 5
> + Received + 5
>
> @@ -1,12 +1,12 @@
> !function () {
> - var b = 1;
> + var a = 1;
> - b--;
> + a--;
> - var b = 10;
> + var a = 10;
> - a(b);
> + b(a);
>
> - function a() {
> + function b() {
> var a = 10;
> a++;
> var a = 20;
> a(a);
> }
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
> ● babel-plugin-minify-mangle-names › issue-822
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 20
> + Received + 20
>
> function d3_svg_line(a) {
> - var c = d3_geom_pointX,
> + var b = d3_geom_pointX,
> - d = d3_geom_pointY,
> + c = d3_geom_pointY,
> e = d3_true,
> f = d3_svg_lineLinear,
> g = f.key,
> h = 0.7;
>
> - function b(b) {
> + function i(c) {
> - var j = [],
> + var g = [],
> - k = [],
> + j = [],
> - l = -1,
> + k = -1,
> - m = b.length,
> + l = c.length,
> - n,
> + m,
> - o = d3_functor(c);
> + n = d3_functor(b);
>
> - function g() {
> + function o() {
> - j.push("M", f(a(k), h));
> + g.push("M", f(a(j), h));
> }
>
> - while (++l < m) {
> + while (++k < l) {
> - if (e.call(this, n = b[l], l)) {
> + if (e.call(this, m = c[k], k)) {
> - k.push([+o.call(this, n, l)]);
> + j.push([+n.call(this, m, k)]);
> - } else if (k.length) {
> + } else if (j.length) {
> - g();
> + o();
> - k = [];
> + j = [];
> }
> }
>
> - if (k.length) g();
> + if (j.length) o();
> - return j.length ? j.join("") : null;
> + return g.length ? g.join("") : null;
> }
>
> - return b;
> + return i;
> }
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
> ● babel-plugin-minify-mangle-names › keep-class-name
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 5
> + Received + 5
>
> (function () {
> class Foo {}
>
> - const b = class Bar extends Foo {};
> + const a = class Bar extends Foo {};
> - var c = class Baz {};
> + var b = class Baz {};
>
> - function a() {
> + function c() {
> - new c();
> + new b();
> }
>
> - a();
> + c();
> })();
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
> ● babel-plugin-minify-mangle-names › reuse
>
> expect(received).toBe(expected) // Object.is equality
>
> - Expected - 8
> + Received + 8
>
> function Foo() {
> - var ba, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + var aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> var z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> var Z, $;
> - ba, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> Z, $;
>
> - function aa() {
> + function _() {
> - var aa, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + var h, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> var z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> var Z, $;
> - aa, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> + h, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> Z, $;
>
> - function h() {
> + function _() {
> var aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> var z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> var Z, $;
> aa, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y;
> z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y;
> Z, $;
> }
>
> - h();
> + _();
> }
>
> - aa();
> + _();
> }
>
> 106 | } else {
> 107 | const expected = yield fs.readFile(expectedFile);
> > 108 | expect(actualTransformed).toBe(expected);
> | ^
> 109 | }
> 110 | }));
> 111 | }
>
> at Object.<anonymous> (utils/test-runner/lib/index.js:108:39)
> at asyncGeneratorStep (utils/test-runner/lib/index.js:3:95)
> at _next (utils/test-runner/lib/index.js:5:194)
>
>
> Test Suites: 1 failed, 31 passed, 32 total
> Tests: 4 failed, 6 skipped, 359 passed, 369 total
> Snapshots: 17 passed, 17 total
> Time: 18.48 s
> Ran all test suites matching /packages\/babel-helper-mark-eval-scopes\/__tests__\/helper-mark-eval-scopes-test.js|packages\/babel-minify\/__tests__\/node-api-tests.js|packages\/babel-plugin-minify-builtins\/__tests__\/index.js|packages\/babel-plugin-minify-constant-folding\/__tests__\/index.js|packages\/babel-plugin-minify-dead-code-elimination\/__tests__\/dead-code-elimination-test.js|packages\/babel-plugin-minify-flip-comparisons\/__tests__\/index.js|packages\/babel-plugin-minify-guarded-expressions\/__tests__\/index.js|packages\/babel-plugin-minify-infinity\/__tests__\/index.js|packages\/babel-plugin-minify-mangle-names\/__tests__\/index.js|packages\/babel-plugin-minify-mangle-names\/__tests__\/mangle-names-test.js|packages\/babel-plugin-minify-numeric-literals\/__tests__\/index.js|packages\/babel-plugin-minify-replace\/__tests__\/replace-test.js|packages\/babel-plugin-minify-simplify\/__tests__\/index.js|packages\/babel-plugin-minify-simplify\/__tests__\/pattern-match.js|packages\/babel-plugin-minify-simplify\/__tests__\/simplify-test.js|packages\/babel-plugin-minify-type-constructors\/__tests__\/index.js|packages\/babel-plugin-minify-type-constructors\/__tests__\/type-constructors-test.js|packages\/babel-plugin-transform-inline-consecutive-adds\/__tests__\/index.js|packages\/babel-plugin-transform-inline-environment-variables\/__tests__\/inline-env-var-test.js|packages\/babel-plugin-transform-member-expression-literals\/__tests__\/index.js|packages\/babel-plugin-transform-minify-booleans\/__tests__\/index.js|packages\/babel-plugin-transform-node-env-inline\/__tests__\/node-env-inline-test.js|packages\/babel-plugin-transform-property-literals\/__tests__\/index.js|packages\/babel-plugin-transform-regexp-constructors\/__tests__\/index.js|packages\/babel-plugin-transform-remove-console\/__tests__\/index.js|packages\/babel-plugin-transform-remove-debugger\/__tests__\/index.js|packages\/babel-plugin-transform-remove-undefined\/__tests__\/index.js|packages\/babel-plugin-transform-simplify-comparison-operators\/__tests__\/index.js|packages\/babel-plugin-transform-undefined-to-void\/__tests__\/index.js|packages\/babel-preset-minify\/__tests__\/options-tests.js|packages\/babel-preset-minify\/__tests__\/preset-tests.js|packages\/gulp-babel-minify\/__tests__\/gulp-babili-test.js/i.
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2021/12/28/babel-minify_0.5.1+dfsg-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-javascript-devel
mailing list