mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-18 09:27:05 +00:00
Disable discovery5 service for REST test. (#2738)
Run REST test before Finalization test.
This commit is contained in:
parent
941cc125a3
commit
4ba69bf54d
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -44,6 +44,10 @@ def runStages() {
|
|||||||
sh "make -j${env.NPROC} DISABLE_TEST_FIXTURES_SCRIPT=1 test"
|
sh "make -j${env.NPROC} DISABLE_TEST_FIXTURES_SCRIPT=1 test"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage("REST test suite") {
|
||||||
|
sh "./tests/simulation/restapi.sh --data-dir resttest0_data --base-port \$(( 9100 + EXECUTOR_NUMBER * 100 )) --base-rest-port \$(( 7100 + EXECUTOR_NUMBER * 100 )) --base-metrics-port \$(( 8108 + EXECUTOR_NUMBER * 100 )) --sleep-timeout 30"
|
||||||
|
}
|
||||||
|
|
||||||
stage("Testnet finalization") {
|
stage("Testnet finalization") {
|
||||||
// EXECUTOR_NUMBER will be 0 or 1, since we have 2 executors per Jenkins node
|
// EXECUTOR_NUMBER will be 0 or 1, since we have 2 executors per Jenkins node
|
||||||
sh """#!/bin/bash
|
sh """#!/bin/bash
|
||||||
@ -52,10 +56,6 @@ def runStages() {
|
|||||||
./scripts/launch_local_testnet.sh --nodes 4 --stop-at-epoch 5 --log-level DEBUG --disable-htop --data-dir local_testnet1_data --base-port \$(( 9000 + EXECUTOR_NUMBER * 100 )) --base-rpc-port \$(( 7000 + EXECUTOR_NUMBER * 100 )) --base-metrics-port \$(( 8008 + EXECUTOR_NUMBER * 100 )) --timeout 2400 -- --verify-finalization --discv5:no
|
./scripts/launch_local_testnet.sh --nodes 4 --stop-at-epoch 5 --log-level DEBUG --disable-htop --data-dir local_testnet1_data --base-port \$(( 9000 + EXECUTOR_NUMBER * 100 )) --base-rpc-port \$(( 7000 + EXECUTOR_NUMBER * 100 )) --base-metrics-port \$(( 8008 + EXECUTOR_NUMBER * 100 )) --timeout 2400 -- --verify-finalization --discv5:no
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("REST test suite") {
|
|
||||||
sh "./tests/simulation/restapi.sh --data-dir resttest0_data --base-port \$(( 9100 + EXECUTOR_NUMBER * 100 )) --base-rest-port \$(( 7100 + EXECUTOR_NUMBER * 100 )) --base-metrics-port \$(( 8108 + EXECUTOR_NUMBER * 100 )) --sleep-timeout 30"
|
|
||||||
}
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
// we need to rethrow the exception here
|
// we need to rethrow the exception here
|
||||||
throw e
|
throw e
|
||||||
|
@ -195,6 +195,7 @@ ${NIMBUS_BEACON_NODE_BIN} \
|
|||||||
--rest \
|
--rest \
|
||||||
--rest-address=${REST_ADDRESS} \
|
--rest-address=${REST_ADDRESS} \
|
||||||
--rest-port=${BASE_REST_PORT} \
|
--rest-port=${BASE_REST_PORT} \
|
||||||
|
--discv5=no \
|
||||||
${ADDITIONAL_BEACON_NODE_ARGS} \
|
${ADDITIONAL_BEACON_NODE_ARGS} \
|
||||||
"$@" > ${LOG_NODE_FILE} 2>&1 &
|
"$@" > ${LOG_NODE_FILE} 2>&1 &
|
||||||
BEACON_NODE_STATUS=$?
|
BEACON_NODE_STATUS=$?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user