From 15fd7ca55bd471fa0894735af07ddaf66a541f61 Mon Sep 17 00:00:00 2001 From: dkijania Date: Thu, 10 Oct 2024 19:29:07 +0200 Subject: [PATCH] Build rosetta mainnet/devnet docker --- buildkite/src/Command/MinaArtifact.dhall | 37 +++++++++++-------- .../Jobs/Test/RosettaIntegrationTests.dhall | 2 +- .../Test/RosettaIntegrationTestsLong.dhall | 2 +- scripts/debian/build.sh | 3 ++ 4 files changed, 27 insertions(+), 17 deletions(-) diff --git a/buildkite/src/Command/MinaArtifact.dhall b/buildkite/src/Command/MinaArtifact.dhall index 28793fb3d22..5b91eb3fec5 100644 --- a/buildkite/src/Command/MinaArtifact.dhall +++ b/buildkite/src/Command/MinaArtifact.dhall @@ -209,21 +209,28 @@ let docker_step } ] , Rosetta = - [ DockerImage.ReleaseSpec::{ - , deps = deps - , service = "mina-rosetta" - , network = "berkeley" - , build_flags = spec.buildFlags - , deb_repo = DebianRepo.Type.Local - , deb_profile = spec.profile - , deb_codename = - "${DebianVersions.lowerName spec.debVersion}" - , step_key = - "rosetta-${DebianVersions.lowerName - spec.debVersion}${BuildFlags.toLabelSegment - spec.buildFlags}-docker-image" - } - ] + Prelude.List.map + Network.Type + DockerImage.ReleaseSpec.Type + ( \(n : Network.Type) + -> DockerImage.ReleaseSpec::{ + , deps = deps + , service = + Artifacts.dockerName Artifacts.Type.Rosetta + , network = Network.lowerName n + , deb_codename = + "${DebianVersions.lowerName spec.debVersion}" + , deb_profile = spec.profile + , build_flags = spec.buildFlags + , deb_repo = DebianRepo.Type.Local + , step_key = + "rosetta-${Network.lowerName + n}-${DebianVersions.lowerName + spec.debVersion}${BuildFlags.toLabelSegment + spec.buildFlags}-docker-image" + } + ) + spec.networks , ZkappTestTransaction = [ DockerImage.ReleaseSpec::{ , deps = deps diff --git a/buildkite/src/Jobs/Test/RosettaIntegrationTests.dhall b/buildkite/src/Jobs/Test/RosettaIntegrationTests.dhall index 4d7ae4b9c3b..21397b34be7 100644 --- a/buildkite/src/Jobs/Test/RosettaIntegrationTests.dhall +++ b/buildkite/src/Jobs/Test/RosettaIntegrationTests.dhall @@ -71,7 +71,7 @@ in Pipeline.build , depends_on = Dockers.dependsOn Dockers.Type.Bullseye - (None Network.Type) + (Some Network.Type.Berkeley) Profiles.Type.Standard Artifacts.Type.Rosetta } diff --git a/buildkite/src/Jobs/Test/RosettaIntegrationTestsLong.dhall b/buildkite/src/Jobs/Test/RosettaIntegrationTestsLong.dhall index 10ff09fea4e..9fb8d631225 100644 --- a/buildkite/src/Jobs/Test/RosettaIntegrationTestsLong.dhall +++ b/buildkite/src/Jobs/Test/RosettaIntegrationTestsLong.dhall @@ -66,7 +66,7 @@ in Pipeline.build , depends_on = Dockers.dependsOn Dockers.Type.Bullseye - (None Network.Type) + (Some Network.Type.Berkeley) Profiles.Type.Standard Artifacts.Type.Rosetta } diff --git a/scripts/debian/build.sh b/scripts/debian/build.sh index 1df887ce9d9..1c1fff73126 100755 --- a/scripts/debian/build.sh +++ b/scripts/debian/build.sh @@ -28,6 +28,9 @@ if [ $# -eq 0 ] build_daemon_berkeley_deb build_daemon_mainnet_deb build_daemon_devnet_deb + build_rosetta_berkeley_deb + build_rosetta_mainnet_deb + build_rosetta_devnet_deb build_test_executive_deb build_functional_test_suite_deb build_zkapp_test_transaction_deb