[quality] Document testing-scope policy: Docusaurus website build is deploy-preview-only, not the published site

Open
#461 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, typescript

Research direction

Start with CONTRIBUTING.md and the referenced Docusaurus files, e2e/linkRewrite.test.mjs, and npm run test:coverage to understand what the existing checks cover. The issue asks maintainers to decide which tests are in scope, so a contributor cannot determine the policy wording alone; done means an agreed scope note is added to CONTRIBUTING.md or a short ADR under docs/.

Written by the indexing model from the issue text.

Description

agent/quality stage/045-needs-decision testing

Finding

On PR #460, @nate-double-u closed it not_planned with:

this repo only has a website as a part of the deploy preview process. This repo is published on the contribute.cncf.io site, which has its own static site generator and doesn't use this one. This repo doesn't need tests updates for it's website.

This is a significant, currently undocumented scope statement. This repo's Docusaurus build (docusaurus.config.ts, lib/getBuildContext.ts, lib/getCurrentBranch.ts, lib/getGitHubRepoUrl.ts, lib/remarkRewriteLinks/*, e2e/linkRewrite.test.mjs, and the npm run test:coverage c8 gate that enforces 100% coverage on all of it) exists only to power Netlify deploy previews for this repo's own GitHub Pages/Docusaurus site, not the site this content is actually published to (contribute.cncf.io, built by a separate static site generator).

This retroactively explains several prior PRs/issues that were closed not_planned for the same underlying reason without it being stated as a general policy: the e2e-coverage-gate proposals in #448, #450, and #457, and now the coverage-exclude-guard in #460. Without a written policy, each new quality-agent (or contributor) PR touching this area has to rediscover the same answer one closure at a time.

Recommendation

Add a short, explicit testing-scope note - e.g. in CONTRIBUTING.md or a short ADR under docs/ - stating which parts of this repo's test suite are considered in-scope maintenance burden vs. which (the Docusaurus/e2e/deploy-preview build) are maintained on a best-effort basis only, not gated on 100% coverage expansion. This lets future contributors and automation (including this hive's quality agent) stop proposing further coverage work in the out-of-scope area.

This is a scope/governance decision only a maintainer can make (what counts as 'needs test coverage' for this repo going forward), so it's filed as needs-decision rather than actioned directly. No PR is attached: the actual wording of the policy is the maintainer's call.

Priority

  • Impact: medium
  • Effort: low

Risk: governance


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

Dominant language
TypeScript
Stars
58
Forks
31
Avg merge
1d 13h
Merged PRs (30d)
36

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cncf/techdocs

All issues in cncf/techdocs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.