support retries in [[create]] & [[setup]] steps
@anuragchvn-blip ci sta già lavorando.
Dal 20/12/2025.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dall’implementazione di contender setup e dalla gestione del database per named_txs e rpc_urls. Traccia il modo in cui vengono registrate le transazioni di create e setup, quindi determina come lo stato proposto scenario_setup possa identificare lo scenario corrispondente più recente e riprendere solo il lavoro non inviato. Il lavoro è completato quando un deployment non riuscito può essere eseguito nuovamente senza dimenticare le transazioni già inviate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 144
- Fork
- 58
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- 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 flashbots/contender
-
engine_newPayload filesApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
server: generate reportsApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
server: export DB from sessionForse di nuovo libera @zeroXbrock l’ha presa 203 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement help wanted question
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 62/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
Tutte le issue di flashbots/contender
Issue simili
-
priority middle
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
KATO-Hiro/AtCoderClans#13029 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RustCrypto/formats#2544 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
userFRM/egui-charts#3363 ·
I maintainer di solito rispondono entro 1 giorno
-
ada documentation mobile report
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kindraywind/rustnarok-client#1382 ·
I maintainer di solito rispondono entro 1 giorno