Skip to content

Commit c72ca7e

Browse files
authored
Merge branch 'compatible' into dkijania/convert_berkeley_to_testnet_generic
2 parents 51585a1 + d8a7868 commit c72ca7e

File tree

95 files changed

+3388
-48332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+3388
-48332
lines changed

buildkite/scripts/check-compatibility.sh

Lines changed: 0 additions & 220 deletions
This file was deleted.

buildkite/scripts/release/manager.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,9 @@ function promote_and_verify_docker() {
510510
local __artifact_full_target_version=$__target_version-$__codename${__suffix}
511511

512512
if [[ $__publish_to_docker_io == 1 ]]; then
513-
local __publish_arg="-p"
514-
local __repo=$DOCKER_IO_REPO
513+
local __push_repo=$DOCKER_IO_REPO
515514
else
516-
local __publish_arg=""
517-
local __repo=$GCR_REPO
515+
local __push_repo=$GCR_REPO
518516
fi
519517

520518
echo " 🐋 Publishing $__artifact docker for '$__network' network and '$__codename' codename with '$__target_version' version and '$__arch' "
@@ -527,7 +525,8 @@ function promote_and_verify_docker() {
527525
-v $__artifact_full_source_version \
528526
-t $__artifact_full_target_version \
529527
-a $__arch \
530-
$__publish_arg
528+
--pull-registry "$GCR_REPO" \
529+
--push-registry "$__push_repo" \
531530

532531
echo ""
533532

@@ -1013,6 +1012,7 @@ function promote(){
10131012
local __debian_repo=$DEBIAN_REPO
10141013
local __debian_sign_key=""
10151014
local __arch="$DEFAULT_ARCHITECTURES"
1015+
local __profile=$DEFAULT_PROFILE
10161016

10171017

10181018
while [ ${#} -gt 0 ]; do
@@ -1085,6 +1085,10 @@ function promote(){
10851085
__arch=${2:?$error_message}
10861086
shift 2;
10871087
;;
1088+
--profile )
1089+
__profile=${2:?$error_message}
1090+
shift 2;
1091+
;;
10881092
* )
10891093
echo -e "${RED} !! Unknown option: $1${CLEAR}\n";
10901094
echo "";

buildkite/scripts/run-test-executive-local.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ fi
2525
cleanup
2626

2727
TEST_NAME="$1"
28+
DOCKER_REPO="$2"
29+
MINA_DOCKER_NAME="mina-daemon"
30+
MINA_ARCHIVE_DOCKER_NAME="mina-archive"
2831

29-
MINA_IMAGE="gcr.io/o1labs-192920/mina-daemon:$MINA_DOCKER_TAG-testnet-generic"
30-
ARCHIVE_IMAGE="gcr.io/o1labs-192920/mina-archive:$MINA_DOCKER_TAG-testnet-generic"
32+
33+
MINA_IMAGE="$DOCKER_REPO/$MINA_DOCKER_NAME:$MINA_DOCKER_TAG-testnet-generic"
34+
ARCHIVE_IMAGE="$DOCKER_REPO/$MINA_ARCHIVE_DOCKER_NAME:$MINA_DOCKER_TAG-testnet-generic"
3135

3236
if [[ "${TEST_NAME:0:15}" == "block-prod-prio" ]] && [[ "$RUN_OPT_TESTS" == "" ]]; then
3337
echo "Skipping $TEST_NAME"

buildkite/src/Command/DockerImage.dhall

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ let DockerLogin = ../Command/DockerLogin/Type.dhall
2020

2121
let DebianRepo = ../Constants/DebianRepo.dhall
2222

23+
let DockerRepo = ../Constants/DockerRepo.dhall
24+
2325
let DebianVersions = ../Constants/DebianVersions.dhall
2426

2527
let Network = ../Constants/Network.dhall
@@ -51,6 +53,7 @@ let ReleaseSpec =
5153
, build_flags : BuildFlags.Type
5254
, step_key_suffix : Text
5355
, docker_publish : DockerPublish.Type
56+
, docker_repo : DockerRepo.Type
5457
, verify : Bool
5558
, if_ : Optional B/If
5659
}
@@ -72,6 +75,7 @@ let ReleaseSpec =
7275
, docker_publish = DockerPublish.Type.Essential
7376
, no_cache = False
7477
, no_debian = False
78+
, docker_repo = DockerRepo.Type.Internal
7579
, step_key_suffix = "-docker-image"
7680
, verify = False
7781
, deb_suffix = None Text
@@ -166,6 +170,7 @@ let generateStep =
166170
++ debSuffix
167171
++ " --repo ${spec.repo}"
168172
++ " --platform ${Arch.platform spec.arch}"
173+
++ " --docker-registry ${DockerRepo.show spec.docker_repo}"
169174

170175
let releaseDockerCmd =
171176
if DockerPublish.shouldPublish
@@ -184,6 +189,8 @@ let generateStep =
184189
++ " --deb-build-flags ${BuildFlags.lowerName
185190
spec.build_flags}"
186191
++ " --platform ${Arch.platform spec.arch}"
192+
++ " --docker-registry ${DockerRepo.show
193+
spec.docker_repo}"
187194

188195
else " echo In order to ensure storage optimization, skipping publishing docker as this is not essential one or publishing is disabled . Docker publish setting is set to ${DockerPublish.show
189196
spec.docker_publish}."

buildkite/src/Command/Packages/Publish.dhall

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ let DebianVersions = ../../Constants/DebianVersions.dhall
2626

2727
let DebianRepo = ../../Constants/DebianRepo.dhall
2828

29+
let DockerRepo = ../../Constants/DockerRepo.dhall
30+
2931
let ContainerImages = ../../Constants/ContainerImages.dhall
3032

3133
let Command = ../Base.dhall
@@ -72,6 +74,7 @@ let Spec =
7274
, depends_on : List Command.TaggedKey.Type
7375
, branch : Text
7476
, architectures : List Architecture.Type
77+
, docker_repo : DockerRepo.Type
7578
, if_ : Optional Text
7679
}
7780
, default =
@@ -89,6 +92,7 @@ let Spec =
8992
, verify = True
9093
, branch = ""
9194
, architectures = [ Architecture.Type.Amd64, Architecture.Type.Arm64 ]
95+
, docker_repo = DockerRepo.Type.Internal
9296
, if_ = None Text
9397
}
9498
}
@@ -251,6 +255,8 @@ let publish
251255
++ "--target-version ${r.value} "
252256
++ "--codenames ${codenames} "
253257
++ "--only-dockers "
258+
++ "--docker-repo ${DockerRepo.show
259+
spec.docker_repo} "
254260
++ "--force-upload-debians "
255261
)
256262
]

buildkite/src/Command/Rosetta/Connectivity.dhall

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ let Dockers = ../../Constants/DockerVersions.dhall
2424

2525
let Profiles = ../../Constants/Profiles.dhall
2626

27+
let DockerRepo = ../../Constants/DockerRepo.dhall
28+
2729
let B/SoftFail = B.definitions/commandStep/properties/soft_fail/Type
2830

2931
let B/If = B.definitions/commandStep/properties/if/Type
@@ -37,6 +39,7 @@ let Spec =
3739
, timeout : Natural
3840
, profile : Profiles.Type
3941
, scope : List PipelineScope.Type
42+
, repo : DockerRepo.Type
4043
, if_ : B/If
4144
}
4245
, default =
@@ -47,6 +50,7 @@ let Spec =
4750
, timeout = 1000
4851
, profile = Profiles.Type.Devnet
4952
, scope = PipelineScope.Full
53+
, repo = DockerRepo.Type.Internal
5054
, if_ =
5155
"build.pull_request.base_branch != \"develop\" && build.branch != \"develop\""
5256
}
@@ -64,7 +68,8 @@ let command
6468
, "source ./buildkite/scripts/export-git-env-vars.sh"
6569
, "scripts/tests/rosetta-connectivity.sh --network ${Network.lowerName
6670
spec.network} --tag \\\${MINA_DOCKER_TAG} --timeout ${Natural/show
67-
spec.timeout} --run-compatibility-test develop --run-load-test "
71+
spec.timeout} --repo ${DockerRepo.show
72+
spec.repo} --run-compatibility-test develop --run-load-test "
6873
]
6974
]
7075
, label =

0 commit comments

Comments
 (0)