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

Aperta
#461 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
42/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, typescript

Direzione di ricerca

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

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
58
Fork
31
Merge medio
1g 13h
PR unite (30g)
36

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cncf/techdocs

Tutte le issue di cncf/techdocs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.