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

Ouverte
#461 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
42/100
Type d'issue
Documentation
Clarté
Plutôt claire
Activité
Active
Stack technique
github-actions, typescript

Piste de recherche

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/.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

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

Langage dominant
TypeScript
Étoiles
58
Forks
31
Merge moyen
1 j 13 h
PR mergées (30 j)
36

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cncf/techdocs

Toutes les issues de cncf/techdocs

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.