[quality] Missing CI workflow: npm run test:coverage / test:e2e never run
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 95/100
Hướng nghiên cứu
Bắt đầu với package.json để xác nhận các script test:coverage và test:e2e, sau đó đọc .github/workflows/format-check.yml và .github/actions/npm-ci-via-cached-nvmrc để hiểu mẫu workflow của repository. Tạo .github/workflows/test-check.yml với các job coverage và end-to-end riêng biệt, sử dụng shared composite action. Hoàn tất nghĩa là pull request chạy cả npm run test:coverage và npm run test:e2e, đồng thời lỗi coverage gate hoặc build e2e sẽ chặn workflow.
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 two test scripts that are never invoked by CI:
test:coverageruns the unit suite (lib/**/*.test.mts,scripts/**/*.test.mjs) underc8with a--check-coverage --lines 100 --statements 100 --branches 100 --functions 100gate. Locally, 77/77 tests pass and coverage is 100% across all files.test:e2erunse2e/**/*.test.mjs(realdocusaurus buildruns that exercise link rewriting end-to-end). Locally, 16/16 tests pass.
.github/workflows/ only contains format-check.yml, link-check.yml, spell-check.yml, and trigger-contribute-site-netlify.yml - none of them call npm run test:coverage or npm run test:e2e. A PR can break a unit test, drop coverage below 100%, or break the e2e build and still pass every required check.
Recommendation
Add .github/workflows/test-check.yml with the exact contents below (mirrors the existing format-check.yml style: pull_request trigger, contents: read, the shared ./.github/actions/npm-ci-via-cached-nvmrc composite action):
name: Test checks
on:
pull_request:
permissions:
contents: read
jobs:
unit-coverage:
name: UNIT test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/npm-ci-via-cached-nvmrc
- run: npm run test:coverage
e2e:
name: E2E tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/npm-ci-via-cached-nvmrc
- run: npm run test:e2e
This change lives entirely in .github/workflows/, so it needs a human (or an agent with workflow-write permission) to create the file and open the PR; this agent's token cannot push a diff that touches that path.
Priority
- Impact: high
- Effort: low
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-boq9 | SHA: 05422fc
-- hive: agent=quality backend=copilot model=claude-sonnet-5 copilot=1.0.88
- 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
-
[quality] npm run test:unit never runs in CI — unit tests have no CI signalCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởagent/quality author/hive hive/partially-addressed hive/verified-open needs-human stage/020-accepted testing triage/accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
cncf/techdocs#390 · 9 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
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 242 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
Tất cả issue của cncf/techdocs
Issue tương tự
-
bug data-types
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: middleware enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
juspay/agent-distro#203 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/docs framework/jekyll language/markdown
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
meshery/schemas#1456 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày