check:affected: a changed test file must run the test-file size ratchet
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Read the selection rules in scripts/check-affected/model.ts and the existing ratchet test, scripts/tests/test-file-size-ratchet.test.ts. Find where the measured file patterns and roots are defined, then check how other text-read gates declare selection reasons. Add a model.test.ts case and run it: a changed measured test file should select the ratchet with its path in the reason, while a non-test change should not.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Purpose
pnpm check:affected --run passed on #3732 at 63c6a66, but CI Coverage failed scripts/__tests__/test-file-size-ratchet.test.ts: packages/platform-apple/src/lifecycle.test.ts grew from 970 to 1,006 lines, past the 1,000-line tripwire. The local gate selects tests through Vitest's module graph (vitest related). The ratchet doesn't import the files it measures; it walks the tree and reads line counts. So no change to a test file ever selects it, and the failure reaches CI one review round late.
Required behavior
- When a change adds or modifies a file the ratchet measures (
*.test.ts,*.test.tsxor*.test.mjsundersrc/,packages/,test/orscripts/, excludingnode_modules,dist,dist-typesand.tmp), the affected plan selects the ratchet test, with a reason that names the triggering file. - Express it as a selection rule in
scripts/check-affected/model.ts, the same way other text-read gates are declared there. Don't special-case it inrun.ts. - Keep a single definition of which files the ratchet measures. The selection rule and the ratchet test must read the same pattern and roots, so they can't drift. Put the shared definition where both can import it.
- A change that touches no test file doesn't select the ratchet.
Completion
- A
model.test.tscase: a changed test file selects the ratchet check and gives the triggering reason, and a non-test change doesn't. It fails before the change and passes after. - Planting a 1,001-line new test file in a scratch checkout makes
pnpm check:affected --runfail locally on the ratchet. pnpm check:affected --run --head <sha>passes on the final commit.
- Lenguaje dominante
- TypeScript
- Estrellas
- 5k
- Forks
- 334
- Merge medio
- 12 h 2 min
- PR fusionados (30 d)
- 706
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstack/agent-device
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
callstack/agent-device#3792 ·
Los mantenedores suelen responder en 1 día
-
macOS helper audio-probe always reports -90 dBFS: AVAudioPCMBuffer frameLength set after the copyAbiertobug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
callstack/agent-device#3771 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
callstack/agent-device#1869 ·
Los mantenedores suelen responder en 1 día
-
refactor(host): explicit host for configuration reads and one entered runtime storePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoready-for-agent refactor
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
callstack/agent-device#3794 ·
Los mantenedores suelen responder en 1 día
-
Daemon startup: wait for a live daemon instead of a fixed 15 s deadline on slow or overloaded hostsPosiblemente ocupada @thymikee la tomó hace 1 día. Abiertoneeds-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
callstack/agent-device#3782 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstack/agent-device
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
components-web-app/docs#260 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
521xueweihan/HelloGitHub#4025 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
ctrf-io/playwright-ctrf-json-reporter#117 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
voidzero-dev/void#478 ·
Los mantenedores suelen responder en 1 día