[quality] npm run test:unit never runs in CI — unit tests have no CI signal
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #411 của @hivecommons-hive — đã merge
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 60/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, node.js, typescript
Hướng nghiên cứu
Đọc .github/workflows/format-check.yml và package.json để xác nhận mẫu workflow hiện có và lệnh chạy kiểm thử đơn vị. Thêm .github/workflows/unit-test.yml bằng nội dung workflow trong issue, sau đó xác minh workflow chạy npm run test:unit trên các pull request.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Finding
package.json defines a test:unit script:
"test:unit": "node --experimental-strip-types --test 'lib/**/*.test.mts'"
and a combined test script (check + test:unit), but no workflow under
.github/workflows/ ever invokes npm run test:unit or npm test. CI
currently only runs format-check.yml, link-check.yml, and
spell-check.yml.
This means lib/remarkRewriteLinks/index.test.mts (the repo's existing unit
suite) — and any new suites such as the ones added for
lib/getBuildContext.ts, lib/getCurrentBranch.ts, and
lib/getGitHubRepoUrl.ts in #389 — can regress with zero CI signal. A PR
that breaks these tests still shows all green checks.
Recommendation
Add a new workflow file .github/workflows/unit-test.yml with this exact
content (mirrors the existing format-check.yml pattern/style):
name: Unit tests
on:
pull_request:
permissions:
contents: read
jobs:
unit-test:
name: UNIT tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/npm-ci-via-cached-nvmrc
- run: npm run test:unit
Why this needs a human (or an ISSUES_PRS_MERGE agent)
This repository's quality-agent lane runs at the contributor token tier,
which does not carry the workflows permission. A push whose diff touches
.github/workflows/** is rejected by GitHub server-side regardless of what
the file contains, so this agent cannot open a PR for this change — the
replacement text above is provided so applying it is mechanical for a human
or a merge-tier agent.
Priority
- Impact: high — unit test regressions currently ship with all-green CI
- Effort: low — single new workflow file, copy-paste of an existing pattern
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-boq9 | SHA: unknown
— hive: agent=quality backend=copilot model=claude-opus-4-6
- Ngôn ngữ chính
- TypeScript
- Star
- 58
- Fork
- 31
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 36
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 cncf/techdocs
-
agent/quality stage/045-needs-decision testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
cncf/techdocs#461 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
cncf/techdocs#388 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CNCF Service Desk Docs analysis stage/010-actionable Website Update
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[CNCFSD-3284] KubeVirt Tech Docs assistance requestCó thể làm lại được @Abhishek9639 đã nhận 241 ngày trước và không có pull request nào đang mở. Đang mởCNCF Service Desk Docs analysis ops/service-desk stage/010-actionable
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
cncf/techdocs#343 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Analysis request]: DragonflyCó thể đã có người làm @iRaindrop đã nhận 3 ngày trước. Đang mởauthor/human CNCF Service Desk Docs analysis ops/service-desk stage/040-covered-by-pr triage/accepted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
cncf/techdocs#335 · 14 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cncf/techdocs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tashfeenahmed/freellmapi#2305 ·
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 82/100
prime-radiant-inc/evener#8335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Calendar: a range's preview stays on the last day pointed at after the pointer leaves the daysĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vercel-labs/ui#1921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: a new board's default grant names development, Vercel's API seeds preview and productionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Upgrade dompurify to 3.5.xĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/monaco-editor#5626 ·
Maintainer thường phản hồi trong vòng 1 ngày