qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS
@ 2019-01-24  1:00 Philippe Mathieu-Daudé
  2019-01-24  1:00 ` [Qemu-devel] [PATCH 1/2] MAINTAINERS: Add an entry for scripts/archive-source.sh Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-01-24  1:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Daniel P . Berrange, Philippe Mathieu-Daudé,
	Alex Bennée

A minor change to speed up VM testing: clone submodules locally
(like we do with the QEMU repository).
Also add the script to MAINTAINERS.

Regards,

Phil.

Philippe Mathieu-Daudé (2):
  MAINTAINERS: Add an entry for scripts/archive-source.sh
  archive-source.sh: Clone the submodules locally

 MAINTAINERS               | 1 +
 scripts/archive-source.sh | 9 ++++-----
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 1/2] MAINTAINERS: Add an entry for scripts/archive-source.sh
  2019-01-24  1:00 [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Philippe Mathieu-Daudé
@ 2019-01-24  1:00 ` Philippe Mathieu-Daudé
  2019-01-24  1:00 ` [Qemu-devel] [PATCH 2/2] archive-source.sh: Clone the submodules locally Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-01-24  1:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Daniel P . Berrange, Philippe Mathieu-Daudé,
	Alex Bennée

The scripts/archive-source.sh is used by the VM tests, it makes
sense to add it in the "Build and test automation" section.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index af339b86db..f7c38848ca 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2479,6 +2479,7 @@ F: scripts/travis/
 F: .shippable.yml
 F: tests/docker/
 F: tests/vm/
+F: scripts/archive-source.sh
 W: https://travis-ci.org/qemu/qemu
 W: https://app.shippable.com/github/qemu/qemu
 W: http://patchew.org/QEMU/
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 2/2] archive-source.sh: Clone the submodules locally
  2019-01-24  1:00 [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Philippe Mathieu-Daudé
  2019-01-24  1:00 ` [Qemu-devel] [PATCH 1/2] MAINTAINERS: Add an entry for scripts/archive-source.sh Philippe Mathieu-Daudé
@ 2019-01-24  1:00 ` Philippe Mathieu-Daudé
  2019-01-24  8:31 ` [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Alex Bennée
  2019-02-01  6:21 ` no-reply
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-01-24  1:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Daniel P . Berrange, Philippe Mathieu-Daudé,
	Alex Bennée

We cloned the QEMU repository from the local storage. Since the
submodules are also available there, clone them too. This is
quicker and reduce network use.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 scripts/archive-source.sh | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh
index 62bd22578b..e80c47caa3 100755
--- a/scripts/archive-source.sh
+++ b/scripts/archive-source.sh
@@ -38,6 +38,10 @@ else
 fi
 git clone --shared . "$vroot_dir"
 test $? -ne 0 && error "failed to clone into '$vroot_dir'"
+for sm in $submodules; do
+    git clone --shared "$sm" "$vroot_dir/$sm"
+    test $? -ne 0 && error "failed to clone submodule $sm"
+done
 
 cd "$vroot_dir"
 test $? -ne 0 && error "failed to change into '$vroot_dir'"
@@ -45,11 +49,6 @@ test $? -ne 0 && error "failed to change into '$vroot_dir'"
 git checkout $HEAD
 test $? -ne 0 && error "failed to checkout $HEAD revision"
 
-for sm in $submodules; do
-    git submodule update --init $sm
-    test $? -ne 0 && error "failed to init submodule $sm"
-done
-
 if test -n "$submodules"; then
     {
         git ls-files || error "git ls-files failed"
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS
  2019-01-24  1:00 [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Philippe Mathieu-Daudé
  2019-01-24  1:00 ` [Qemu-devel] [PATCH 1/2] MAINTAINERS: Add an entry for scripts/archive-source.sh Philippe Mathieu-Daudé
  2019-01-24  1:00 ` [Qemu-devel] [PATCH 2/2] archive-source.sh: Clone the submodules locally Philippe Mathieu-Daudé
@ 2019-01-24  8:31 ` Alex Bennée
  2019-02-01  6:21 ` no-reply
  3 siblings, 0 replies; 5+ messages in thread
From: Alex Bennée @ 2019-01-24  8:31 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: qemu-devel, Fam Zheng, Daniel P . Berrange


Philippe Mathieu-Daudé <philmd@redhat.com> writes:

> A minor change to speed up VM testing: clone submodules locally
> (like we do with the QEMU repository).
> Also add the script to MAINTAINERS.
<snip>

Queued to testing/next, thanks.

--
Alex Bennée

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS
  2019-01-24  1:00 [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2019-01-24  8:31 ` [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Alex Bennée
@ 2019-02-01  6:21 ` no-reply
  3 siblings, 0 replies; 5+ messages in thread
From: no-reply @ 2019-02-01  6:21 UTC (permalink / raw)
  To: philmd; +Cc: fam, qemu-devel

Patchew URL: https://patchew.org/QEMU/20190124010023.24397-1-philmd@redhat.com/



Hi,

This series failed the docker-mingw@fedora build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-mingw@fedora SHOW_ENV=1 J=14
=== TEST SCRIPT END ===




The full log is available at
http://patchew.org/logs/20190124010023.24397-1-philmd@redhat.com/testing.docker-mingw@fedora/?type=message.
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-01  6:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-24  1:00 [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Philippe Mathieu-Daudé
2019-01-24  1:00 ` [Qemu-devel] [PATCH 1/2] MAINTAINERS: Add an entry for scripts/archive-source.sh Philippe Mathieu-Daudé
2019-01-24  1:00 ` [Qemu-devel] [PATCH 2/2] archive-source.sh: Clone the submodules locally Philippe Mathieu-Daudé
2019-01-24  8:31 ` [Qemu-devel] [PATCH 0/2] archive-source.sh: Clone the submodules locally and add to MAINTAINERS Alex Bennée
2019-02-01  6:21 ` no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).