ref(docker): remove all unrequired docker arguments from CI/CD pipelines (#7231)
* ref(docker): remove all unrequired docker arguments
* fix(ci): use correct `$NETWORK` approach for tests
* fix(release): do not change default `$NETWORK` for experimental image
* Update .github/workflows/continous-integration-docker.yml
Co-authored-by: Marek <mail@marek.onl>
* Revert "fix(release): do not change default `$NETWORK` for experimental image"
This reverts commit bd5b6c831b
.
* fix: typo
---------
Co-authored-by: Marek <mail@marek.onl>
This commit is contained in:
parent
b8dd54081d
commit
da2e696836
|
@ -3,9 +3,6 @@ name: Build docker image
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
network:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
image_name:
|
image_name:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
@ -24,12 +21,6 @@ on:
|
||||||
rust_lib_backtrace:
|
rust_lib_backtrace:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
colorbt_show_hidden:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
zebra_skip_ipv6_tests:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
rust_log:
|
rust_log:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -44,9 +35,6 @@ on:
|
||||||
required: false
|
required: false
|
||||||
default: "lightwalletd-grpc-tests zebra-checkpoints"
|
default: "lightwalletd-grpc-tests zebra-checkpoints"
|
||||||
type: string
|
type: string
|
||||||
rpc_port:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
tag_suffix:
|
tag_suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -154,16 +142,10 @@ jobs:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
NETWORK=${{ inputs.network }}
|
|
||||||
SHORT_SHA=${{ env.GITHUB_SHA_SHORT }}
|
SHORT_SHA=${{ env.GITHUB_SHA_SHORT }}
|
||||||
RUST_BACKTRACE=${{ inputs.rust_backtrace }}
|
|
||||||
RUST_LIB_BACKTRACE=${{ inputs.rust_lib_backtrace }}
|
|
||||||
COLORBT_SHOW_HIDDEN=${{ inputs.colorbt_show_hidden }}
|
|
||||||
ZEBRA_SKIP_IPV6_TESTS=${{ inputs.zebra_skip_ipv6_tests }}
|
|
||||||
RUST_LOG=${{ inputs.rust_log }}
|
RUST_LOG=${{ inputs.rust_log }}
|
||||||
FEATURES=${{ inputs.features }}
|
FEATURES=${{ inputs.features }}
|
||||||
TEST_FEATURES=${{ inputs.test_features }}
|
TEST_FEATURES=${{ inputs.test_features }}
|
||||||
RPC_PORT=${{ inputs.rpc_port }}
|
|
||||||
push: true
|
push: true
|
||||||
# Don't read from the cache if the caller disabled it.
|
# Don't read from the cache if the caller disabled it.
|
||||||
# https://docs.docker.com/engine/reference/commandline/buildx_build/#options
|
# https://docs.docker.com/engine/reference/commandline/buildx_build/#options
|
||||||
|
|
|
@ -114,10 +114,6 @@ jobs:
|
||||||
dockerfile_target: runtime
|
dockerfile_target: runtime
|
||||||
image_name: zebrad
|
image_name: zebrad
|
||||||
no_cache: ${{ inputs.no_cache || false }}
|
no_cache: ${{ inputs.no_cache || false }}
|
||||||
# We hard-code Mainnet here, because the config is modified before running zebrad
|
|
||||||
network: 'Mainnet'
|
|
||||||
rust_backtrace: '1'
|
|
||||||
zebra_skip_ipv6_tests: '1'
|
|
||||||
rust_log: info
|
rust_log: info
|
||||||
|
|
||||||
# Test that Zebra works using the default config with the latest Zebra version.
|
# Test that Zebra works using the default config with the latest Zebra version.
|
||||||
|
@ -276,7 +272,7 @@ jobs:
|
||||||
--container-stdin \
|
--container-stdin \
|
||||||
--container-tty \
|
--container-tty \
|
||||||
--container-image ${{ vars.GAR_BASE }}/zebrad@${{ needs.build.outputs.image_digest }} \
|
--container-image ${{ vars.GAR_BASE }}/zebrad@${{ needs.build.outputs.image_digest }} \
|
||||||
--container-env "NETWORK=${{ matrix.network }},LOG_FILE=${{ vars.CD_LOG_FILE }},LOG_COLOR=false,SENTRY_DSN=${{ vars.SENTRY_DSN }},SHORT_SHA=${{ env.GITHUB_SHA_SHORT }}" \
|
--container-env "NETWORK=${{ matrix.network }},LOG_FILE=${{ vars.CD_LOG_FILE }},LOG_COLOR=false,SENTRY_DSN=${{ vars.SENTRY_DSN }}" \
|
||||||
--create-disk=name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},device-name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},auto-delete=yes,size=300GB,type=pd-ssd,mode=rw \
|
--create-disk=name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},device-name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},auto-delete=yes,size=300GB,type=pd-ssd,mode=rw \
|
||||||
--container-mount-disk=mount-path='/var/cache/zebrad-cache',name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},mode=rw \
|
--container-mount-disk=mount-path='/var/cache/zebrad-cache',name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},mode=rw \
|
||||||
--machine-type ${{ vars.GCP_SMALL_MACHINE }} \
|
--machine-type ${{ vars.GCP_SMALL_MACHINE }} \
|
||||||
|
@ -377,7 +373,7 @@ jobs:
|
||||||
--container-stdin \
|
--container-stdin \
|
||||||
--container-tty \
|
--container-tty \
|
||||||
--container-image ${{ vars.GAR_BASE }}/zebrad@${{ needs.build.outputs.image_digest }} \
|
--container-image ${{ vars.GAR_BASE }}/zebrad@${{ needs.build.outputs.image_digest }} \
|
||||||
--container-env "NETWORK=${{ inputs.network }},LOG_FILE=${{ inputs.log_file }},LOG_COLOR=false,SENTRY_DSN=${{ vars.SENTRY_DSN }},SHORT_SHA=${{ env.GITHUB_SHA_SHORT }}" \
|
--container-env "NETWORK=${{ inputs.network }},LOG_FILE=${{ inputs.log_file }},LOG_COLOR=false,SENTRY_DSN=${{ vars.SENTRY_DSN }}" \
|
||||||
--create-disk=name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},device-name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},auto-delete=yes,size=300GB,type=pd-ssd,mode=rw \
|
--create-disk=name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},device-name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},auto-delete=yes,size=300GB,type=pd-ssd,mode=rw \
|
||||||
--container-mount-disk=mount-path='/var/cache/zebrad-cache',name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},mode=rw \
|
--container-mount-disk=mount-path='/var/cache/zebrad-cache',name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${NETWORK},mode=rw \
|
||||||
--machine-type ${{ vars.GCP_SMALL_MACHINE }} \
|
--machine-type ${{ vars.GCP_SMALL_MACHINE }} \
|
||||||
|
|
|
@ -131,11 +131,8 @@ jobs:
|
||||||
dockerfile_target: tests
|
dockerfile_target: tests
|
||||||
image_name: ${{ vars.CI_IMAGE_NAME }}
|
image_name: ${{ vars.CI_IMAGE_NAME }}
|
||||||
no_cache: ${{ inputs.no_cache || false }}
|
no_cache: ${{ inputs.no_cache || false }}
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
rust_backtrace: full
|
rust_backtrace: full
|
||||||
rust_lib_backtrace: full
|
rust_lib_backtrace: full
|
||||||
colorbt_show_hidden: '1'
|
|
||||||
zebra_skip_ipv6_tests: '1'
|
|
||||||
rust_log: info
|
rust_log: info
|
||||||
|
|
||||||
# zebrad tests without cached state
|
# zebrad tests without cached state
|
||||||
|
@ -169,7 +166,9 @@ jobs:
|
||||||
- name: Run zebrad tests
|
- name: Run zebrad tests
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run --name zebrad-tests --tty ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features "lightwalletd-grpc-tests" --workspace -- --include-ignored
|
docker run -e NETWORK --name zebrad-tests --tty ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features "lightwalletd-grpc-tests" --workspace -- --include-ignored
|
||||||
|
env:
|
||||||
|
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
|
||||||
# zebrad tests without cached state with `getblocktemplate-rpcs` feature
|
# zebrad tests without cached state with `getblocktemplate-rpcs` feature
|
||||||
#
|
#
|
||||||
|
@ -190,7 +189,9 @@ jobs:
|
||||||
- name: Run zebrad tests
|
- name: Run zebrad tests
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run --name zebrad-tests --tty ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features "lightwalletd-grpc-tests getblocktemplate-rpcs" --workspace -- --include-ignored
|
docker run -e NETWORK --name zebrad-tests --tty -e ${{ inputs.network || vars.ZCASH_NETWORK }} ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features "lightwalletd-grpc-tests getblocktemplate-rpcs" --workspace -- --include-ignored
|
||||||
|
env:
|
||||||
|
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
|
||||||
# Run state tests with fake activation heights.
|
# Run state tests with fake activation heights.
|
||||||
#
|
#
|
||||||
|
@ -217,9 +218,10 @@ jobs:
|
||||||
- name: Run tests with fake activation heights
|
- name: Run tests with fake activation heights
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run -e TEST_FAKE_ACTIVATION_HEIGHTS --name zebrad-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --package zebra-state --lib -- --nocapture --include-ignored with_fake_activation_heights
|
docker run -e NETWORK -e TEST_FAKE_ACTIVATION_HEIGHTS --name zebrad-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --package zebra-state --lib -- --nocapture --include-ignored with_fake_activation_heights
|
||||||
env:
|
env:
|
||||||
TEST_FAKE_ACTIVATION_HEIGHTS: '1'
|
TEST_FAKE_ACTIVATION_HEIGHTS: '1'
|
||||||
|
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
|
||||||
# Test that Zebra syncs and checkpoints a few thousand blocks from an empty state.
|
# Test that Zebra syncs and checkpoints a few thousand blocks from an empty state.
|
||||||
#
|
#
|
||||||
|
@ -240,7 +242,9 @@ jobs:
|
||||||
- name: Run zebrad large sync tests
|
- name: Run zebrad large sync tests
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run --name zebrad-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features lightwalletd-grpc-tests --package zebrad --test acceptance -- --nocapture --include-ignored sync_large_checkpoints_
|
docker run -e NETWORK --name zebrad-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features lightwalletd-grpc-tests --package zebrad --test acceptance -- --nocapture --include-ignored sync_large_checkpoints_
|
||||||
|
env:
|
||||||
|
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
|
||||||
# Test launching lightwalletd with an empty lightwalletd and Zebra state.
|
# Test launching lightwalletd with an empty lightwalletd and Zebra state.
|
||||||
#
|
#
|
||||||
|
@ -261,9 +265,10 @@ jobs:
|
||||||
- name: Run tests with empty lightwalletd launch
|
- name: Run tests with empty lightwalletd launch
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run -e ZEBRA_TEST_LIGHTWALLETD --name lightwalletd-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features lightwalletd-grpc-tests --package zebrad --test acceptance -- --nocapture --include-ignored lightwalletd_integration
|
docker run -e NETWORK -e ZEBRA_TEST_LIGHTWALLETD --name lightwalletd-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} cargo test --locked --release --features lightwalletd-grpc-tests --package zebrad --test acceptance -- --nocapture --include-ignored lightwalletd_integration
|
||||||
env:
|
env:
|
||||||
ZEBRA_TEST_LIGHTWALLETD: '1'
|
ZEBRA_TEST_LIGHTWALLETD: '1'
|
||||||
|
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
|
||||||
# Test that Zebra works using the default config with the latest Zebra version
|
# Test that Zebra works using the default config with the latest Zebra version
|
||||||
test-configuration-file:
|
test-configuration-file:
|
||||||
|
@ -284,11 +289,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run --detach --name default-conf-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} zebrad start
|
docker run -e NETWORK --detach --name default-conf-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} zebrad start
|
||||||
EXIT_STATUS=$(docker logs --tail all --follow default-conf-tests 2>&1 | grep -q --extended-regexp --max-count=1 -e 'estimated progress to chain tip.*BeforeOverwinter'; echo $?; )
|
EXIT_STATUS=$(docker logs --tail all --follow default-conf-tests 2>&1 | grep -q --extended-regexp --max-count=1 -e 'estimated progress to chain tip.*BeforeOverwinter'; echo $?; )
|
||||||
docker stop default-conf-tests
|
docker stop default-conf-tests
|
||||||
docker logs default-conf-tests
|
docker logs default-conf-tests
|
||||||
exit "$EXIT_STATUS"
|
exit "$EXIT_STATUS"
|
||||||
|
env:
|
||||||
|
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
|
||||||
# Test that Zebra works using the $ZEBRA_CONF_PATH config
|
# Test that Zebra works using the $ZEBRA_CONF_PATH config
|
||||||
test-zebra-conf-path:
|
test-zebra-conf-path:
|
||||||
|
@ -309,13 +316,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
||||||
docker run --detach -e ZEBRA_CONF_PATH --name variable-conf-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} -c $ZEBRA_CONF_PATH start
|
docker run -e NETWORK --detach -e ZEBRA_CONF_PATH --name variable-conf-tests -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} -c $ZEBRA_CONF_PATH start
|
||||||
EXIT_STATUS=$(docker logs --tail all --follow variable-conf-tests 2>&1 | grep -q --extended-regexp --max-count=1 -e 'v1.0.0-rc.2.toml'; echo $?; )
|
EXIT_STATUS=$(docker logs --tail all --follow variable-conf-tests 2>&1 | grep -q --extended-regexp --max-count=1 -e 'v1.0.0-rc.2.toml'; echo $?; )
|
||||||
docker stop variable-conf-tests
|
docker stop variable-conf-tests
|
||||||
docker logs variable-conf-tests
|
docker logs variable-conf-tests
|
||||||
exit "$EXIT_STATUS"
|
exit "$EXIT_STATUS"
|
||||||
env:
|
env:
|
||||||
ZEBRA_CONF_PATH: 'zebrad/tests/common/configs/v1.0.0-rc.2.toml'
|
ZEBRA_CONF_PATH: 'zebrad/tests/common/configs/v1.0.0-rc.2.toml'
|
||||||
|
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
|
||||||
# END TODO: make the non-cached-state tests use:
|
# END TODO: make the non-cached-state tests use:
|
||||||
# network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
# network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
||||||
|
@ -338,8 +346,7 @@ jobs:
|
||||||
app_name: zebrad
|
app_name: zebrad
|
||||||
test_id: sync-to-checkpoint
|
test_id: sync-to-checkpoint
|
||||||
test_description: Test sync up to mandatory checkpoint
|
test_description: Test sync up to mandatory checkpoint
|
||||||
test_variables: '-e TEST_DISK_REBUILD=1 -e ZEBRA_FORCE_USE_COLOR=1'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_DISK_REBUILD=1 -e ZEBRA_FORCE_USE_COLOR=1'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: false
|
needs_zebra_state: false
|
||||||
saves_to_disk: true
|
saves_to_disk: true
|
||||||
force_save_to_disk: ${{ inputs.force_save_to_disk || false }}
|
force_save_to_disk: ${{ inputs.force_save_to_disk || false }}
|
||||||
|
@ -368,8 +375,7 @@ jobs:
|
||||||
app_name: zebrad
|
app_name: zebrad
|
||||||
test_id: sync-past-checkpoint
|
test_id: sync-past-checkpoint
|
||||||
test_description: Test full validation sync from a cached state
|
test_description: Test full validation sync from a cached state
|
||||||
test_variables: '-e TEST_CHECKPOINT_SYNC=1 -e ZEBRA_FORCE_USE_COLOR=1'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_CHECKPOINT_SYNC=1 -e ZEBRA_FORCE_USE_COLOR=1'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
saves_to_disk: false
|
saves_to_disk: false
|
||||||
disk_suffix: checkpoint
|
disk_suffix: checkpoint
|
||||||
|
@ -399,8 +405,7 @@ jobs:
|
||||||
test_description: Test a full sync up to the tip
|
test_description: Test a full sync up to the tip
|
||||||
# The value of FULL_SYNC_MAINNET_TIMEOUT_MINUTES is currently ignored.
|
# The value of FULL_SYNC_MAINNET_TIMEOUT_MINUTES is currently ignored.
|
||||||
# TODO: update the test to use {{ input.network }} instead?
|
# TODO: update the test to use {{ input.network }} instead?
|
||||||
test_variables: '-e FULL_SYNC_MAINNET_TIMEOUT_MINUTES=0 -e ZEBRA_FORCE_USE_COLOR=1'
|
test_variables: '-e NETWORK=Mainnet -e FULL_SYNC_MAINNET_TIMEOUT_MINUTES=0 -e ZEBRA_FORCE_USE_COLOR=1'
|
||||||
network: 'Mainnet'
|
|
||||||
# This test runs for longer than 6 hours, so it needs multiple jobs
|
# This test runs for longer than 6 hours, so it needs multiple jobs
|
||||||
is_long_test: true
|
is_long_test: true
|
||||||
needs_zebra_state: false
|
needs_zebra_state: false
|
||||||
|
@ -441,8 +446,7 @@ jobs:
|
||||||
app_name: zebrad
|
app_name: zebrad
|
||||||
test_id: update-to-tip
|
test_id: update-to-tip
|
||||||
test_description: Test syncing to tip with a Zebra tip state
|
test_description: Test syncing to tip with a Zebra tip state
|
||||||
test_variables: '-e TEST_UPDATE_SYNC=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_UPDATE_SYNC=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
# update the disk on every PR, to increase CI speed
|
# update the disk on every PR, to increase CI speed
|
||||||
saves_to_disk: true
|
saves_to_disk: true
|
||||||
|
@ -476,8 +480,7 @@ jobs:
|
||||||
test_id: generate-checkpoints-mainnet
|
test_id: generate-checkpoints-mainnet
|
||||||
test_description: Generate Zebra checkpoints on mainnet
|
test_description: Generate Zebra checkpoints on mainnet
|
||||||
# TODO: update the test to use {{ input.network }} instead?
|
# TODO: update the test to use {{ input.network }} instead?
|
||||||
test_variables: '-e GENERATE_CHECKPOINTS_MAINNET=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
test_variables: '-e NETWORK=Mainnet -e GENERATE_CHECKPOINTS_MAINNET=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
||||||
network: 'Mainnet'
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
# test-update-sync updates the disk on every PR, so we don't need to do it here
|
# test-update-sync updates the disk on every PR, so we don't need to do it here
|
||||||
saves_to_disk: false
|
saves_to_disk: false
|
||||||
|
@ -512,8 +515,7 @@ jobs:
|
||||||
test_id: full-sync-to-tip-testnet
|
test_id: full-sync-to-tip-testnet
|
||||||
test_description: Test a full sync up to the tip on testnet
|
test_description: Test a full sync up to the tip on testnet
|
||||||
# The value of FULL_SYNC_TESTNET_TIMEOUT_MINUTES is currently ignored.
|
# The value of FULL_SYNC_TESTNET_TIMEOUT_MINUTES is currently ignored.
|
||||||
test_variables: '-e FULL_SYNC_TESTNET_TIMEOUT_MINUTES=0 -e ZEBRA_FORCE_USE_COLOR=1'
|
test_variables: '-e NETWORK=Testnet -e FULL_SYNC_TESTNET_TIMEOUT_MINUTES=0 -e ZEBRA_FORCE_USE_COLOR=1'
|
||||||
network: 'Testnet'
|
|
||||||
# A full testnet sync could take 2-10 hours in April 2023.
|
# A full testnet sync could take 2-10 hours in April 2023.
|
||||||
# The time varies a lot due to the small number of nodes.
|
# The time varies a lot due to the small number of nodes.
|
||||||
is_long_test: true
|
is_long_test: true
|
||||||
|
@ -557,8 +559,7 @@ jobs:
|
||||||
app_name: zebrad
|
app_name: zebrad
|
||||||
test_id: generate-checkpoints-testnet
|
test_id: generate-checkpoints-testnet
|
||||||
test_description: Generate Zebra checkpoints on testnet
|
test_description: Generate Zebra checkpoints on testnet
|
||||||
test_variables: '-e GENERATE_CHECKPOINTS_TESTNET=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
test_variables: '-e NETWORK=Testnet -e GENERATE_CHECKPOINTS_TESTNET=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
||||||
network: 'Testnet'
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
# update the disk on every PR, to increase CI speed
|
# update the disk on every PR, to increase CI speed
|
||||||
# we don't have a test-update-sync-testnet job, so we need to update the disk here
|
# we don't have a test-update-sync-testnet job, so we need to update the disk here
|
||||||
|
@ -591,8 +592,7 @@ jobs:
|
||||||
app_name: lightwalletd
|
app_name: lightwalletd
|
||||||
test_id: lwd-full-sync
|
test_id: lwd-full-sync
|
||||||
test_description: Test lightwalletd full sync
|
test_description: Test lightwalletd full sync
|
||||||
test_variables: '-e TEST_LWD_FULL_SYNC=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_LWD_FULL_SYNC=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
# This test runs for longer than 6 hours, so it needs multiple jobs
|
# This test runs for longer than 6 hours, so it needs multiple jobs
|
||||||
is_long_test: true
|
is_long_test: true
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
|
@ -631,8 +631,7 @@ jobs:
|
||||||
app_name: lightwalletd
|
app_name: lightwalletd
|
||||||
test_id: lwd-update-sync
|
test_id: lwd-update-sync
|
||||||
test_description: Test lightwalletd update sync with both states
|
test_description: Test lightwalletd update sync with both states
|
||||||
test_variables: '-e TEST_LWD_UPDATE_SYNC=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_LWD_UPDATE_SYNC=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
needs_lwd_state: true
|
needs_lwd_state: true
|
||||||
# since we do a full sync in every PR, the new cached state will only be a few minutes newer than the original one
|
# since we do a full sync in every PR, the new cached state will only be a few minutes newer than the original one
|
||||||
|
@ -664,8 +663,7 @@ jobs:
|
||||||
app_name: lightwalletd
|
app_name: lightwalletd
|
||||||
test_id: fully-synced-rpc
|
test_id: fully-synced-rpc
|
||||||
test_description: Test lightwalletd RPC with a Zebra tip state
|
test_description: Test lightwalletd RPC with a Zebra tip state
|
||||||
test_variables: '-e TEST_LWD_RPC_CALL=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_LWD_RPC_CALL=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
saves_to_disk: false
|
saves_to_disk: false
|
||||||
disk_suffix: tip
|
disk_suffix: tip
|
||||||
|
@ -690,8 +688,7 @@ jobs:
|
||||||
app_name: lightwalletd
|
app_name: lightwalletd
|
||||||
test_id: lwd-send-transactions
|
test_id: lwd-send-transactions
|
||||||
test_description: Test sending transactions via lightwalletd
|
test_description: Test sending transactions via lightwalletd
|
||||||
test_variables: '-e TEST_LWD_TRANSACTIONS=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_LWD_TRANSACTIONS=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
needs_lwd_state: true
|
needs_lwd_state: true
|
||||||
saves_to_disk: false
|
saves_to_disk: false
|
||||||
|
@ -718,8 +715,7 @@ jobs:
|
||||||
app_name: lightwalletd
|
app_name: lightwalletd
|
||||||
test_id: lwd-grpc-wallet
|
test_id: lwd-grpc-wallet
|
||||||
test_description: Test gRPC calls via lightwalletd
|
test_description: Test gRPC calls via lightwalletd
|
||||||
test_variables: '-e TEST_LWD_GRPC=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_LWD_GRPC=1 -e ZEBRA_TEST_LIGHTWALLETD=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache -e LIGHTWALLETD_DATA_DIR=/var/cache/lwd-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
needs_lwd_state: true
|
needs_lwd_state: true
|
||||||
saves_to_disk: false
|
saves_to_disk: false
|
||||||
|
@ -750,8 +746,7 @@ jobs:
|
||||||
app_name: zebrad
|
app_name: zebrad
|
||||||
test_id: get-block-template
|
test_id: get-block-template
|
||||||
test_description: Test getblocktemplate RPC method via Zebra's rpc server
|
test_description: Test getblocktemplate RPC method via Zebra's rpc server
|
||||||
test_variables: '-e TEST_GET_BLOCK_TEMPLATE=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_GET_BLOCK_TEMPLATE=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
needs_lwd_state: false
|
needs_lwd_state: false
|
||||||
saves_to_disk: false
|
saves_to_disk: false
|
||||||
|
@ -777,8 +772,7 @@ jobs:
|
||||||
app_name: zebrad
|
app_name: zebrad
|
||||||
test_id: submit-block
|
test_id: submit-block
|
||||||
test_description: Test submitting blocks via Zebra's rpc server
|
test_description: Test submitting blocks via Zebra's rpc server
|
||||||
test_variables: '-e TEST_SUBMIT_BLOCK=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
test_variables: '-e NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }} -e TEST_SUBMIT_BLOCK=1 -e ZEBRA_FORCE_USE_COLOR=1 -e ZEBRA_CACHED_STATE_DIR=/var/cache/zebrad-cache'
|
||||||
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
|
|
||||||
needs_zebra_state: true
|
needs_zebra_state: true
|
||||||
needs_lwd_state: false
|
needs_lwd_state: false
|
||||||
saves_to_disk: false
|
saves_to_disk: false
|
||||||
|
|
|
@ -26,9 +26,6 @@ jobs:
|
||||||
dockerfile_path: ./docker/Dockerfile
|
dockerfile_path: ./docker/Dockerfile
|
||||||
dockerfile_target: runtime
|
dockerfile_target: runtime
|
||||||
image_name: zebra
|
image_name: zebra
|
||||||
network: Mainnet
|
|
||||||
rust_backtrace: '1'
|
|
||||||
zebra_skip_ipv6_tests: '1'
|
|
||||||
rust_log: info
|
rust_log: info
|
||||||
# This step needs access to Docker Hub secrets to run successfully
|
# This step needs access to Docker Hub secrets to run successfully
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -42,12 +39,7 @@ jobs:
|
||||||
dockerfile_target: runtime
|
dockerfile_target: runtime
|
||||||
image_name: zebra
|
image_name: zebra
|
||||||
tag_suffix: .experimental
|
tag_suffix: .experimental
|
||||||
network: Testnet
|
|
||||||
rpc_port: '18232'
|
|
||||||
features: "default-release-binaries getblocktemplate-rpcs"
|
features: "default-release-binaries getblocktemplate-rpcs"
|
||||||
test_features: ""
|
|
||||||
rust_backtrace: '1'
|
|
||||||
zebra_skip_ipv6_tests: '1'
|
|
||||||
rust_log: info
|
rust_log: info
|
||||||
# This step needs access to Docker Hub secrets to run successfully
|
# This step needs access to Docker Hub secrets to run successfully
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
|
@ -42,5 +42,4 @@ jobs:
|
||||||
no_cache: ${{ inputs.no_cache || false }}
|
no_cache: ${{ inputs.no_cache || false }}
|
||||||
rust_backtrace: full
|
rust_backtrace: full
|
||||||
rust_lib_backtrace: full
|
rust_lib_backtrace: full
|
||||||
colorbt_show_hidden: '1'
|
|
||||||
rust_log: info
|
rust_log: info
|
||||||
|
|
Loading…
Reference in New Issue