Skip to content

Commit

Permalink
parallel building fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Azovtsev committed Feb 15, 2025
1 parent 6c32bf1 commit 3b2f89c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zombienet/docker/Makefile.include/variables.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ OS_IMAGE_TAG_WITH_HASH := $(OS_IMAGE_TAG)@sha256:$(OS_IMAGE_HASH)
OS_IMAGE_SHORT_HASH := $(shell echo $(OS_IMAGE_HASH) | cut -c1-7)
USER_ID ?= $(shell id -u)
GROUP_ID ?= $(shell id -g)
DIR_PATH_HASH := $(shell echo -n $(CURDIR) | sha1sum | cut -c1-8 )
# For Docker build
# USER_ID = 5555
# GROUP_ID = 5555
Expand All @@ -40,7 +41,7 @@ SCCACHE_GCS_BUCKET ?=
SCCACHE_GCS_KEY_PREFIX ?= polkadot_builder_$(ARCHITECTURE)
POLKADOT_REPO_URL ?= https://github.com/paritytech/polkadot-sdk.git
POLKADOT_REPO_DIR ?= ./polkadot-sdk
POLKADOT_BUILD_CONTAINER_NAME := polkadot_build
POLKADOT_BUILD_CONTAINER_NAME := polkadot_build-$(DIR_PATH_HASH)

RESULT_BIN_NAMES=polkadot polkadot-parachain malus undying-collator adder-collator polkadot-execute-worker polkadot-prepare-worker
BUILD_COMMANDS = \
Expand All @@ -64,7 +65,8 @@ POLKADOT_BINARY_PACKAGE_VERSION ?=
# COPY_LOGS_TO_HOST: boolean flag to determine whether to copy logs to host
COPY_LOGS_TO_HOST ?= true
HOST_LOGS_PATH ?= /tmp/test_logs
CONTAINER_NAME ?= zombienet-test
# DIR_PATH_HASH Need for run two github actions in parallel
CONTAINER_NAME ?= zombienet-test-$(DIR_PATH_HASH)

# tests Variables
ZOMBIE_TESTER_IMAGE_TAG ?= latest
Expand Down

0 comments on commit 3b2f89c

Please sign in to comment.