Skip to content

Commit

Permalink
Merge branch 'o1js-main' into feature/avoid-cached-vk-recomputation
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude authored Oct 25, 2023
2 parents 796262b + 23ea73a commit 83e7f97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion buildkite/scripts/merges-cleanly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BRANCH=$1
CURRENT=$(git branch --show-current)
echo 'Testing for conflicts between the current branch `'"${CURRENT}"'` and `'"${BRANCH}"'`...'
echo 'Testing for conflicts between the current branch `'"${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"'` and `'"${BRANCH}"'`...'

# Adapted from this stackoverflow answer: https://stackoverflow.com/a/10856937
# The git merge-tree command shows the content of a 3-way merge without
Expand Down Expand Up @@ -32,6 +32,12 @@ if [ $RET -eq 0 ]; then
echo "No conflicts found against upstream branch ${BRANCH}"
exit 0
else
# exclude branches for which merging cleanly is not a hard requirement
if [ "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}" == "o1js-main" ]; then
echo "Conflicts were found, but the current branch does not have to merge cleanly. Exiting with code 0."
exit 0
fi

# Found a conflict
echo "[ERROR] This pull request conflicts with $BRANCH, please open a new pull request against $BRANCH at this link:"
echo "https://github.com/MinaProtocol/mina/compare/${BRANCH}...${BUILDKITE_BRANCH}"
Expand Down
3 changes: 1 addition & 2 deletions buildkite/scripts/run-snark-transaction-profiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ apt-get update
apt-get install -y git apt-transport-https ca-certificates tzdata curl python3

case "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" in
rampup|berkeley|release/2.0.0|develop)
rampup|berkeley|release/2.0.0|develop|o1js-main)
TESTNET_NAME="berkeley"
;;
*)
TESTNET_NAME="mainnet"
esac

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

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

echo "Installing mina daemon package: mina-${TESTNET_NAME}=${MINA_DEB_VERSION}"
Expand Down
3 changes: 2 additions & 1 deletion buildkite/src/Constants/DebianVersions.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ let minimalDirtyWhen = [
S.strictlyStart (S.contains "dockerfiles/stages"),
S.exactly "scripts/rebuild-deb" "sh",
S.exactly "scripts/release-docker" "sh",
S.exactly "buildkite/scripts/build-artifact" "sh"
S.exactly "buildkite/scripts/build-artifact" "sh",
S.exactly "buildkite/scripts/run-snark-transaction-profiler" "sh"
]

-- The default debian version (Bullseye) is used in all downstream CI jobs
Expand Down

0 comments on commit 83e7f97

Please sign in to comment.