Skip to contentSkip to conversation

osstest: make git proxy setup common

PATCH In review Roger Pau Monne 2 participants 9 messages Aug 20, 2018 – Aug 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 osstest: make git proxy setup common

By moving it into TestSupport. No functional change.

---
Cc: Ian Jackson <[email protected]>

---
 Osstest/TestSupport.pm | 20 ++++++++++++++++++++
 ts-xen-build-prep      | 19 -------------------
 2 files changed, 20 insertions(+), 19 deletions(-)
Osstest/TestSupport.pm +20 -0
index ea546011..f8ef8233 100644
@@ -138,6 +138,7 @@ BEGIN {
                       host_install_postboot_complete
                       target_core_dump_setup
                       sha256file host_shared_mark_ready
+                      gitcache_setup
                       );
     %EXPORT_TAGS = ( );
 
@@ -2903,4 +2904,23 @@ sub host_shared_mark_ready($$) {
                                               $sharetype);
 }
 
+sub gitcache_setup () {
+    my $proxy = $c{GitCacheProxy};
+    return unless $proxy;
+
+    logm("setting up git cacheing proxy $proxy");
+
+    my $gitcfg = '';
+    foreach my $urlprefix (qw(git:// http:// https://)) {
+        $gitcfg .= <<END
+[url "${proxy}$urlprefix"]
+        insteadOf = $urlprefix
+[url "${proxy}$urlprefix"]
+        insteadOf = ${proxy}$urlprefix
+END
+    }
+    target_putfilecontents_stash($ho,30,$gitcfg,"/home/osstest/.gitconfig",
+                                 'home-osstest-gitconfig');
+}
+
 1;
ts-xen-build-prep +0 -19
index bff5c927..0ec81000 100755
@@ -245,25 +245,6 @@ sub ccache_setup () {
     }
 }
 
-sub gitcache_setup () {
-    my $proxy = $c{GitCacheProxy};
-    return unless $proxy;
-
-    logm("setting up git cacheing proxy $proxy");
-
-    my $gitcfg = '';
-    foreach my $urlprefix (qw(git:// http:// https://)) {
-	$gitcfg .= <<END
-[url "${proxy}$urlprefix"]
-        insteadOf = $urlprefix
-[url "${proxy}$urlprefix"]
-        insteadOf = ${proxy}$urlprefix
-END
-    }
-    target_putfilecontents_stash($ho,30,$gitcfg,"/home/osstest/.gitconfig",
-				 'home-osstest-gitconfig');
-}
-
 if (!$ho->{Flags}{'no-reinstall'}) {
     determine_vg_lv();
     lvcreate();
Signature · 7 lines
2.18.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw

PATCH 2/2 osstest: configure git proxy for FreeBSD

---
Cc: Ian Jackson <[email protected]>

---
 ts-build-prep-freebsd | 1 +
 1 file changed, 1 insertion(+)
ts-build-prep-freebsd +1 -0
index e3220fa8..0ed30be4 100755
@@ -38,6 +38,7 @@ sub install_deps () {
 }
 
 install_deps();
+gitcache_setup();
 
 our $path_prefix = $r{"freebsd_distpath"} ||
                    get_stashed("path_freebsddist", $r{"freebsdbuildjob"});
Signature · 7 lines
2.18.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD

In reply to Roger Pau Monne

Roger Pau Monne writes ("[PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 1 line

Thanks.

Do you want me to push these to pretest soon ?

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw

Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD

Quoted 8 lines · Ian Jackson

Roger Pau Monne writes ("[PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 1 line

Thanks.

Do you want me to push these to pretest soon ?

If you could, yes please. I'm hoping this will unblock the FreeBSD build, or at least get it closer to unblocking :)

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw

Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD

Roger Pau Monné writes ("Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 5 lines · Ian Jackson
Quoted 1 line

Do you want me to push these to pretest soon ?

If you could, yes please. I'm hoping this will unblock the FreeBSD build, or at least get it closer to unblocking :)

Right, done.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#5 lore raw

Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD

In reply to Roger Pau Monné

Roger Pau Monné writes ("Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 12 lines · Ian Jackson
Quoted 8 lines

Roger Pau Monne writes ("[PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 1 line

Thanks.

Do you want me to push these to pretest soon ?

If you could, yes please. I'm hoping this will unblock the FreeBSD build, or at least get it closer to unblocking :)

mariner:testing.git> ./mg-allocate -l
Global symbol "$ho" requires explicit package name at Osstest/TestSupport.pm line 2922. Compilation failed in require at ./mg-allocate line 86.
BEGIN failed--compilation aborted at ./mg-allocate line 86. mariner:testing.git>

And similar things from cron. I have rewound pretest and will await updated patches...

Regards,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#6 lore raw

Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD

Quoted 14 lines · Ian Jackson

Roger Pau Monné writes ("Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 12 lines · Ian Jackson
Quoted 8 lines

Roger Pau Monne writes ("[PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 1 line

Thanks.

Do you want me to push these to pretest soon ?

If you could, yes please. I'm hoping this will unblock the FreeBSD build, or at least get it closer to unblocking :)

Quoted 8 lines

mariner:testing.git> ./mg-allocate -l
Global symbol "$ho" requires explicit package name at Osstest/TestSupport.pm line 2922. Compilation failed in require at ./mg-allocate line 86.
BEGIN failed--compilation aborted at ./mg-allocate line 86. mariner:testing.git>

And similar things from cron. I have rewound pretest and will await updated patches...

Sorry, here is a working branch:

git://xenbits.xen.org/people/royger/osstest.git git-proxy

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#7 lore raw

Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD

Roger Pau Monné writes ("Re: [PATCH 2/2] osstest: configure git proxy for FreeBSD"):

Quoted 7 lines · Ian Jackson
Quoted 2 lines

And similar things from cron. I have rewound pretest and will await updated patches...

Sorry, here is a working branch:

git://xenbits.xen.org/people/royger/osstest.git git-proxy

Thanks, that seems better. I have added my acks and pushed it.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel