Skip to content

Commit f228064

Browse files
authored
run nightly backtest on all ledgers (#7236)
1 parent 6b50b65 commit f228064

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.github/workflows/backtest.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
1-
name: Replay Ledgers
1+
name: Backtest
22
on:
33
workflow_call:
44
inputs:
5-
coverage:
6-
type: boolean
7-
default: false
85
machine:
96
type: string
107
default: linux_gcc_zen2
118
extras:
129
type: string
1310
default: "handholding"
11+
script:
12+
type: string
13+
default: src/flamenco/runtime/tests/run_backtest_ci.sh
1414
workflow_dispatch:
15+
inputs:
16+
machine:
17+
type: string
18+
default: linux_gcc_zen2
19+
extras:
20+
type: string
21+
default: "handholding"
22+
script:
23+
type: string
24+
default: src/flamenco/runtime/tests/run_backtest_ci.sh
1525
jobs:
1626
backtest-ledger-replay:
1727
timeout-minutes: 15
@@ -35,11 +45,13 @@ jobs:
3545
- uses: ./.github/actions/deps
3646
with:
3747
extras: +dev
48+
3849
- uses: ./.github/actions/hugepages
3950
with:
4051
# DO NOT CHANGE THESE VALUES - increasing the hugetlbfs reservations on the CI runners too high causes other jobs to be OOM-killed
4152
count_gigantic: 398
4253
count_huge: 535
54+
4355
- uses: ./.github/actions/cpusonline
4456

4557
- name: build
@@ -50,12 +62,12 @@ jobs:
5062
run: |
5163
echo OBJDIR=$(make help | grep OBJDIR | awk '{print $4}') >> $GITHUB_ENV
5264
53-
- name: test replay ledgers
65+
- name: run backtest
5466
run: |
5567
sudo $OBJDIR/bin/firedancer-dev configure init keys
5668
sudo prlimit --pid=$$ --nofile=1048576
5769
sudo prlimit --pid=$$ --memlock=unlimited
58-
DUMP_DIR=../dump HUGE_TLBFS_ALLOW_HUGEPAGE_INCREASE=false make run-runtime-backtest
70+
DUMP_DIR=../dump HUGE_TLBFS_ALLOW_HUGEPAGE_INCREASE=false ${{ inputs.script }}
5971
6072
- name: fini
6173
if: always()

.github/workflows/on_nightly.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ jobs:
6464
build_arm: false
6565
clang: none
6666
cid: 6
67+
backtest:
68+
uses: ./.github/workflows/backtest.yml
69+
with:
70+
script: src/flamenco/runtime/tests/run_backtest_all.sh
71+
secrets: inherit

src/flamenco/runtime/tests/run_backtest_ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ src/flamenco/runtime/tests/run_ledger_backtest.sh -l testnet-281546597-v2.3.0 -y
77
src/flamenco/runtime/tests/run_ledger_backtest.sh -l mainnet-324823213-v2.3.0 -y 4 -m 2000000 -e 324823214
88
src/flamenco/runtime/tests/run_ledger_backtest.sh -l mainnet-325467935-v2.3.0 -y 4 -m 2000000 -e 325467936
99
src/flamenco/runtime/tests/run_ledger_backtest.sh -l testnet-283927487-v2.3.0 -y 3 -m 2000000 -e 283927497
10+
src/flamenco/runtime/tests/run_ledger_backtest.sh -l testnet-281688085-v2.3.0 -y 3 -m 2000000 -e 281688086
1011
src/flamenco/runtime/tests/run_ledger_backtest.sh -l testnet-321168308-v2.3.0 -y 3 -m 2000000 -e 321168308
1112
src/flamenco/runtime/tests/run_ledger_backtest.sh -l mainnet-327324660-v2.3.0 -y 4 -m 2000000 -e 327324660
1213
src/flamenco/runtime/tests/run_ledger_backtest.sh -l devnet-370199634-v2.3.0 -y 3 -m 200000 -e 370199634

0 commit comments

Comments
 (0)