[quality] npm run test:unit never runs in CI — unit tests have no CI signal
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #411 by @hivecommons-hive — merged
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 60/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github-actions, node.js, typescript
Research direction
Read .github/workflows/format-check.yml and package.json to confirm the existing workflow pattern and unit test command. Add .github/workflows/unit-test.yml using the workflow content in the issue, then verify the workflow runs npm run test:unit on pull requests.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 58
- Forks
- 31
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 36
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cncf/techdocs
-
agent/quality stage/045-needs-decision testing
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
cncf/techdocs#461 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 1/100
cncf/techdocs#388 · 1 comment ·
Maintainers usually reply within 1 day
-
CNCF Service Desk Docs analysis stage/010-actionable Website Update
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
[CNCFSD-3284] KubeVirt Tech Docs assistance requestMay be free again @Abhishek9639 claimed this 240 days ago, and no pull request is open. OpenCNCF Service Desk Docs analysis ops/service-desk stage/010-actionable
Difficulty 4/5 3-5 days Newbie friendliness 25/100
cncf/techdocs#343 · 1 comment ·
Maintainers usually reply within 1 day
-
[Analysis request]: DragonflyPossibly taken @iRaindrop claimed this 3 days ago. Openauthor/human CNCF Service Desk Docs analysis ops/service-desk stage/040-covered-by-pr triage/accepted
Difficulty 4/5 3-5 days Newbie friendliness 25/100
cncf/techdocs#335 · 14 comments · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#8335 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel-labs/ui#1921 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
microsoft/monaco-editor#5626 ·
Maintainers usually reply within 1 day