[WIP] offline-replay: resolve OBJDIR from the built binary - #11291
[WIP] offline-replay: resolve OBJDIR from the built binary#11291kbhargava-jump wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Generic backtests can silently select an arbitrary build flavor when multiple binaries exist.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates offline replay scripts to infer OBJDIR from an existing firedancer-dev binary.
Changes:
- Searches
build/forfiredancer-dev. - Adds executable validation and clearer failure messages.
File summaries
| File | Description |
|---|---|
src/flamenco/runtime/tests/run_ledger_backtest.sh |
Infers and validates OBJDIR. |
contrib/offline-replay/run_offline_replay_backtest.sh |
Resolves the post-build binary location. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Performance Measurements ⏳
|
ripatel-fd
left a comment
There was a problem hiding this comment.
This is nondeterministic, should resolve it from the build config, not grab a random firedancer-dev bin
dbc2c90 to
d51a031
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The checks break download-only mode and can overlook a failed parallel build.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Balanced
Performance Measurements ⏳
|
d51a031 to
aa7b678
Compare
aa7b678 to
450ae83
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The new local failure cleanup can either silently fail or remove unrelated host configuration and cached genesis data.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Balanced
| if [ -z "$CI" ]; then | ||
| $OBJDIR/bin/firedancer-dev configure fini all --config ${DUMP_DIR}/${LEDGER}_backtest.toml &> /dev/null || true | ||
| fi |
Performance Measurements ⏳
|
There was a problem hiding this comment.
🔵 Needs a closer look
The new general backtest teardown deletes the cached ledger genesis file, breaking subsequent runs.
Review details
Suppressed comments (1)
src/flamenco/runtime/tests/run_ledger_backtest.sh:331
backtestonly initializeshugetlbfs,snapshots, andkeys, butfini allalso runs the genesis stage, whosefiniunlinks the configured$DUMP/$LEDGER/genesis.bin. After a failed local run, the cached ledger directory remains, so the next invocation skips the download and then fails with its genesis missing. Restrict teardown to the stages initialized by backtest; the privileged hugetlbfs teardown also needssudo.
$OBJDIR/bin/firedancer-dev configure fini all --config ${DUMP_DIR}/${LEDGER}_backtest.toml &> /dev/null || true
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
450ae83 to
04a4e35
Compare
Performance Measurements ⏳
|
There was a problem hiding this comment.
🟡 Changes recommended
The local cleanup silently fails without the privileges required by configure fini all.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Balanced
| fi | ||
|
|
||
| if [ -z "$CI" ] && grep -q "Unable to set the thread affinity" "$LOG"; then | ||
| $OBJDIR/bin/firedancer-dev configure fini all --config ${DUMP_DIR}/${LEDGER}_backtest.toml &> /dev/null || true |
No description provided.