npm failing in CITGM across all platforms/versions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, node.js
- 领域
- ci-cd, testing-qa
调研方向
首先在链接的平台上重现 [email protected] 的 CITGM smoker 运行,然后检查 test/lib/utils/exit-handler.js 和 tap/bin/run.js,以处理报告的失败和输出处理问题。相关 npm 测试在受影响的平台上通过,并且 Jenkins 输出在没有终端颜色代码的情况下可读,即表示完成。
由索引模型根据 Issue 内容生成。
描述
npm is/has been a regular failure in CITGM across all platforms/versions for a while. It's probably an important one to try to fix so we can properly track regressions.
Recent reruns on npm-v8.6.0 fail on all platforms:
- v17.8.0 - https://ci.nodejs.org/job/citgm-smoker-nobuild/1167/testReport/
- v16.14.2 - https://ci.nodejs.org/job/citgm-smoker-nobuild/1168/testReport/
There are a few different failures, with some obscured by other problems.
- On the majority of platforms the output is not easily readable in the Jenkins jobs as it contains the colour codes:
added 517 packages, and changed 14 packages in 60s
> [email protected] test
> tap
[0m[0m[1m[38;2;0;0;0m[42m PASS [0m[0m[0m test/bin/npm-cli.js[0m[37m[1m 1[22m[32m OK [0m[1m[38;2;170;170;170m683.401ms[39m[22m[0m[0m[42m[0m[0m[0m[0m[1m[32m[37m[0m[0m[1m[38;2;0;0;0m[42m[0m[0m[0m[0m[0m[1m[38;2;0;0;0m[42m[0m[0m[0m[0m[0m[0m[0m
[0m[0m[1m[38;2;0;0;0m[42m PASS [0m[0m[0m test/bin/npx-cli.js[0m[37m[1m 7[22m[32m OK [0m[1m[38;2;170;170;170m1s[39m[22m[0m[0m[42m[0m[0m[0m[0m[1m[32m[37m[0m[0m[1m[38;2;0;0;0m[42m[0m[0m[0m[0m[0m[1m[38;2;0;0;0m[42m[0m[0m[0m[0m[0m[0m[0m
[0m[0m[1m[38;2;255;255;255m[44m SKIP [0m[0m[0m test/bin/windows-shims.js > [36mtest only relevant on windows[0m[37m [0m[1m[38;2;170;170;170m3.385ms[39m[22m[0m[0m[1m[44m[0m[0m[0m[36m[0m[37m[0m[0m[1m[44m[0m[0m[0m[36m[0m[0m[1m[38;2;255;255;255m[44m[0m[0m[0m[0m[0m[0m[0m
[0m[0m[1m[38;2;255;255;255m[44m SKIP [0m[0m[0m TAP[0m[0m[1m[38;2;255;255;255m[44m[0m[0m[0m[0m[0m[0m[0m
- Multiple test failures can be found within the output, such as below:
01:17:59 error: | test: test/lib/utils/exit-handler.js handles unknown error with logs and debug
01:17:59 error: | file
01:17:59 error: | at:
01:17:59 error: | line: 132
01:17:59 error: | column: 9
01:17:59 error: | file: test/lib/utils/exit-handler.js
01:17:59 error: | stack: |
01:17:59 error: | test/lib/utils/exit-handler.js:132:9
01:17:59 error: | Array.forEach (<anonymous>)
01:17:59 error: | test/lib/utils/exit-handler.js:131:14
01:17:59 error: | Array.forEach (<anonymous>)
01:17:59 error: | Test.<anonymous> (test/lib/utils/exit-handler.js:129:8)
01:17:59 error: |
01:17:59 error: | [0m[0m[1m[41m[38;2;255;255;255m FAIL [0m[0m[0m test/lib/utils/exit-handler.js[0m[0m[1m[41m[38;2;255;255;255m[0m[0m[0m[0m[0m[0m[0m
01:17:59 error: | [31m[1m ✖ [39m[22mshould be equal
01:17:59 error: |
01:17:59 error: | .reduce((__, l) => parseInt(l.match(/^(\d+)\s/)[1]))
01:17:59 error: | t.equal(logs.length, lastLog + 1)
01:17:59 error: | ----^
01:17:59 error: | t.match(logs.error, [
01:17:59 error: | ['code', 'ECODE'],
- aix72-ppc64, rhel8-s390x, rhel7-s390x hit a different error early on:
> tap
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
/home/iojs/tmp/citgm_tmp/13a08f5e-0713-4513-983d-261f65768bac/npm/node_modules/tap/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
TypeError: Cannot read properties of undefined (reading 'match')
at onError (/home/iojs/tmp/citgm_tmp/13a08f5e-0713-4513-983d-261f65768bac/npm/node_modules/tap/bin/run.js:864:15)
at /home/iojs/tmp/citgm_tmp/13a08f5e-0713-4513-983d-261f65768bac/npm/node_modules/tap/bin/run.js:141:34
- 主要语言
- JavaScript
- 星标
- 608
- 派生
- 158
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 18
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nodejs/citgm 的其他 Issue
-
`citgm-smoker` fails `express-session` in `alpine-latest-x64` (openssl: not found)可能已有人在做 @MikeMcC399 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
`microtime` fails on macOS, Windows & Alpine Linux可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
`@yarnpkg/cli` v4 fails in Node.js 22 (macos/ubuntu) & Node.js 26 (win32)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
good first issue
难度 2/5 1-3 小时 新手友好度 86/100
Riloox/hostkind-open#45 ·
-
Request: semgrep未关闭new icon permissions in review
难度 2/5 1-3 小时 新手友好度 72/100
simple-icons/simple-icons#15093 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 83/100
module-federation/core#5205 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
aikido security:critical
难度 1/5 1 小时以内 新手友好度 76/100
dequelabs/monitor-utility#63 ·