Skip to content

Commit 33f03fd

Browse files
committed
beefy upgrade: save configs for testing beefy upgrade
1 parent 79331d4 commit 33f03fd

33 files changed

+370
-50
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dev/local-environment/docker-compose.yml.bak
3535
dev/local-environment/configurations/tests/e2e-tests
3636
dev/local-environment/configurations/partner-chains-node/overrides
3737
dev/local-environment/runtime-values/*
38+
dev/local-environment/saved-binaries/*
3839

3940
# Local environment dynamic
4041
dev/local-environment-dynamic/.env

build_no_beefy.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
# Script to build partner-chains-node without BEEFY features
4+
# This builds from the master branch which doesn't have BEEFY
5+
6+
set -e
7+
8+
echo "🔨 Building partner-chains-node WITHOUT BEEFY features from master branch..."
9+
10+
# Check if we're in the right directory
11+
if [ ! -f "Cargo.toml" ] || [ ! -d "demo" ]; then
12+
echo "❌ Error: Please run this script from the project root directory"
13+
exit 1
14+
fi
15+
16+
# Save current branch
17+
CURRENT_BRANCH=$(git branch --show-current)
18+
echo "📍 Current branch: $CURRENT_BRANCH"
19+
20+
# Switch to master branch
21+
echo "🔄 Switching to master branch..."
22+
git checkout master
23+
24+
# Build the node from master (no BEEFY)
25+
echo "🔨 Building node from master branch (no BEEFY)..."
26+
cargo build --release --bin partner-chains-demo-node
27+
28+
# Copy the binary
29+
cp target/release/partner-chains-demo-node partner-chains-node-no-beefy
30+
31+
echo "✅ Binary created: partner-chains-node-no-beefy"
32+
33+
# Switch back to original branch
34+
echo "🔄 Switching back to $CURRENT_BRANCH branch..."
35+
git checkout $CURRENT_BRANCH
36+
37+
echo "🎯 Ready to test! Use 'partner-chains-node-no-beefy' for non-BEEFY testing"
38+
echo "📊 This binary was built from master branch and should not have BEEFY functionality"

dev/docker/build-images-local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# This script has to be executed from the root of the repository to enable proper context for the Docker build. `./dev/docker/build-images-local.sh`
33
docker build --platform linux/amd64 --pull -f dev/docker/builder.Dockerfile -t "partner-chains-node-builder:latest" --ssh default . && \
44
docker build --platform linux/amd64 --pull -f dev/docker/runner.Dockerfile -t "partner-chains-node-runner:latest" --ssh default . && \
5-
docker build --platform linux/amd64 -f dev/docker/Dockerfile -t partner-chains-node:latest dev/docker
5+
docker build --platform linux/amd64 -f dev/docker/Dockerfile -t partner-chains-node:beefy dev/docker
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Unable to start the node due to missing or malformed environment variables. This issue typically occurs when the node executable is launched directly. Instead, please use the `./partner-chains-cli start-node` command, which sets up all the necessary environment variables for you. This command also displays the complete node startup command, including the required environment variables, allowing you to use it directly if needed.

dev/local-environment/chain-spec.json

Lines changed: 127 additions & 0 deletions
Large diffs are not rendered by default.

dev/local-environment/configurations/partner-chains-nodes/partner-chains-node-1/entrypoint.sh.backup

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

dev/local-environment/configurations/partner-chains-nodes/partner-chains-node-1/keys/beefy.skey

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
020a1091341fe5664bfa1782d5e04779689068c916b04cb365ec3153755684d9a1
1+
0x021e229072dc5db77dffeaf3c85d66ec4089e0d084ff6e9eac169c58ed4f39679a
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"skate avocado enact box filter wild stool violin immune organ expose food"

dev/local-environment/configurations/partner-chains-nodes/partner-chains-node-2/keys/beefy.skey

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)