Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace berkeley-lightnet package with devnet-lightnet #16313

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildkite/scripts/debian/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else
debs=(${DEBS//,/ })
for i in "${debs[@]}"; do
case $i in
mina-berkeley|mina-devnet|mina-mainnet|mina-berkeley-lightnet)
mina-devnet|mina-mainnet|mina-devnet-lightnet)
# Downaload mina-logproc too
source ./buildkite/scripts/download-artifact-from-cache.sh "mina-logproc*" $MINA_DEB_CODENAME/_build "" $LOCAL_DEB_FOLDER
;;
Expand Down
2 changes: 1 addition & 1 deletion buildkite/scripts/single-node-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git config --global --add safe.directory /workdir

source buildkite/scripts/export-git-env-vars.sh

source buildkite/scripts/debian/install.sh "mina-test-suite,mina-berkeley-lightnet" 1
source buildkite/scripts/debian/install.sh "mina-test-suite,mina-devnet-lightnet" 1

export MINA_LIBP2P_PASS="naughty blue worm"
export MINA_PRIVKEY_PASS="naughty blue worm"
Expand Down
50 changes: 12 additions & 38 deletions scripts/debian/builder-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ case "${DUNE_PROFILE}" in
MINA_DEB_NAME="mina-berkeley"
DEB_SUFFIX=""
;;
*)
lightnet)
# use dune profile as suffix but replace underscore to dashes so deb builder won't complain
_SUFFIX=${DUNE_PROFILE//_/-}
MINA_DEB_NAME="mina-berkeley-${_SUFFIX}"
MINA_DEB_NAME="mina-devnet-${_SUFFIX}"
DEB_SUFFIX="-${_SUFFIX}"
;;
*)
echo "Unsupported dune profile"
exit 1
;;
esac


Expand Down Expand Up @@ -137,9 +141,9 @@ copy_common_daemon_configs() {

echo "------------------------------------------------------------"
echo "copy_common_daemon_configs inputs:"
echo "Network Name: ${1} (like mainnet, devnet, berkeley)"
echo "Network Name: ${1} (like mainnet, devnet)"
echo "Signature Type: ${2} (mainnet or testnet)"
echo "Seed List URL path: ${3} (like seed-lists/berkeley_seeds.txt)"
echo "Seed List URL path: ${3} (like seed-lists/devnet_seeds.txt)"

# Copy shared binaries
cp ../src/app/libp2p_helper/result/bin/libp2p_helper "${BUILDDIR}/usr/local/bin/coda-libp2p_helper"
Expand All @@ -161,7 +165,6 @@ copy_common_daemon_configs() {
# Include all useful genesis ledgers
cp ../genesis_ledgers/mainnet.json "${BUILDDIR}/var/lib/coda/mainnet.json"
cp ../genesis_ledgers/devnet.json "${BUILDDIR}/var/lib/coda/devnet.json"
cp ../genesis_ledgers/berkeley.json "${BUILDDIR}/var/lib/coda/berkeley.json"
# Set the default configuration based on Network name ($1)
cp ../genesis_ledgers/${1}.json "${BUILDDIR}/var/lib/coda/config_${GITHASH_CONFIG}.json"
cp ../scripts/hardfork/create_runtime_config.sh "${BUILDDIR}/usr/local/bin/mina-hf-create-runtime-config"
Expand Down Expand Up @@ -278,7 +281,7 @@ build_rosetta_mainnet_deb() {
build_deb mina-rosetta-mainnet
}

##################################### ROSETTA MAINNET PACKAGE #######################################
##################################### ROSETTA DEVNET PACKAGE #######################################
build_rosetta_devnet_deb() {

echo "------------------------------------------------------------"
Expand All @@ -291,20 +294,6 @@ build_rosetta_devnet_deb() {
build_deb mina-rosetta-devnet
}

##################################### ROSETTA BERKELEY PACKAGE #######################################
build_rosetta_berkeley_deb() {

echo "------------------------------------------------------------"
echo "--- Building rosetta berkeley deb"

create_control_file mina-rosetta-berkeley "${SHARED_DEPS}" 'Mina Protocol Rosetta Client' "${SUGGESTED_DEPS}"

copy_common_rosetta_configs "testnet"

build_deb mina-rosetta-berkeley
}


##################################### MAINNET PACKAGE #######################################
build_daemon_mainnet_deb() {

Expand All @@ -325,28 +314,13 @@ build_daemon_devnet_deb() {
echo "------------------------------------------------------------"
echo "--- Building testnet signatures deb without keys:"

create_control_file mina-devnet "${SHARED_DEPS}${DAEMON_DEPS}" 'Mina Protocol Client and Daemon for the Devnet Network' "${SUGGESTED_DEPS}"
create_control_file "${MINA_DEB_NAME}" "${SHARED_DEPS}${DAEMON_DEPS}" 'Mina Protocol Client and Daemon for the Devnet Network' "${SUGGESTED_DEPS}"

copy_common_daemon_configs devnet testnet 'seed-lists/devnet_seeds.txt'

build_deb mina-devnet
}
##################################### END DEVNET PACKAGE #######################################

##################################### BERKELEY PACKAGE #######################################
build_daemon_berkeley_deb() {

echo "------------------------------------------------------------"
echo "--- Building Mina Berkeley testnet signatures deb without keys:"

create_control_file "${MINA_DEB_NAME}" "${SHARED_DEPS}${DAEMON_DEPS}" 'Mina Protocol Client and Daemon'

copy_common_daemon_configs berkeley testnet 'seed-lists/berkeley_seeds.txt'

build_deb "${MINA_DEB_NAME}"

}
##################################### END BERKELEY PACKAGE #######################################
##################################### END DEVNET PACKAGE #######################################

##################################### ARCHIVE PACKAGE ##########################################
build_archive_deb () {
Expand Down Expand Up @@ -379,7 +353,7 @@ build_archive_deb () {
##################################### ZKAPP TEST TXN #######################################
build_zkapp_test_transaction_deb () {
echo "------------------------------------------------------------"
echo "--- Building Mina Berkeley ZkApp test transaction tool:"
echo "--- Building Mina Devnet ZkApp test transaction tool:"

create_control_file mina-zkapp-test-transaction "${SHARED_DEPS}${DAEMON_DEPS}" 'Utility to generate ZkApp transactions in Mina GraphQL format'

Expand Down