[Pkg-javascript-devel] Bug#940704: yarnpkg: enable upstream test suite during build

Paolo Greppi paolo.greppi at libpf.com
Thu Sep 19 10:37:00 BST 2019


Package: yarnpkg
Version: 1.13.0-1
Severity: normal

the package has autopkgtest enabled but there no test is run during the build

it would be safer to enable the upstream test suite, but this requires jest;
I have given it a try using jest 22.4.4 installed from a separate node_modules dir and got:

Summary of all failing tests

FAIL __tests__/commands/run.js
...

  ● properly handle env command

    Error: expect(object).toHaveProperty(path)
...

FAIL __tests__/util/request-manager.js
...

  ● RequestManager.request with cafile

    error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak
...

  ● RequestManager.request with ca (string)

    error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak
...

  ● RequestManager.request with ca (array)

    error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak
...

  ● RequestManager.request with mutual TLS

    error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak
...

FAIL gunzip-maybe/test.js
  ● Test suite failed to run

    Cannot find module 'tape' from 'test.js'
...

FAIL __tests__/index.js
  ● Test suite failed to run

    These tests require `yarn build` to have been run first.
...

FAIL __tests__/lifecycle-scripts.js
  ● Test suite failed to run

    These tests require `yarn build` to have been run first.
...

FAIL peek-stream/test.js
  ● Test suite failed to run

    Cannot find module 'tape' from 'test.js'
...

FAIL __tests__/integration.js
  ● Test suite failed to run

    These tests require `yarn build` to have been run first.
...

Test Suites: 7 failed, 83 passed, 90 total
Tests:       5 failed, 3 skipped, 1116 passed, 1124 total
Snapshots:   111 passed, 111 total
Time:        77.732s

even if we have to exclude some tests, it makes sense to enable the test suite as a whole

-- System Information:
Debian Release: 10.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages yarnpkg depends on:
ii  node-asap                          2.0.6-1
ii  node-babel-runtime                 6.26.0+dfsg-3
ii  node-bytes                         3.0.0-1
ii  node-camelcase                     5.0.0-1
ii  node-chalk                         2.3.0-2
ii  node-chownr                        1.1.1-1
ii  node-ci-info                       1.1.2-1
ii  node-cli-table                     0.3.1-1
ii  node-commander                     2.12.2-3
ii  node-death                         1.0.0-1
ii  node-debug                         3.1.0-2
ii  node-deep-equal                    1.0.1-1
ii  node-detect-indent                 5.0.0-1
ii  node-duplexify                     3.6.1-1
ii  node-emoji                         1.8.1-1
ii  node-fast-levenshtein              2.0.5-1
ii  node-glob                          7.1.3-2
ii  node-imports-loader                0.7.1-1
ii  node-ini                           1.3.5-1
ii  node-inquirer                      3.3.0-2
ii  node-invariant                     2.2.2-1
ii  node-is-builtin-module             2.0.0-1
ii  node-loud-rejection                1.6.0-1
ii  node-micromatch                    2.3.11-1
ii  node-minimatch                     3.0.4-3
ii  node-mkdirp                        0.5.1-1
ii  node-node-uuid                     3.3.2-2
ii  node-object-path                   0.11.4-2
ii  node-proper-lockfile               2.0.1-1
ii  node-puka                          1.0.0+dfsg-1
ii  node-pump                          3.0.0-1
ii  node-pumpify                       1.5.1-1
ii  node-read                          1.0.7-1
ii  node-request                       2.88.1-2
ii  node-request-capture-har           1.2.2-1
ii  node-resolve                       1.5.0-1
ii  node-rimraf                        2.6.2-1
ii  node-semver                        5.5.1-1
ii  node-ssri                          5.2.4-2
ii  node-strip-ansi                    4.0.0-1
ii  node-strip-bom                     3.0.0-1
ii  node-tar-stream                    1.5.2-1
ii  node-validate-npm-package-license  3.0.1-1
ii  node-yn                            3.0.0-1
ii  nodejs                             10.15.2~dfsg-2

yarnpkg recommends no packages.

yarnpkg suggests no packages.

-- no debconf information



More information about the Pkg-javascript-devel mailing list