[quality] Missing CI workflow: npm run test:coverage / test:e2e never run
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 1/5
- 預估耗時
- 1 小時以內
- 新手友好度
- 95/100
研究方向
首先查看 package.json,確認 test:coverage 和 test:e2e 指令碼,然後閱讀 .github/workflows/format-check.yml 和 .github/actions/npm-ci-via-cached-nvmrc,了解該儲存庫的 workflow 模式。建立 .github/workflows/test-check.yml,使用共用的 composite action,分別設定 coverage 與 end-to-end job。完成的標準是:pull request 同時執行 npm run test:coverage 和 npm run test:e2e,且 coverage gate 或 e2e 建置失敗會阻擋 workflow 繼續執行。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- TypeScript
- 星號
- 58
- 分支
- 31
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 36
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cncf/techdocs 的其他 Issue
-
[quality] npm run test:unit never runs in CI — unit tests have no CI signal可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉agent/quality author/hive hive/partially-addressed hive/verified-open needs-human stage/020-accepted testing triage/accepted
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
agent/quality stage/045-needs-decision testing
難度 2/5 1-3 小時 新手友好度 42/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 1/100
維護者通常 1 天內回覆
-
CNCF Service Desk Docs analysis stage/010-actionable Website Update
難度 4/5 3-5 天 新手友好度 35/100
維護者通常 1 天內回覆
-
[CNCFSD-3284] KubeVirt Tech Docs assistance request可能重新可做 @Abhishek9639 於 242 天前認領,目前沒有進行中的 PR。 未關閉CNCF Service Desk Docs analysis ops/service-desk stage/010-actionable
難度 4/5 3-5 天 新手友好度 25/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 95/100
amosblomqvist/learnharness#1141 ·
維護者通常 4 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 82/100
ranxianglei/billion-context#8319 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
tencent-connect/dsh-qqbot#148 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
JimLiu/open-artifact#126 ·
-
難度 2/5 1-3 小時 新手友好度 78/100