Mint-health transitions are 5-min-poll driven with escalating backoff — repeated mint outages make recovery exceed any test budget
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
- #777 de @Amperstrand — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- backend, networking
Línea de trabajo
Start with the failing tests/api/test_merchant_provider.py and trace how mint probe and swap results reach wallet state and discovery health; the issue does not identify the relevant implementation files. Reproduce a mint block/unblock and restart in the local virtual lab, checking whether probe success refreshes wallet state and resets per-mint backoff. Done means discovery transitions promptly between degraded and full and repeated recovery cycles complete within the test window.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Migrated from Amperstrand/tollgate-module-basic-go#87 as part of the fork retirement — OpenTollGate/tollgate-module-basic-go is the single source of truth; the fork issue carries the original discussion and any lab evidence. Retirement plan: see the tracking issue linked in the migration comment there.]
Evidence (local virtual lab, 2026-09-04, cdk-mintd 0.18.0 fakewallet)
Live probes during a failing tests/api/test_merchant_provider.py run:
-
Wallet state vs prober disagree. After the mint work-dir is wiped and restarted (same mnemonic → same keysets), discovery served
kind 21023 no-reachable-mintswhile:- proactive prober:
mint probe: url=http://10.99.99.2:8383/v1/info status=200 ok=true(twice, 5 min apart) curl http://10.99.99.2:8383/v1/infofrom the router: 200tollgate statusreportedwallet_ok=truewhile discovery said degraded
Only/etc/init.d/tollgate-wrt restartflipped discovery tokind 10021(~10s). The wallet's cached mint state (wallet.db) is not re-validated on prober success.
- proactive prober:
-
Health transitions ride the 300s proactive poll.
iptables-blocking all mints does not flip discovery to degraded until the next probe cycle (up to 5 min); same for unblock→full. Test budgets of 180s expired before the first probe fired. (Worked around test-side: HEALTH_POLL_TIMEOUT 420, module timeout 900 — prta fix/local-lab-green 90bf9c6.) -
Recovery after repeated block/unblock cycles exceeds any test budget. In one file run: cycle 1 recovered well within 420s; cycles 2–4 did not recover within 420s (
Service did not recover, swap-test stop reasontest window ended, recovered=False). Escalating backoff on the mint URL after repeated failures is the likely mechanism; it does not reset on unblock.
Impact
- Degraded/recovery tests are timing-flaky against any mint that restarts (mints DO restart — new deployments, CDK upgrades).
- Discovery can serve
no-reachable-mintswhile the mint is healthy, for up to the next probe cycle + wallet re-validation delay (currently: forever, absent a backend restart).
Suggested direction
- Event-driven health transition: flip degraded/full immediately on swap/probe failure+recovery (probe success already detected per-cycle — propagate it to the wallet/discovery state).
- Reset per-mint backoff when a probe or swap succeeds.
- Re-validate cached wallet mint state when the prober reports ok=true but the wallet considers the mint down.
- Lenguaje dominante
- Go
- Estrellas
- 12
- Forks
- 14
- Merge medio
- 3 d 20 h
- PR fusionados (30 d)
- 261
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 OpenTollGate/tollgate-module-basic-go
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
OpenTollGate/tollgate-module-basic-go#1159 ·
Los mantenedores suelen responder en 1 día
-
Degraded-mode hygiene follow-ups: dead walletNotInitializedError() + main.go's startup log still over-promises mint recoveryPosiblemente ocupada @Amperstrand la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
OpenTollGate/tollgate-module-basic-go#1135 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
setup_uhttpd_portal hardcodes the GUEST portal docroot to the TollGate path — the brand token cannot select a re-brand guest portalPosiblemente ocupada @Amperstrand la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
OpenTollGate/tollgate-module-basic-go#1122 ·
Los mantenedores suelen responder en 1 día
-
changelog: dependency-security sweep missing from [Unreleased] [Amperstrand fork #105 review debt]Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
OpenTollGate/tollgate-module-basic-go#1055 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OpenTollGate/tollgate-module-basic-go#1027 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de OpenTollGate/tollgate-module-basic-go
Issues similares
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cli/cli#14946 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
valkey-io/valkey-operator#610 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
WriterSetTimes: the UTIME_NOW check fails when the kernel uses its coarse clockPosiblemente ocupada @JakeChampion la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
JakeChampion/lang#14224 ·
Los mantenedores suelen responder en 1 día
-
docs(reference): pi stream-filter bullet says tool_execution_update passes through unchangedAbiertoagent-butler-finding bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
jordansmall/spindrift#6391 ·
Los mantenedores suelen responder en 1 día