Remove p2pd from the build recipes
This commit is contained in:
parent
4623aa81ec
commit
d7c36a677e
|
@ -9,7 +9,6 @@ init: # Scripts called at the very beginning
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- NimBinaries
|
- NimBinaries
|
||||||
- p2pdCache
|
|
||||||
- jsonTestsCache
|
- jsonTestsCache
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -36,8 +35,8 @@ build_script:
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
# the "go-checks" target fails in AppVeyor, for some reason; easier to disable than to debug
|
# the "go-checks" target fails in AppVeyor, for some reason; easier to disable than to debug
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_GO_CHECKS=1 P2PD_CACHE=p2pdCache LOG_LEVEL=TRACE
|
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_GO_CHECKS=1 LOG_LEVEL=TRACE
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_GO_CHECKS=1 P2PD_CACHE=p2pdCache LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image"
|
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_GO_CHECKS=1 LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image"
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_TEST_FIXTURES_SCRIPT=1 DISABLE_GO_CHECKS=1 test
|
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_TEST_FIXTURES_SCRIPT=1 DISABLE_GO_CHECKS=1 test
|
||||||
|
|
||||||
deploy: off
|
deploy: off
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -37,7 +37,6 @@ TOOLS_CSV := $(subst $(SPACE),$(COMMA),$(TOOLS))
|
||||||
build-system-checks \
|
build-system-checks \
|
||||||
deps \
|
deps \
|
||||||
update \
|
update \
|
||||||
p2pd \
|
|
||||||
test \
|
test \
|
||||||
$(TOOLS) \
|
$(TOOLS) \
|
||||||
clean_eth2_network_simulation_files \
|
clean_eth2_network_simulation_files \
|
||||||
|
@ -80,7 +79,7 @@ build-system-checks:
|
||||||
}; \
|
}; \
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
deps: | deps-common beacon_chain.nims p2pd
|
deps: | deps-common beacon_chain.nims
|
||||||
ifneq ($(USE_LIBBACKTRACE), 0)
|
ifneq ($(USE_LIBBACKTRACE), 0)
|
||||||
deps: | libbacktrace
|
deps: | libbacktrace
|
||||||
endif
|
endif
|
||||||
|
@ -98,12 +97,6 @@ beacon_chain.nims:
|
||||||
libbacktrace:
|
libbacktrace:
|
||||||
+ $(MAKE) -C vendor/nim-libbacktrace BUILD_CXX_LIB=0
|
+ $(MAKE) -C vendor/nim-libbacktrace BUILD_CXX_LIB=0
|
||||||
|
|
||||||
P2PD_CACHE :=
|
|
||||||
p2pd: | go-checks
|
|
||||||
BUILD_MSG="$(BUILD_MSG) $@" \
|
|
||||||
V=$(V) \
|
|
||||||
$(ENV_SCRIPT) $(BUILD_SYSTEM_DIR)/scripts/build_p2pd.sh "$(P2PD_CACHE)"
|
|
||||||
|
|
||||||
# Windows 10 with WSL enabled, but no distro installed, fails if "../../nimble.sh" is executed directly
|
# Windows 10 with WSL enabled, but no distro installed, fails if "../../nimble.sh" is executed directly
|
||||||
# in a Makefile recipe but works when prefixing it with `bash`. No idea how the PATH is overridden.
|
# in a Makefile recipe but works when prefixing it with `bash`. No idea how the PATH is overridden.
|
||||||
DISABLE_TEST_FIXTURES_SCRIPT := 0
|
DISABLE_TEST_FIXTURES_SCRIPT := 0
|
||||||
|
@ -121,7 +114,7 @@ $(TOOLS): | build deps
|
||||||
clean_eth2_network_simulation_files:
|
clean_eth2_network_simulation_files:
|
||||||
rm -rf tests/simulation/{data,validators}
|
rm -rf tests/simulation/{data,validators}
|
||||||
|
|
||||||
eth2_network_simulation: | build deps p2pd clean_eth2_network_simulation_files process_dashboard
|
eth2_network_simulation: | build deps clean_eth2_network_simulation_files process_dashboard
|
||||||
+ GIT_ROOT="$$PWD" NIMFLAGS="$(NIMFLAGS)" LOG_LEVEL="$(LOG_LEVEL)" tests/simulation/start.sh
|
+ GIT_ROOT="$$PWD" NIMFLAGS="$(NIMFLAGS)" LOG_LEVEL="$(LOG_LEVEL)" tests/simulation/start.sh
|
||||||
|
|
||||||
clean-testnet0:
|
clean-testnet0:
|
||||||
|
|
|
@ -17,12 +17,6 @@ jobs:
|
||||||
key: NimBinaries | $(Agent.OS) | $(PLATFORM) | "$(Build.SourceBranchName)" | "v2"
|
key: NimBinaries | $(Agent.OS) | $(PLATFORM) | "$(Build.SourceBranchName)" | "v2"
|
||||||
path: NimBinaries
|
path: NimBinaries
|
||||||
|
|
||||||
- task: CacheBeta@1
|
|
||||||
displayName: 'cache p2pd binaries'
|
|
||||||
inputs:
|
|
||||||
key: p2pdCache | $(Agent.OS) | $(PLATFORM) | "$(Build.SourceBranchName)"
|
|
||||||
path: p2pdCache
|
|
||||||
|
|
||||||
- task: CacheBeta@1
|
- task: CacheBeta@1
|
||||||
displayName: 'cache official test fixtures'
|
displayName: 'cache official test fixtures'
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -71,8 +65,8 @@ jobs:
|
||||||
scripts/setup_official_tests.sh jsonTestsCache
|
scripts/setup_official_tests.sh jsonTestsCache
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} CI_CACHE=NimBinaries update
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} CI_CACHE=NimBinaries update
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} fetch-dlls
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} fetch-dlls
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} P2PD_CACHE=p2pdCache LOG_LEVEL=TRACE
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} LOG_LEVEL=TRACE
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} P2PD_CACHE=p2pdCache LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image"
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} LOG_LEVEL=TRACE NIMFLAGS="-d:testnet_servers_image"
|
||||||
file build/beacon_node
|
file build/beacon_node
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
||||||
displayName: 'build and test'
|
displayName: 'build and test'
|
||||||
|
|
|
@ -15,11 +15,11 @@ RUN cd /root \
|
||||||
&& make -j$(nproc) update \
|
&& make -j$(nproc) update \
|
||||||
&& make deps
|
&& make deps
|
||||||
|
|
||||||
# Please note that the commands above have the goal of caching the compilation
|
# Please note that the commands above have the goal of caching the
|
||||||
# of Nim and p2pd, but don't depend on the current git revision. This means
|
# compilation of Nim, but don't depend on the current git revision.
|
||||||
# that the cache can become outdated over time and you'll start seeing Nim
|
# This means that the cache can become outdated over time and you'll
|
||||||
# being compiled on every run. If this happens, just prune your docker cache
|
# start seeing Nim being compiled on every run. If this happens, just
|
||||||
# to get a fresh up-to-date version of Nim and p2pd.
|
# prune your docker cache to get a fresh up-to-date version of Nim.
|
||||||
ARG GIT_REVISION
|
ARG GIT_REVISION
|
||||||
ARG NETWORK_NIM_FLAGS
|
ARG NETWORK_NIM_FLAGS
|
||||||
ARG MARCH_NIM_FLAGS
|
ARG MARCH_NIM_FLAGS
|
||||||
|
@ -43,7 +43,7 @@ RUN apt-get -qq update \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
# "COPY" creates new image layers, so we cram all we can into one command
|
# "COPY" creates new image layers, so we cram all we can into one command
|
||||||
COPY --from=build /root/nim-beacon-chain/docker/run_in_docker.sh /root/nim-beacon-chain/build/beacon_node /root/nim-beacon-chain/vendor/go/bin/p2pd /usr/bin/
|
COPY --from=build /root/nim-beacon-chain/docker/run_in_docker.sh /root/nim-beacon-chain/build/beacon_node /usr/bin/
|
||||||
|
|
||||||
MAINTAINER Zahary Karadjov <zahary@status.im>
|
MAINTAINER Zahary Karadjov <zahary@status.im>
|
||||||
LABEL description="Nimbus installation that can act as an ETH2 network bootstrap node."
|
LABEL description="Nimbus installation that can act as an ETH2 network bootstrap node."
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
# Deal with previous execution of the deamon leaving behind
|
# Deal with previous execution of the deamon leaving behind
|
||||||
# socket files that prevent the deamon from launching again
|
# socket files that prevent the deamon from launching again
|
||||||
# inside the container:
|
# inside the container:
|
||||||
killall p2pd
|
|
||||||
rm -rf /tmp/*
|
rm -rf /tmp/*
|
||||||
|
|
||||||
beacon_node "$@"
|
beacon_node "$@"
|
||||||
|
|
|
@ -141,10 +141,9 @@ BOOTSTRAP_IP="127.0.0.1"
|
||||||
--genesis-offset=5 # Delay in seconds
|
--genesis-offset=5 # Delay in seconds
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
killall beacon_node p2pd &>/dev/null || true
|
killall beacon_node &>/dev/null || true
|
||||||
sleep 2
|
sleep 2
|
||||||
killall -9 beacon_node p2pd &>/dev/null || true
|
killall -9 beacon_node &>/dev/null || true
|
||||||
rm -f /tmp/nim-p2pd-*.sock || true
|
|
||||||
}
|
}
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
@ -152,9 +151,6 @@ PIDS=""
|
||||||
NODES_WITH_VALIDATORS=${NODES_WITH_VALIDATORS:-4}
|
NODES_WITH_VALIDATORS=${NODES_WITH_VALIDATORS:-4}
|
||||||
VALIDATORS_PER_NODE=$(( $RANDOM_VALIDATORS / $NODES_WITH_VALIDATORS ))
|
VALIDATORS_PER_NODE=$(( $RANDOM_VALIDATORS / $NODES_WITH_VALIDATORS ))
|
||||||
|
|
||||||
# for the p2pd path
|
|
||||||
source env.sh
|
|
||||||
|
|
||||||
for NUM_NODE in $(seq 0 $(( ${NUM_NODES} - 1 ))); do
|
for NUM_NODE in $(seq 0 $(( ${NUM_NODES} - 1 ))); do
|
||||||
if [[ ${NUM_NODE} == 0 ]]; then
|
if [[ ${NUM_NODE} == 0 ]]; then
|
||||||
BOOTSTRAP_ARG=""
|
BOOTSTRAP_ARG=""
|
||||||
|
|
Loading…
Reference in New Issue