Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
f0f1ae9
Remove sigkind from most of Rosetta
georgeee Sep 30, 2025
3f3b2f6
Reduce deprecated sigkind usage in delegation_verify
georgeee Oct 1, 2025
e50d661
Define --signature-kind flag and use it in some CLI apps
georgeee Oct 1, 2025
36688da
Use Testnet sigkind in a few occasions
georgeee Oct 1, 2025
fe6f03b
Remove t_DEPRECATED usage from some CLI apps
georgeee Oct 1, 2025
282712d
Remove usage of t_DEPRECATED from uptime service
georgeee Oct 1, 2025
f1ec939
Remove t_DEPRECATED from ledger logic
georgeee Oct 1, 2025
818f915
Simplify usages of Tesnet sigkind
georgeee Oct 1, 2025
10def32
Remove a few t_DEPRECATED usages
georgeee Oct 1, 2025
8fc121b
Revert "Geneis Proof: Push sig kind out"
georgeee Oct 1, 2025
af6b020
Remove t_DEPRECATED from genesis_ledger_helper
georgeee Oct 2, 2025
c7940b1
Remove t_DEPRECATED from Mina_lib
georgeee Oct 2, 2025
9066d2d
Remove t_DEPRECATED from Legacy_format
georgeee Oct 2, 2025
db23404
Remove t_DEPRECATED from compile_time_constants
georgeee Oct 2, 2025
6bd9c17
Remove t_DEPREACATED from print_blockchain_snark_vk
georgeee Oct 2, 2025
bf013af
Add signature_kind to runtime config
georgeee Oct 3, 2025
92af329
Source sigkind from both CLI flag and config
georgeee Oct 3, 2025
c90d704
Introduce separate flag options for opt/non-opt
georgeee Oct 3, 2025
c75793f
Add signature_kind to JSON configs
georgeee Oct 3, 2025
0de4396
Update dockerfiles to expose sigking env variable
georgeee Oct 3, 2025
b5a9411
Make signature_kind a non-virtual library
georgeee Oct 3, 2025
7bff46d
Remove network_id from compile configs
georgeee Oct 3, 2025
84694a8
Remove genesis timestamp from .mlh files
georgeee Oct 3, 2025
960d47d
Unite mainnet and devnet profiles
georgeee Oct 3, 2025
cfbb9f0
fixup! Make signature_kind a non-virtual library
georgeee Oct 3, 2025
0aa7694
fixup! Unite mainnet and devnet profiles
georgeee Oct 3, 2025
28f0623
fixup! Unite mainnet and devnet profiles
georgeee Oct 3, 2025
c25ce4e
fixup! Unite mainnet and devnet profiles
georgeee Oct 3, 2025
6456b59
Remove unused function
georgeee Oct 3, 2025
87712ec
Use coordinator's sigkind in snark worker
georgeee Oct 3, 2025
3b69054
Fix debian builder
georgeee Oct 3, 2025
2107c03
Remove berkeley debians
georgeee Oct 3, 2025
70fff68
Avoid clash with reserved keyword if
georgeee Oct 3, 2025
81af6d5
WIP Simplify CI builds
georgeee Oct 3, 2025
7b8a8ff
Root out MINA_BUILD_MAINNET
georgeee Oct 3, 2025
c02569f
WIP Simplify Dhall configuration
georgeee Oct 3, 2025
917c938
Fixup debian build script
georgeee Oct 6, 2025
523cfbd
Build rosetta in build-artifacts script
georgeee Oct 6, 2025
caa1375
Harmonize use of suffixes
georgeee Oct 6, 2025
e3c8f77
Remove hardcoded mina-create-legacy-genesis installation into Daemon
georgeee Oct 6, 2025
9578ad2
Debugging CI jobs
georgeee Oct 7, 2025
bca08bd
Debugging CI jobs
georgeee Oct 7, 2025
c5d82d7
fixup! Debugging CI jobs
georgeee Oct 7, 2025
bbbbae3
Remove docker tag's profile segment
georgeee Oct 7, 2025
ef0522a
fixup! Remove docker tag's profile segment
georgeee Oct 7, 2025
92921c5
fixup! fixup! Remove docker tag's profile segment
georgeee Oct 7, 2025
f5f41df
Introduce mina-base docker and use it to build network-dependent dockers
georgeee Oct 7, 2025
c3927fa
Fixup for test suite docker
georgeee Oct 7, 2025
2d21f39
fixup! Introduce mina-base docker and use it to build network-depende…
georgeee Oct 7, 2025
f781df1
fixup! Remove genesis timestamp from .mlh files
georgeee Oct 7, 2025
77b51d0
fixup! Introduce mina-base docker and use it to build network-depende…
georgeee Oct 7, 2025
727dd04
Remove unused function
georgeee Oct 7, 2025
efac9ec
fixup! fixup! Introduce mina-base docker and use it to build network-…
georgeee Oct 7, 2025
c9ef674
fixup! fixup! fixup! Introduce mina-base docker and use it to build n…
georgeee Oct 7, 2025
a68b8b3
fixup! fixup! fixup! fixup! Introduce mina-base docker and use it to …
georgeee Oct 7, 2025
61572dc
Add missing Base builds
georgeee Oct 7, 2025
79b04a5
fixup! Introduce mina-base docker and use it to build network-depende…
georgeee Oct 7, 2025
5b920df
fixup! fixup! Introduce mina-base docker and use it to build network-…
georgeee Oct 7, 2025
6342c75
Use same technique for archive and rosetta as for daemon
georgeee Oct 7, 2025
4a61734
fixup! Use same technique for archive and rosetta as for daemon
georgeee Oct 7, 2025
2304fdf
fixup! fixup! Use same technique for archive and rosetta as for daemon
georgeee Oct 7, 2025
518b28c
fixup! fixup! fixup! Use same technique for archive and rosetta as fo…
georgeee Oct 7, 2025
d859ee0
fixup! fixup! fixup! fixup! Use same technique for archive and rosett…
georgeee Oct 7, 2025
7a49cee
Remove unnecessary dependency from benchmarks
georgeee Oct 7, 2025
91e6862
fixup! Remove unnecessary dependency from benchmarks
georgeee Oct 7, 2025
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
24 changes: 0 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,30 +178,6 @@ build-logproc: ocaml_checks reformat-diff libp2p_helper ## Build the logproc exe
--profile=$(DUNE_PROFILE) \
&& echo "✅ Build complete"

.PHONY: build-mainnet-sigs
build-mainnet-sigs: ocaml_checks reformat-diff libp2p_helper build ## Build mainnet signature variants of the daemon
$(info 🏗️ Building mainnet signature variants with profile $(DUNE_PROFILE) and commit $(GITLONGHASH))
@(ulimit -s 65532 || true) && (ulimit -n 10240 || true) && \
env MINA_COMMIT_SHA1=$(GITLONGHASH) \
dune build \
src/app/cli/src/mina_mainnet_signatures.exe \
src/app/rosetta/rosetta_mainnet_signatures.exe \
src/app/rosetta/ocaml-signer/signer_mainnet_signatures.exe \
--profile=mainnet \
&& echo "✅ Build complete"

.PHONY: build-devnet-sigs
build-devnet-sigs: ocaml_checks reformat-diff libp2p_helper build ## Build devnet signature variants of the daemon
$(info 🏗️ Building devnet signature variants with profile $(DUNE_PROFILE) and commit $(GITLONGHASH))
@(ulimit -s 65532 || true) && (ulimit -n 10240 || true) && \
env MINA_COMMIT_SHA1=$(GITLONGHASH) \
dune build \
src/app/cli/src/mina_testnet_signatures.exe \
src/app/rosetta/rosetta_testnet_signatures.exe \
src/app/rosetta/ocaml-signer/signer_testnet_signatures.exe \
--profile=devnet \
&& echo "✅ Build complete"

.PHONY: build-archive
build-archive: ocaml_checks reformat-diff ## Build the archive node
$(info 🏗️ Building archive with profile $(DUNE_PROFILE) and commit $(GITLONGHASH))
Expand Down
4 changes: 1 addition & 3 deletions buildkite/scripts/bench/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ set -eo pipefail
# Don't prompt for answers during apt-get install
export DEBIAN_FRONTEND=noninteractive

TESTNET_NAME="berkeley"

git config --global --add safe.directory /workdir
source buildkite/scripts/export-git-env-vars.sh

source buildkite/scripts/debian/update.sh --verbose

source buildkite/scripts/debian/install.sh "mina-test-suite,mina-$TESTNET_NAME" 1
source buildkite/scripts/debian/install.sh "mina-test-suite-instrumented,mina-base-instrumented" 1

pip3 install -r scripts/benchmarks/requirements.txt
9 changes: 4 additions & 5 deletions buildkite/scripts/build-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,20 @@ if [[ -v DUNE_INSTRUMENT_WITH ]]; then
export DUNE_INSTRUMENT_WITH="$DUNE_INSTRUMENT_WITH"
fi


echo "--- Build all major targets required for packaging"
echo "Building from Commit SHA: ${MINA_COMMIT_SHA1}"
echo "Rust Version: $(rustc --version)"

make libp2p_helper

make build-logproc

[[ ${MINA_BUILD_MAINNET} ]] && make build-mainnet-sigs
make build

make build-devnet-sigs
make build-logproc

make build-daemon-utils

make build-archive-utils

make build-rosetta

make build-test-utils
2 changes: 0 additions & 2 deletions buildkite/scripts/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ set -eo pipefail

echo "--- Bundle all packages for Debian ${MINA_DEB_CODENAME}"
echo " Includes mina daemon, archive-node, rosetta"
[[ ${MINA_BUILD_MAINNET} ]] && echo " MINA_BUILD_MAINNET is true so this includes the mainnet and devnet packages for mina-daemon as well"


echo "--- Prepare debian packages"
BRANCH_NAME="$BUILDKITE_BRANCH" ./scripts/debian/build.sh "$@"
Expand Down
9 changes: 4 additions & 5 deletions buildkite/scripts/debian/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ else
debs=(${DEBS//,/ })
for i in "${debs[@]}"; do
case $i in
mina-berkeley*|mina-devnet|mina-mainnet)
# Downaload mina-logproc too
mina-base*|mina-devnet|mina-mainnet)
# Download mina-logproc, mina-base too
./buildkite/scripts/cache/manager.sh read "debians/$MINA_DEB_CODENAME/mina-base*" $LOCAL_DEB_FOLDER
./buildkite/scripts/cache/manager.sh read "debians/$MINA_DEB_CODENAME/mina-logproc*" $LOCAL_DEB_FOLDER
;;
mina-devnet-legacy|mina-mainnet-legacy)
# Download mina-logproc legacy too
./buildkite/scripts/cache/manager.sh read --root "legacy" "debians/$MINA_DEB_CODENAME/${i}*" $LOCAL_DEB_FOLDER
esac
./buildkite/scripts/cache/manager.sh read "debians/$MINA_DEB_CODENAME/${i}_*" $LOCAL_DEB_FOLDER
./buildkite/scripts/cache/manager.sh read "debians/$MINA_DEB_CODENAME/${i}*" $LOCAL_DEB_FOLDER
done
fi

Expand All @@ -66,7 +67,5 @@ $SUDO apt-get update --yes -o Dir::Etc::sourcelist="sources.list.d/mina.list" -o
$SUDO apt-get remove --yes "${debs[@]}"
$SUDO apt-get install --yes --allow-downgrades "${debs_with_version[@]}"



# Cleaning up
source ./scripts/debian/aptly.sh stop --clean
4 changes: 1 addition & 3 deletions buildkite/scripts/dump-mina-type-shapes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ set -eo pipefail

buildkite/scripts/debian/update.sh --verbose

TESTNET_NAME="berkeley"

git config --global --add safe.directory /workdir
source buildkite/scripts/export-git-env-vars.sh

source buildkite/scripts/debian/install.sh "mina-${TESTNET_NAME}" 1
source buildkite/scripts/debian/install.sh "mina-base" 1

MINA_COMMIT_SHA1=$(git log -n 1 --format=%h --abbrev=7)
export TYPE_SHAPE_FILE=${MINA_COMMIT_SHA1}-type_shape.txt
Expand Down
4 changes: 2 additions & 2 deletions buildkite/scripts/run-test-executive-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ cleanup

TEST_NAME="$1"

MINA_IMAGE="gcr.io/o1labs-192920/mina-daemon:$MINA_DOCKER_TAG-berkeley"
ARCHIVE_IMAGE="gcr.io/o1labs-192920/mina-archive:$MINA_DOCKER_TAG-berkeley"
MINA_IMAGE="gcr.io/o1labs-192920/mina-daemon:$MINA_DOCKER_TAG"
ARCHIVE_IMAGE="gcr.io/o1labs-192920/mina-archive:$MINA_DOCKER_TAG"

if [[ "${TEST_NAME:0:15}" == "block-prod-prio" ]] && [[ "$RUN_OPT_TESTS" == "" ]]; then
echo "Skipping $TEST_NAME"
Expand Down
3 changes: 2 additions & 1 deletion buildkite/scripts/single-node-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ source buildkite/scripts/export-git-env-vars.sh

source buildkite/scripts/debian/update.sh --verbose

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

export MINA_LIBP2P_PASS="naughty blue worm"
export MINA_PRIVKEY_PASS="naughty blue worm"
export MINA_SIGNATURE_KIND="testnet"

mina-command-line-tests test -v
3 changes: 2 additions & 1 deletion buildkite/scripts/test-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ git reset --hard $BUILDKITE_COMMIT
# Test developer terminal with lsp server
nix "${NIX_OPTS[@]}" develop "$PWD?submodules=1#with-lsp" --command bash -c "echo tested"
nix "${NIX_OPTS[@]}" develop "$PWD?submodules=1#with-lsp" --command bash -c "dune build src" &
nix "${NIX_OPTS[@]}" build "$PWD?submodules=1#devnet" --no-link
nix "${NIX_OPTS[@]}" build "$PWD?submodules=1" --no-link

wait

if [[ "$NIX_CACHE_GCP_ID" != "" ]] && [[ "$NIX_CACHE_GCP_SECRET" != "" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion buildkite/scripts/tests/ledger_test_apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source buildkite/scripts/export-git-env-vars.sh

source buildkite/scripts/debian/update.sh --verbose

source buildkite/scripts/debian/install.sh "mina-berkeley-instrumented" 1
source buildkite/scripts/debian/install.sh "mina-base-instrumented" 1

echo "removing magic config files"
sudo rm -f /var/lib/coda/config_*
Expand Down
4 changes: 1 addition & 3 deletions buildkite/scripts/version-linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ if [[ $# -ne 1 ]]; then
exit 1
fi

TESTNET_NAME="${TESTNET_NAME:-berkeley}"

git config --global --add safe.directory /workdir

source buildkite/scripts/debian/update.sh --verbose
Expand All @@ -30,7 +28,7 @@ echo "--- Run Python version linter with branches: ${pr_branch} ${base_branch} $
echo "--- Install Mina"
source buildkite/scripts/export-git-env-vars.sh

source buildkite/scripts/debian/install.sh "mina-${TESTNET_NAME}" 1
source buildkite/scripts/debian/install.sh "mina-base" 1

echo "--- Audit type shapes"
mina internal audit-type-shapes
6 changes: 3 additions & 3 deletions buildkite/src/Command/Base.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ let Config =
, flake_retry_limit : Optional Natural
, soft_fail : Optional B/SoftFail
, skip : Optional B/Skip
, if : Optional B/If
, if_ : Optional B/If
, timeout_in_minutes : Optional Integer
}
, default =
Expand All @@ -116,7 +116,7 @@ let Config =
, flake_retry_limit = Some 0
, soft_fail = None B/SoftFail
, skip = None B/Skip
, if = None B/If
, if_ = None B/If
, timeout_in_minutes = None Integer
}
}
Expand Down Expand Up @@ -244,7 +244,7 @@ let build
}
, soft_fail = c.soft_fail
, skip = c.skip
, if = c.if
, `if` = c.if_
, plugins =
let dockerPart =
Optional/toList
Expand Down
1 change: 0 additions & 1 deletion buildkite/src/Command/Bench/Base.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ let Spec =
DebianVersions.DepsSpec::{
, build_flag = BuildFlags.Type.Instrumented
}
# DebianVersions.dependsOn DebianVersions.DepsSpec::{=}
, additionalDirtyWhen = [] : List SelectFiles.Type
, yellowThreshold = 0.1
, redThreshold = 0.2
Expand Down
13 changes: 6 additions & 7 deletions buildkite/src/Command/DockerImage.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ let ReleaseSpec =
, step_key_suffix : Text
, docker_publish : DockerPublish.Type
, verify : Bool
, if : Optional B/If
, if_ : Optional B/If
}
, default =
{ deps = [] : List Command.TaggedKey.Type
, network = Network.Type.Berkeley
, network = Network.Type.Base
, arch = Arch.Type.Amd64
, version = "\\\${MINA_DOCKER_TAG}"
, service = Artifacts.Type.Daemon
Expand All @@ -68,7 +68,7 @@ let ReleaseSpec =
, deb_release = "unstable"
, deb_version = "\\\${MINA_DEB_VERSION}"
, deb_legacy_version = "3.1.1-alpha1-compatible-14a8b92"
, deb_profile = Profiles.Type.Devnet
, deb_profile = Profiles.Type.PublicNetwork
, build_flags = BuildFlags.Type.None
, deb_repo = DebianRepo.Type.Local
, docker_publish = DockerPublish.Type.Essential
Expand All @@ -77,7 +77,7 @@ let ReleaseSpec =
, step_key_suffix = "-docker-image"
, verify = False
, deb_suffix = None Text
, if = None B/If
, if_ = None B/If
}
}

Expand Down Expand Up @@ -124,8 +124,7 @@ let generateStep =
Extensions.joinOptionals
"-"
[ merge
{ Mainnet = None Text
, Devnet = None Text
{ PublicNetwork = None Text
, Dev = None Text
, Lightnet = Some
"${Profiles.toSuffixLowercase spec.deb_profile}"
Expand Down Expand Up @@ -253,7 +252,7 @@ let generateStep =
, target = Size.XLarge
, docker_login = Some DockerLogin::{=}
, depends_on = spec.deps
, if = spec.if
, if_ = spec.if_
}

in { generateStep = generateStep
Expand Down
Loading