mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
- scripts/* + .github/actions/* + .github/workflows/*: LUX_PATH -> NODE_PATH, LUX_VERSION -> NODE_VERSION. - Dockerfile: LUX_CGO -> CGO_ENABLED (matches Go convention). - staking/kms.go: LUX_KMS_ENDPOINT/PATH/TOKEN -> KMS_ENDPOINT/PATH/TOKEN. - deploy-subnets.sh: LUX_PRIVATE_KEY -> PRIVATE_KEY. - config/config.go: drop LUX_AUTOMINE_CCHAIN_GENESIS_PATH env override; downstream networks ship their own platform-genesis bundle instead.
34 lines
1.3 KiB
Bash
Executable File
34 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Validates the construction of the antithesis images for a test setup specified by TEST_SETUP by:
|
|
#
|
|
# 1. Building the antithesis test image
|
|
# 2. Extracting the docker compose configuration from the image
|
|
# 3. Running the workload and its target network without error for a minute
|
|
# 4. Stopping the workload and its target network
|
|
#
|
|
# `docker compose` is used (docker compose v2 plugin) due to it being installed by default on
|
|
# public github runners. `docker-compose` (the v1 plugin) is not installed by default.
|
|
|
|
# e.g.,
|
|
# TEST_SETUP=node ./scripts/tests.build_antithesis_images.sh # Test build of images for node test setup
|
|
# DEBUG=1 TEST_SETUP=node ./scripts/tests.build_antithesis_images.sh # Retain the temporary compose path for troubleshooting
|
|
|
|
NODE_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
|
|
|
|
# Discover the default tag that will be used for the image
|
|
source "${NODE_PATH}"/scripts/git_commit.sh
|
|
export IMAGE_TAG="${commit_hash}"
|
|
|
|
# Build the images for the specified test setup
|
|
export TEST_SETUP="${TEST_SETUP:-}"
|
|
bash -x "${NODE_PATH}"/scripts/build_antithesis_images.sh
|
|
|
|
# Test the images
|
|
export IMAGE_NAME="antithesis-${TEST_SETUP}-config"
|
|
export DEBUG="${DEBUG:-}"
|
|
set -x
|
|
. "${NODE_PATH}"/scripts/lib_test_antithesis_images.sh
|