Skip to content

Commit

Permalink
Merge pull request #1996 from CounterpartyXCP/develop
Browse files Browse the repository at this point in the history
v10.3.0
  • Loading branch information
adamkrellenstein authored Jul 12, 2024
2 parents 5e0cf15 + 6327301 commit 8709877
Show file tree
Hide file tree
Showing 92 changed files with 15,509 additions and 9,466 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
cd counterparty-core && pip install -e . && cd ..
- name: Bootstrap testnet database
run: |
counterparty-server --testnet bootstrap --no-confirm
counterparty-server --testnet bootstrap --no-confirm --bootstrap-url "https://bootstrap.counterparty.io/counterparty-testnet.v10.3.0.tar.gz"
- name: Run tests
run: |
cd counterparty-core
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/test_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ touch "./DOCKER_COMPOSE_TEST_LOCK"
GIT_BRANCH="$1"

# pull the latest code
rm -rf counterparty-core
sudo rm -rf counterparty-core
git clone --branch "$GIT_BRANCH" https://github.com/CounterpartyXCP/counterparty-core.git
cd counterparty-core

Expand All @@ -39,12 +39,12 @@ docker compose --profile mainnet up -d
docker compose --profile testnet up -d

# wait for counterparty-core to be ready
while [ "$(docker compose logs counterparty-core 2>&1 | grep 'Catch up complete.')" = "" ]; do
while [ "$(docker compose logs counterparty-core 2>&1 | grep 'Watching for new blocks')" = "" ]; do
echo "Waiting for counterparty-core mainnet to be ready"
sleep 1
done

while [ "$(docker compose logs counterparty-core-testnet 2>&1 | grep 'Catch up complete.')" = "" ]; do
while [ "$(docker compose logs counterparty-core-testnet 2>&1 | grep 'Watching for new blocks')" = "" ]; do
echo "Waiting for counterparty-core testnet to be ready"
sleep 1
done
Expand Down Expand Up @@ -108,28 +108,24 @@ docker compose --profile mainnet run counterparty-core reparse $REPARSE_FROM \
docker compose --profile mainnet up -d counterparty-core

# wait for counterparty-core to be ready
while [ "$(docker compose logs counterparty-core 2>&1 | grep 'Catch up complete.')" = "" ]; do
while [ "$(docker compose logs counterparty-core 2>&1 | grep 'Watching for new blocks')" = "" ]; do
echo "Waiting for counterparty-core mainnet to be ready"
sleep 1
done

# Run dredd test
dredd

previous_counterparty_rs_hash=$(cat ../counterparty_rs_hash)
current_counterparty_rs_hash=$(find counterparty-rs/ -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum | awk '{print $1}')


# Run compare hashes test
. "$HOME/.profile"
cd counterparty-core

if [ "$COUNTERPARTY_RS_CACHED" != "CACHED" ]; then
echo $current_counterparty_rs_hash > ../counterparty_rs_hash
hatch env prune
fi

hatch run pytest counterpartycore/test/compare_hashes_test.py --comparehashes
sudo python3 -m pytest counterpartycore/test/mainnet_test.py --testapidb --comparehashes
cd ..


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Compose

on:
push:
branches: ['develop', 'master', 'compose']
branches: ['develop', 'master', 'apidb']

jobs:
build:
Expand Down
Loading

0 comments on commit 8709877

Please sign in to comment.