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

Aberta
#461 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
42/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
github-actions, typescript

Direção de pesquisa

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

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
58
Forks
31
Merge médio
1d 13h
PRs com merge (30d)
36

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de cncf/techdocs

Todas as issues de cncf/techdocs

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.