[quality] npm run test:unit never runs in CI — unit tests have no CI signal
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #411 来自 @hivecommons-hive —— 已合并
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 60/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, node.js, typescript
调研方向
阅读 .github/workflows/format-check.yml 和 package.json,确认现有的 workflow 模式和单元测试命令。使用 issue 中的 workflow 内容添加 .github/workflows/unit-test.yml,然后验证该 workflow 会在 pull request 上运行 npm run test:unit。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 58
- 派生
- 31
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 36
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cncf/techdocs 的其他 Issue
-
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 天内回复
-
[Analysis request]: Dragonfly可能已有人在做 @iRaindrop 于 3 天前认领。 未关闭author/human CNCF Service Desk Docs analysis ops/service-desk stage/040-covered-by-pr triage/accepted
难度 4/5 3-5 天 新手友好度 25/100
cncf/techdocs#335 · 14 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
tashfeenahmed/freellmapi#2305 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
prime-radiant-inc/evener#8335 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
vercel-labs/ui#1921 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 65/100
microsoft/monaco-editor#5626 ·
维护者通常 1 天内回复