Skip to contentSkip to conversation

Docker patches

GIT PULL Applied Fam Zheng 2 participants 7 messages Oct 20, 2017

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

The following changes since commit 063833a6ec2a6747e27c5f9866bb44c7e8de1265:

Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging (2017-10-19 18:42:51 +0100)

are available in the git repository at:

git://github.com/famz/qemu.git tags/docker-pull-request

for you to fetch changes up to 6a2e11974fa6c4eaee6b2b156b1b4e03ca983bab:

docker: Fix PATH for ccache (2017-10-20 14:28:50 +0800)

----------------------------------------------------------------

----------------------------------------------------------------

Fam Zheng (2):
docker: Don't allocate tty unless DEBUG=1
docker: Fix PATH for ccache

Greg Kurz (1):
docker: fix out-of-tree 'make docker-test-build@debian-powerpc-cross'

Paolo Bonzini (1):
docker: allow running from srcdir != builddir build

Peter Xu (1):
docker: cleanup temp directory after test

 tests/docker/Makefile.include | 12 +++++++-----
 tests/docker/run              |  2 +-
 2 files changed, 8 insertions(+), 6 deletions(-)
Signature · 1 line
2.13.5
author
#1 lore raw

[Qemu-devel] [PULL 2/5] docker: cleanup temp directory after test

From: Peter Xu <[email protected]>

There are temp directories named "docker-src.*" after doing docker tests. I don't see much point in keeping that (it only contains the qemu.tar which is exactly current tree, and the copied "run" file). Let's remove it after test finished.

CC "Alex Bennée" <[email protected]>
CC Fam Zheng <[email protected]>
CC "Philippe Mathieu-Daudé" <[email protected]>

Message-Id: <[email protected]>

---
 tests/docker/Makefile.include | 2 ++
 1 file changed, 2 insertions(+)
tests/docker/Makefile.include +2 -0
index ab939f2bec..38874ec03d 100644
@@ -151,6 +151,8 @@ docker-run: docker-qemu-src
 			$(IMAGE) 					\
 			/var/tmp/qemu/run 				\
 			$(TEST), "  RUN $(TEST) in ${IMAGE}")
+	$(call quiet-command, rm -r $(DOCKER_SRC_COPY), \
+		"  CLEANUP $(DOCKER_SRC_COPY)")
 
 # Run targets:
 #
Signature · 1 line
2.13.5
author
#2 lore raw

[Qemu-devel] [PULL 1/5] docker: Don't allocate tty unless DEBUG=1

In reply to Fam Zheng

The existence of tty in the container seems to urge gcc into colorizing the errors, but the escape chars will clutter the report once turned into email replies on patchew. Move -t to debug mode.

Message-Id: <[email protected]>

---
 tests/docker/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/docker/Makefile.include +2 -2
index 6f9ea196a7..ab939f2bec 100644
@@ -134,10 +134,10 @@ docker-run: docker-qemu-src
 			"  COPYING $(EXECUTABLE) to $(IMAGE)"))
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
-			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
+			$(if $(NOUSER),,-u $(shell id -u)) 		\
 			--security-opt seccomp=unconfined		\
 			$(if $V,,--rm) 					\
-			$(if $(DEBUG),-i,)				\
+			$(if $(DEBUG),-ti,)				\
 			$(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=$(NETWORK)),--net=none) \
 			-e TARGET_LIST=$(TARGET_LIST) 			\
 			-e EXTRA_CONFIGURE_OPTS="$(EXTRA_CONFIGURE_OPTS)" \
Signature · 1 line
2.13.5
author
#3 lore raw

[Qemu-devel] [PULL 3/5] docker: allow running from srcdir != builddir build

In reply to Fam Zheng

From: Paolo Bonzini <[email protected]>

The new script uses "git submodule", which is picky about being invoked from the top of the git checkout. Invoke the script from $(SRC_PATH) to avoid git's wrath.

Fixes b7f404201e45e99da23b9764dec27ce5f965cdcd
Cc Fam Zheng <[email protected]>

Message-Id: <[email protected]>

---
 tests/docker/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/docker/Makefile.include +2 -2
index 38874ec03d..02cd520590 100644
@@ -18,11 +18,11 @@ TESTS ?= %
 IMAGES ?= %
 
 CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$)
-DOCKER_SRC_COPY := docker-src.$(CUR_TIME)
+DOCKER_SRC_COPY := $(BUILD_DIR)/docker-src.$(CUR_TIME)
 
 $(DOCKER_SRC_COPY):
 	@mkdir $@
-	$(call quiet-command, $(SRC_PATH)/scripts/archive-source.sh $@/qemu.tar, \
+	$(call quiet-command, cd $(SRC_PATH) && scripts/archive-source.sh $@/qemu.tar, \
 		"GEN", "$@/qemu.tar")
 	$(call quiet-command, cp $(SRC_PATH)/tests/docker/run $@/run, \
 		"COPY","RUNNER")
Signature · 1 line
2.13.5
author
#4 lore raw

[Qemu-devel] [PULL 4/5] docker: fix out-of-tree 'make docker-test-build@debian-powerpc-cross'

In reply to Fam Zheng

From: Greg Kurz <[email protected]>

Without this patch, it fails with:

IOError: [Errno 2] No such file or directory:
'tests/docker/dockerfiles/debian-apt-fake.sh'

Message-Id: <[email protected]>

---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +1 -1
index 02cd520590..f1a398e9fa 100644
@@ -44,7 +44,7 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker
 		$(if $(EXECUTABLE),--include-executable=$(EXECUTABLE)),\
 		"BUILD","$*")
 
-docker-image-debian-powerpc-cross: EXTRA_FILES:=tests/docker/dockerfiles/debian-apt-fake.sh
+docker-image-debian-powerpc-cross: EXTRA_FILES:=$(SRC_PATH)/tests/docker/dockerfiles/debian-apt-fake.sh
 
 # Enforce dependancies for composite images
 docker-image-debian: docker-image-debian9
Signature · 1 line
2.13.5
author
#5 lore raw

[Qemu-devel] [PULL 5/5] docker: Fix PATH for ccache

In reply to Fam Zheng

Before bcd7f06f57fb6f780a3e2f7a46c22b6f6c8238aa we source /etc/profile so the PATH included the right paths to ccache binaries. Now we need to update $PATH explicitly from run script.

Keep the old /usr/lib around just so that in the future, ccache from 32 bit images will just work.

Message-Id: <[email protected]>

---
 tests/docker/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/run +1 -1
index 642084bcb8..9dd362bb98 100755
@@ -18,7 +18,7 @@ fi
 BASE="$(dirname $(readlink -e $0))"
 
 # Prepare the environment
-export PATH=/usr/lib/ccache:$PATH
+export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
 
 if test -n "$J"; then
     export MAKEFLAGS="$MAKEFLAGS -j$J"
Signature · 1 line
2.13.5
#6 lore raw
In reply to Fam Zheng
Quoted 8 lines · Fam Zheng

The following changes since commit 063833a6ec2a6747e27c5f9866bb44c7e8de1265:

Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging (2017-10-19 18:42:51 +0100)

are available in the git repository at:

git://github.com/famz/qemu.git tags/docker-pull-request

Quoted 7 lines

for you to fetch changes up to 6a2e11974fa6c4eaee6b2b156b1b4e03ca983bab:

docker: Fix PATH for ccache (2017-10-20 14:28:50 +0800)

----------------------------------------------------------------

----------------------------------------------------------------

Applied, thanks.

-- PMM