[quality] npm run test:unit never runs in CI — unit tests have no CI signal
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #411 @hivecommons-hive による — マージ済み
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 60/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, node.js, typescript
調査の方向性
.github/workflows/format-check.yml と package.json を読み、既存のワークフローのパターンとユニットテストのコマンドを確認します。issue に記載されたワークフローの内容を使って .github/workflows/unit-test.yml を追加し、そのワークフローがプルリクエストで 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時間
- マージ済み PR(30日)
- 36
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cncf/techdocs のほかの issue
-
agent/quality stage/045-needs-decision testing
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
cncf/techdocs#461 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
cncf/techdocs#388 · コメント 1 件 ·
メンテナーはふだん 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 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンCNCF Service Desk Docs analysis ops/service-desk stage/010-actionable
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
cncf/techdocs#343 · コメント 1 件 ·
メンテナーはふだん 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 日以内に返信