tsx 4.23.15 drops function coverage below the gate (esbuild-injected helper)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- build-system, testing
Direzione di ricerca
Start with the quality job and the coverage configuration, then run pnpm test:coverage with tsx 4.23.15 and inspect the lcov entries for anonymous_0 in the four named files. Check tsx and esbuild transform options or upstream fixes, and compare any coverage exclusion or alternate transform against real function coverage. Done means the latest tsx passes pnpm test:coverage with the gate unchanged and the pin and Dependabot ignore entry removed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Bumping tsx from 4.23.7 → 4.23.15 (Dependabot group PR #128) fails the quality job's coverage gate even though all 50 tests pass:
# Error: 85.19% function coverage does not meet threshold of 95%.
# api-utils.ts | 97.44 | 86.67 | 85.71 | 25
# booking-dates.ts | 100.00 | 94.12 | 90.00 |
# email-tokens.ts | 100.00 | 92.86 | 80.00 |
# slug.ts | 100.00 | 90.00 | 80.00 |
main (tsx 4.23.7) reports 100% function coverage on the same tests.
Diagnosis
- Reproduced locally on the PR head; reverting only
tsxto 4.23.7 restores 100%. - tsx 4.23.15 ships esbuild 0.28. An lcov report shows exactly one uncovered function per file, named
anonymous_0— a transform-injected helper, not application code. All real functions remain covered. - So this is instrumentation noise, not a coverage regression. Lowering the threshold is not an option (ADR-0011).
Interim
tsx is held at 4.23.7 in #128 and Dependabot is told to ignore newer tsx versions until this is resolved.
To resolve
Pick one, then remove the pin + the ignore entry in .github/dependabot.yml:
- Find a tsx/esbuild option or upstream fix that stops the helper being counted, or
- Exclude the injected helper from coverage without excluding real code, or
- Run coverage on a transform that doesn't inject it.
Acceptance: pnpm test:coverage passes on the latest tsx with the gate unchanged.
- Lingua principale
- TypeScript
- Stelle
- 3
- Fork
- 6
- Merge medio
- 4h 36m
- PR unite (30g)
- 56
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di grasshopper-protocol/grsshppr
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
grasshopper-protocol/grsshppr#213 ·
I maintainer di solito rispondono entro 1 giorno
-
bug UX
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
grasshopper-protocol/grsshppr#209 ·
I maintainer di solito rispondono entro 1 giorno
-
Add tests for utils.ts cn() functionForse già presa @yogesh201sits l’ha presa 9 giorni fa. Apertagood first issue testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
grasshopper-protocol/grsshppr#81 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
code quality documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
grasshopper-protocol/grsshppr#78 ·
I maintainer di solito rispondono entro 1 giorno
-
a11y documentation good first issue UI
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
grasshopper-protocol/grsshppr#77 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di grasshopper-protocol/grsshppr
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
CopilotKit/openmuse#215 ·
I maintainer di solito rispondono entro 3 giorni
-
b:minor bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
software-mansion/argent#1698 ·
I maintainer di solito rispondono entro 1 giorno
-
e2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno