support retries in [[create]] & [[setup]] steps
@anuragchvn-blip ya está trabajando en esto.
Desde el 20/12/2025.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza por la implementación de contender setup y la gestión de la base de datos para named_txs y rpc_urls. Traza cómo se registran las transacciones de create y setup, y determina después cómo el estado propuesto scenario_setup puede identificar el escenario coincidente más reciente y reanudar únicamente el trabajo no enviado. Se considera terminado cuando una implementación fallida puede volver a ejecutarse sin olvidar las transacciones ya enviadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
If a contract deployment or setup step fails, the whole scenario deployment has to be scrapped; when you run it again and it works, the previously-deployed contracts will be effectively forgotten (though they're still in the DB).
High-level goal: When running contender setup, check the DB to see if all create/setup transactions were sent, and if not, resume the previous deployment and save to DB accordingly.
Technical details:
For [[create]] steps, you can look up the required entries by name in the named_txs table. This makes it simple to find the contract deployments that haven't been executed: just count the number of entries in named_txs for each name in the TestScenario's create steps. The steps that haven't deployed will have one less entry in the DB than the ones that have been deployed.
Achieving the "resume" effect for setup txs will be slightly more involved. [[setup]] steps don't require names, so we'll have to save new info to the DB. A new table may be in order:
scenario_setup
| key | type |
|---|---|
| id | SERIAL INT PRIMARY KEY |
| scenario_name | VARCHAR |
| rpc_id | INT FOREIGN KEY |
| successful_txs | INT |
rpc_idlinks to therpc_urlstable in the DB.
Because a scenario might be deployed on a chain multiple times (for no reason), the client must order SELECT queries by descendingid, then identify the target scenario_setup by finding the first match ofscenario_name&&rpc_id
For each successful setup tx sent, increment successful_txs in the DB by 1. Then, to find where to resume after a failed run, compare successful_txs for this scenario to the number of [[setup]] directives in the scenario.
- Lenguaje dominante
- Rust
- Estrellas
- 144
- Forks
- 58
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 flashbots/contender
-
engine_newPayload filesAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
-
server: generate reportsAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
server: export DB from sessionQuizá libre de nuevo @zeroXbrock la tomó hace 203 días y no hay ningún pull request abierto. Abiertoenhancement help wanted question
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 62/100
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
Todos los issues de flashbots/contender
Issues similares
-
priority middle
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
KATO-Hiro/AtCoderClans#13029 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
RustCrypto/formats#2544 ·
Los mantenedores suelen responder en 1 día
-
bug ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
userFRM/egui-charts#3363 ·
Los mantenedores suelen responder en 1 día
-
ada documentation mobile report
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kindraywind/rustnarok-client#1382 ·
Los mantenedores suelen responder en 1 día