File tree Expand file tree Collapse file tree 3 files changed +111
-0
lines changed
Expand file tree Collapse file tree 3 files changed +111
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Main purpose of this is script is to wrap around rosetta-block-race.sh
4+ # So env vars from docker buildkite step are passed down to the script
5+
6+ LEDGER_URL=" https://storage.googleapis.com/o1labs-ci-test-data/ledgers/single-bp-ledger.tar"
7+ LEDGER_ARCHIVE=" ledger.tar"
8+ LEDGER_DIR=" ledger"
9+
10+ echo " Downloading ledger archive from $LEDGER_URL ..."
11+ curl -L -o " $LEDGER_ARCHIVE " " $LEDGER_URL "
12+
13+ mkdir -p " $LEDGER_DIR "
14+
15+ echo " Extracting ledger archive to $LEDGER_DIR ..."
16+ tar -xf " $LEDGER_ARCHIVE " -C " $LEDGER_DIR "
17+
18+ chmod 700 " $LEDGER_DIR "
19+
20+ sudo apt-get update
21+ sudo apt-get install -y python3
22+
23+ ./scripts/rosetta/test-block-race.sh \
24+ --mina-exe /usr/local/bin/mina \
25+ --archive-exe /usr/local/bin/mina-archive \
26+ --rosetta-exe /usr/local/bin/mina-rosetta \
27+ --postgres-uri ${PG_CONN} \
28+ --ledger ${LEDGER_DIR}
Original file line number Diff line number Diff line change 1+ let Artifacts = ../ Constants / Artifacts. dhall
2+
3+ let BuildFlags = ../ Constants / BuildFlags. dhall
4+
5+ let Command = ./ Base. dhall
6+
7+ let Size = ./ Size. dhall
8+
9+ let RunWithPostgres = ./ RunWithPostgres. dhall
10+
11+ let key = " rosetta-block-race-test"
12+
13+ in { step =
14+ \ (dependsOn : List Command.TaggedKey. Type )
15+ -> Command. build
16+ Command. Config:: {
17+ , commands =
18+ [ RunWithPostgres. runInDockerWithPostgresConn
19+ ([] : List Text )
20+ ( Some
21+ ( RunWithPostgres.ScriptOrArchive. OnlineTarGzDump
22+ " https://storage.googleapis.com/mina-archive-dumps/mainnet-archive-dump-2025-11-11_0000.sql.tar.gz"
23+ )
24+ )
25+ ( Artifacts. fullDockerTag
26+ Artifacts. Tag:: {
27+ , artifact = Artifacts.Type. FunctionalTestSuite
28+ , buildFlags = BuildFlags.Type. Instrumented
29+ }
30+ )
31+ ( " ./buildkite/scripts/tests/rosetta-block-race-test.sh "
32+ ++ " && ./buildkite/scripts/upload-partial-coverage-data.sh ${key}"
33+ )
34+ ]
35+ , label = " Rosetta: Rosetta Block Race test"
36+ , key = key
37+ , target = Size. Large
38+ , depends_on = dependsOn
39+ }
40+ }
Original file line number Diff line number Diff line change 1+ let S = ../../ Lib / SelectFiles. dhall
2+
3+ let Pipeline = ../../ Pipeline / Dsl. dhall
4+
5+ let PipelineTag = ../../ Pipeline / Tag. dhall
6+
7+ let JobSpec = ../../ Pipeline / JobSpec. dhall
8+
9+ let Artifacts = ../../ Constants / Artifacts. dhall
10+
11+ let Dockers = ../../ Constants / DockerVersions. dhall
12+
13+ let BuildFlags = ../../ Constants / BuildFlags. dhall
14+
15+ let RosettaBlockRaceTest = ../../ Command / RosettaBlockRaceTest. dhall
16+
17+ let dependsOn =
18+ Dockers. dependsOn
19+ Dockers. DepsSpec:: {
20+ , artifact = Artifacts.Type. FunctionalTestSuite
21+ , buildFlags = BuildFlags.Type. Instrumented
22+ }
23+
24+ in Pipeline. build
25+ Pipeline. Config:: {
26+ , spec = JobSpec :: {
27+ , dirtyWhen =
28+ [ S. strictlyStart (S. contains " src" )
29+ , S. exactly " scripts/rosetta/test-block-race-with-data" " sh"
30+ , S. exactly " scripts/rosetta/test-block-race" " sh"
31+ , S. exactly " buildkite/src/Jobs/Test/RosettaBlockRaceTest" " dhall"
32+ , S. exactly " buildkite/src/Command/RosettaBlockRaceTest" " dhall"
33+ ]
34+ , path = " Test"
35+ , name = " RosettaBlockRaceTest"
36+ , tags =
37+ [ PipelineTag.Type. Long
38+ , PipelineTag.Type. Test
39+ , PipelineTag.Type. Stable
40+ ]
41+ }
42+ , steps = [ RosettaBlockRaceTest. step dependsOn ]
43+ }
You can’t perform that action at this time.
0 commit comments