Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

docs: drift reporter double-counts CI retries

Aperta
#2,911 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@marcel-rbro ci sta già lavorando.

Dal 24/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

documentation t-docs

Part of #2671.

Problem

IssuesReporter.onTestEnd (docs-tests/reporters/issues-reporter.ts:59) pushes every test attempt into collected. With retries: 1 set for CI in playwright.config.ts, a failing assertion is recorded twice — so summary.failed, summary.total and the issues[] array all double, and every row appears twice in the auto-filed drift issue.

Evidence

#2908 was filed as "28 failing assertions (50/90 passed, 12 skipped)" and its table listed all 14 assertions twice.

The real numbers were 14 failures out of 76. Running the same suite locally with retries: 0 produced exactly 14 failures / 24 passed on the integrity project.

The total inflates the same way: 76 real results + 14 retried failures = the 90 reported.

Fix

Keep only the final attempt per TestCase before computing the summary and building issues[] — e.g. key collected by test ID and overwrite, so a retry replaces rather than appends.

Impact

Cosmetic but misleading. Drift issues read as roughly twice as severe as they are, and duplicate rows make triage slower. It also means a flaky-then-passing test could still be counted, since only failed attempts get collected while the eventual pass is recorded separately.

Lingua principale
JavaScript
Stelle
82
Fork
240
Merge medio
4g 3h
PR unite (30g)
40

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 apify/apify-docs

Tutte le issue di apify/apify-docs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.