remote-worker: TestCapRefusalsAreBoundedPerVM flakes under -race (samples capRefusalsInFlight before the accept loop registers)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Lee remote-worker/internal/egress/proxy_test.go, en especial TestCapRefusalsAreBoundedPerVM alrededor de las líneas 521–530 y el patrón de sondeo en TestCapRefusalPastTheBoundClosesWithoutDraining alrededor de la línea 552. Ejecuta la prueba específica con -race para reproducir el fallo de sincronización. Se considerará terminado cuando la prueba espere a que se registre un rechazo antes de medir el máximo y pase de forma fiable con -race.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
TestCapRefusalsAreBoundedPerVM (remote-worker/internal/egress/proxy_test.go) flakes under -race: observed 1 in 3 at moca@1b76333 while re-reviewing #647.
Failure:
proxy_test.go:530: no refusal was ever in flight: the test did not exercise the refusal path
Cause
The test offers CONNECTs and samples h.capRefusalsInFlight("vm-1") immediately after each write (proxy_test.go:521), without waiting for the proxy's accept loop to register the refusal. Under -race scheduling every sample can be taken before any refusal is registered, so peak stays 0 and the test fails its own vacuity check (peak == 0) rather than the bound it means to pin.
Context
Found while re-reviewing #647: proto went red twice on that head before passing. The other red was the guestagent EgressForwarder.logf data race, which open PR #645 fixes. This test is untouched by #647 and is a separate defect.
Fix sketch
After offering a refusal, wait for it to register before sampling for the peak — poll capRefusalsInFlight (as TestCapRefusalPastTheBoundClosesWithoutDraining already does at proxy_test.go:552) or otherwise synchronize with the accept loop — instead of sampling opportunistically between writes.
- Lenguaje dominante
- TypeScript
- Estrellas
- 5
- Forks
- 11
- Merge medio
- 8 h 32 min
- PR fusionados (30 d)
- 166
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 rossoctl/moca
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rossoctl/moca#421 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
deploy/vm: research-smoke.sh leaves its minted subject's empty record in the credential storeAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
Todos los issues de rossoctl/moca
Issues similares
-
[Bug]: Managed Tailscale Serve recovery misses "must be root" denial and skips sudo fallbackAbiertoclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster maturity:stable no-stale P1
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
openclaw/openclaw#190772 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
flisk-sh/run-my-agents#61 ·
-
Dificultad 2/5 3-5 días Aptitud para principiantes 62/100
career-ops-hq/career-ops#6399 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
BoardGamesEmpire/board-games-empire-backend#1027 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
johnfrog76/connected-deck#21 ·