[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 于 241 天前认领,目前没有进行中的 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