@babel/core internal test skips fail when citgm run locally
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- testing-qa, tooling
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 606
- Fork
- 159
- Merge trung bình
- 3 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nodejs/citgm
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`citgm-smoker` fails `express-session` in `alpine-latest-x64` (openssl: not found)Có thể đã có người làm @MikeMcC399 đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nodejs/citgm#1200 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`microtime` fails on macOS, Windows & Alpine LinuxCó thể đã có người làm @MikeMcC399 đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nodejs/citgm#1175 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`@yarnpkg/cli` v4 fails in Node.js 22 (macos/ubuntu)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nodejs/citgm#1164 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
ew
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority: medium status: needs-decision work-class: scoped
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
melodic-software/claude-code-plugins#9339 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug-report bug-report-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Codeinwp/templates-patterns-collection#539 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
建议增加URL参数构建的工具Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
[Bug] dsh 0.2.1 返回 session/not-found 时 sessionExists 不重建会话,消息恒失败并被误报为 INTERNAL_UNKNOWNCó thể đã có người làm @ANIIAN91 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
xmanrui/dsh-im#444 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày