Skip to contentSkip to conversation

ts-xen-build: Force reliance on ipxe tarball

PATCH In review Ian Jackson 3 participants 3 messages Nov 5, 2018 – Nov 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-xen-build: Force reliance on ipxe tarball

xen.git/tools/firmware/etherboot/Makefile tries to get a tarball from xen-extfiles first and if that fails, tries cloning from ipxe.org.

ipxe.org is sometimes down (or half-down) and when that happens without a tarball the build breaks and is hard to fix.

We would like, therefore, to ensure that the tarball is always made before the commit which refers to it is in xen.git#master.

osstest has no knowledge of ipxe as a separate thing and just lets xen.git have whatever version is in Config.mk. So osstest never needs to specify particular ipxe version by hash, or the like.

So simply make osstest rely on the tarball existing, by having it specify a completely invalid URL for the git clone. This will detect attempts to update IPXE_GIT_TAG without making a corresponding tarball.

CC Paul Durrant <[email protected]>
CC Wei Liu <[email protected]>
---
 ts-xen-build | 1 +
 1 file changed, 1 insertion(+)
ts-xen-build +1 -0
index 48bf062f..6ddfc533 100755
@@ -95,6 +95,7 @@ sub checkout () {
 	echo >>.config debug=$debug_build
 	echo >>.config GIT_HTTP=y
 	echo >>.config LIBLEAFDIR_x86_64=lib
+	echo >>.config IPXE_GIT_URL=file:////osstest/IPXE-GIT-FORBIDDEN
 	echo >>.config KERNELS=''
 END
                (${enable_livepatch} ? <<END : '').
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 37 lines

-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 05 November 2018 18:36
To: [email protected]
Cc: Ian Jackson <[email protected]>; Paul Durrant <[email protected]>; Wei Liu <[email protected]>
Subject: [OSSTEST PATCH] ts-xen-build: Force reliance on ipxe tarball

xen.git/tools/firmware/etherboot/Makefile tries to get a tarball from xen-extfiles first and if that fails, tries cloning from ipxe.org.

ipxe.org is sometimes down (or half-down) and when that happens without a tarball the build breaks and is hard to fix.

We would like, therefore, to ensure that the tarball is always made before the commit which refers to it is in xen.git#master.

osstest has no knowledge of ipxe as a separate thing and just lets xen.git have whatever version is in Config.mk. So osstest never needs to specify particular ipxe version by hash, or the like.

So simply make osstest rely on the tarball existing, by having it specify a completely invalid URL for the git clone. This will detect attempts to update IPXE_GIT_TAG without making a corresponding tarball.

CC Paul Durrant <[email protected]>
CC Wei Liu <[email protected]>
---
 ts-xen-build | 1 +
 1 file changed, 1 insertion(+)
ts-xen-build +0 -0
index 48bf062f..6ddfc533 100755

ts-xen-build sub checkout () { · line 98

Quoted 4 lines
ts-xen-build +1 -0
@@ -95,6 +95,7 @@ sub checkout () {
 	echo >>.config debug=$debug_build
 	echo >>.config GIT_HTTP=y
 	echo >>.config LIBLEAFDIR_x86_64=lib
+	echo >>.config IPXE_GIT_URL=file:////osstest/IPXE-GIT-FORBIDDEN

Do you really need four '/'? I thought three would be enough for a FQPN. Since it's supposed to be an invalid URL though it doesn't really matter...

Quoted 5 lines
ts-xen-build +0 -1
 	echo >>.config KERNELS=''
 END
                (${enable_livepatch} ? <<END : '').
--

2.11.0

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

Acked-by on v1 1/1
#2 lore raw
In reply to Ian Jackson
Quoted 9 lines · Ian Jackson

xen.git/tools/firmware/etherboot/Makefile tries to get a tarball from xen-extfiles first and if that fails, tries cloning from ipxe.org.

ipxe.org is sometimes down (or half-down) and when that happens without a tarball the build breaks and is hard to fix.

We would like, therefore, to ensure that the tarball is always made before the commit which refers to it is in xen.git#master.

Quoted 9 lines

osstest has no knowledge of ipxe as a separate thing and just lets xen.git have whatever version is in Config.mk. So osstest never needs to specify particular ipxe version by hash, or the like.

So simply make osstest rely on the tarball existing, by having it specify a completely invalid URL for the git clone. This will detect attempts to update IPXE_GIT_TAG without making a corresponding tarball.

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