support retries in [[create]] & [[setup]] steps
@anuragchvn-blip đang làm issue này rồi.
Từ ngày 20/12/2025.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu từ phần triển khai contender setup và việc xử lý cơ sở dữ liệu cho named_txs và rpc_urls. Theo dõi cách các giao dịch create và setup được ghi lại, sau đó xác định cách state scenario_setup được đề xuất có thể nhận diện scenario khớp mới nhất và chỉ tiếp tục phần công việc chưa được gửi. Hoàn thành nghĩa là một deployment thất bại có thể được chạy lại mà không quên các giao dịch đã gửi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 144
- Fork
- 58
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flashbots/contender
-
engine_newPayload filesĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
-
server: generate reportsĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
server: export DB from sessionCó thể làm lại được @zeroXbrock đã nhận 203 ngày trước và không có pull request nào đang mở. Đang mởenhancement help wanted question
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Tất cả issue của flashbots/contender
Issue tương tự
-
priority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
KATO-Hiro/AtCoderClans#13029 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
RustCrypto/formats#2544 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
userFRM/egui-charts#3363 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ada documentation mobile report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kindraywind/rustnarok-client#1382 ·
Maintainer thường phản hồi trong vòng 1 ngày