@babel/core internal test skips fail when citgm run locally
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript, nodejs
- 领域
- testing-qa, tooling
调研方向
Start with lib/lookup.json, where the per-package citgm entries such as @babel/core and jose define their skip settings. The failures are in packages/babel-traverse/test/traverse.js, around the deprecated-types and deprecated-aliases tests that expect a console warning. Check how citgm runs the suite outside Jenkins, where the temp directory differs from NODE_TEST_DIR. Done means the proposed CITGM environment variable is set for these runs and those two tests are skipped only when it is true.
由索引模型根据 Issue 内容生成。
描述
Situation
When cigtm @babel/core is run outside of Node.js Jenkins CI, it fails to skip tests that it intended to skip for citgm.
error: |
error: | Summary of all failing tests
error: | FAIL packages/babel-traverse/test/traverse.js
error: | traverse > traverse.explode > deprecated types and aliases > should warn for deprecated node types
error: | Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
error: |
error: | Expected: StringMatching /Visitor `NumberLiteral` has been deprecated, please migrate to `NumericLiteral`[^]+at.+testFn1/
error: |
error: | Number of calls: 0
error: | at testFn1 (file:///tmp/be09bd18/@babel/core/packages/babel-traverse/test/traverse.js?1791788834095:513:30)
error: | at async file:///tmp/be09bd18/@babel/core/node_modules/tinypool/dist/esm/entry/worker.js:72:20
error: |
error: | traverse > traverse.explode > deprecated types and aliases > should warn for deprecated aliases
error: | Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
error: |
error: | Expected: StringMatching /Visitor `ModuleDeclaration` has been deprecated, please migrate to `ImportOrExportDeclaration`[^]+at.+testFn2/
error: |
error: | Number of calls: 0
error: | at testFn2 (file:///tmp/be09bd18/@babel/core/packages/babel-traverse/test/traverse.js?1791788834095:529:30)
error: | at async file:///tmp/be09bd18/@babel/core/node_modules/tinypool/dist/esm/entry/worker.js:72:20
error: |
error: |
error: | Test Suites: 1 failed, 275 passed, 276 total
error: | Tests: 2 failed, 16 skipped, 36969 passed, 36987 total
In Node.js Jenkins CI citgm-smoker sets:
temp="$NODE_TEST_DIR"/citgm_tmp
This is however not generally the case if citgm is run in GitHub Actions or on a local system.
In the above example from Ubuntu on GitHub Actions the temp directory is /tmp/be09bd18 and the tests are not skipped.
Suggestion
Add an environment variable CITGM set to true into
https://github.com/nodejs/citgm/blob/37e15454ddfe5aba91955062b7899114c528e7d1/lib/lookup.json#L2-L8
and skip tests in @babel/core based on this environment variable as necessary.
This is used by jose, for example:
cc: @nicolo-ribaudo @JLHwung @liuxingbaoyu
- 主要语言
- JavaScript
- 星标
- 608
- 派生
- 163
- 平均合并
- 4 天 2 小时
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nodejs/citgm 的其他 Issue
-
`lru-cache` fails on Node.js 22可能已有人在做 @MikeMcC399 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
`serialport` fails in `win11-vs2022_clang-arm64`可能已有人在做 @MikeMcC399 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Outdated maintainers for body-parser可能已有人在做 @UlisesGascon 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
`citgm-smoker` fails `express-session` in `alpine-latest-x64` (openssl: not found)可能重新可做 @MikeMcC399 于 17 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
`microtime` fails on macOS, Windows & Alpine Linux可能已有人在做 @MikeMcC399 于 17 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
相似的 Issue
-
curriculum documentation quality
难度 2/5 1-3 小时 新手友好度 77/100
githubnext/gh-aw-workshop#5367 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 60/100
HeyPuter/everything#187 ·
维护者通常 1 天内回复
-
channels:add check:passed
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 4 天内回复
-
beginner blocked
难度 2/5 1-3 小时 新手友好度 82/100
hiero-ledger/hiero-sdk-js#4670 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 61/100
维护者通常 1 天内回复