[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 於 4 天前認領。 未關閉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
-
agent/guide documentation help wanted stage/010-actionable
難度 1/5 1 小時以內 新手友好度 82/100
kubestellar/console-marketplace#1101 ·
維護者通常 1 天內回覆
-
Java Edition Tests
難度 2/5 1-3 小時 新手友好度 72/100
JSPrismarine/JSPrismarine#4178 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
totec448-spec/chat-on-steroids#2394 ·
維護者通常 1 天內回覆
-
github_actions
難度 2/5 1-3 小時 新手友好度 70/100
StellarHyperion/stellarhyperion-backend#499 ·
維護者通常 1 天內回覆