* [PATCH OSSTEST] ap-fetch-version-old: Fix qemu branch handling after mergin of qemu trees
@ 2015-10-23 10:06 Ian Campbell
2015-10-23 10:23 ` Ian Jackson
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2015-10-23 10:06 UTC (permalink / raw)
To: ian.jackson, xen-devel; +Cc: Ian Campbell
ap-fetch-version-old should always reference the output gate, but
99e92a6b3991 "Switch to merged qemu-xen{,-traditional}.git trees"
switched it to use TREE_QEMU_UPSTREAM directly, which can be
overridden by cr-daily-branch. This broke at least when
OSSTEST_BASELINES_ONLY=y since "cr-daily-branch qemu-mainline" ends up looking
for an "upstream-tested" branch in the qemu.org git tree, when it should be
looking at our output tree on xenbits.
Follow pattern of TREE_LINUX and set BASE_TREE_QEMU_UPSTREAM to the
output gate and then conditionally set TREE_QEMU_UPSTREAM to the
BASE_TREE if it is not already set. Switch ap-fetch-version-old to use
BASE_TREE.
I have confirmed that for
qemu-{mainline,upstream-unstable,4.6-testing} both
TREE_QEMU_UPSTREAM=git://git.qemu.org/qemu.git OSSTEST_BASELINES_ONLY=y ./ap-fetch-version-old $branch
and
TREE_QEMU_UPSTREAM=git://git.qemu.org/qemu.git ./ap-fetch-version-old $branch
are consulting the correct trees (and produce the same answers) and that
./ap-fetch-version $branch is also correct in each case.
I have done a dummy cr-daily-branch qemu-mainline (with standalone make-flight)
with baselines forced and it now appears correct.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
We should consider force pushing to at least the mainline repo, if not
the Cambridge instance too.
---
ap-common | 6 +++++-
ap-fetch-version-old | 6 +++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ap-common b/ap-common
index 059b4b2..fc646ee 100644
--- a/ap-common
+++ b/ap-common
@@ -85,10 +85,14 @@ fi
: ${TREEBASE_LINUX_XCP:=http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}
-: ${TREE_QEMU_UPSTREAM:=git://xenbits.xen.org/qemu-xen.git}
+: ${BASE_TREE_QEMU_UPSTREAM:=git://xenbits.xen.org/qemu-xen.git}
: ${PUSH_TREE_QEMU_UPSTREAM=$XENBITS:/home/xen/git/qemu-xen.git}
: ${LOCALREV_QEMU_UPSTREAM:=daily-cron.$branch}
+if [ "x${TREE_QEMU_UPSTREAM}" ]; then
+ : ${TREE_QEMU_UPSTREAM:=${BASE_TREE_QEMU_UPSTREAM}}
+fi
+
: ${TREE_QEMU_MAINLINE:=git://git.qemu.org/qemu.git}
info_linux_tree () {
diff --git a/ap-fetch-version-old b/ap-fetch-version-old
index ef079ba..e2c6b3b 100755
--- a/ap-fetch-version-old
+++ b/ap-fetch-version-old
@@ -61,17 +61,17 @@ xen-4.*-testing)
;;
qemu-mainline)
repo_tree_rev_fetch_git $branch \
- $TREE_QEMU_UPSTREAM upstream-tested $LOCALREV_QEMU_UPSTREAM
+ $BASE_TREE_QEMU_UPSTREAM upstream-tested $LOCALREV_QEMU_UPSTREAM
;;
qemu-upstream-unstable)
repo_tree_rev_fetch_git $branch \
- $TREE_QEMU_UPSTREAM master $LOCALREV_QEMU_UPSTREAM
+ $BASE_TREE_QEMU_UPSTREAM master $LOCALREV_QEMU_UPSTREAM
;;
qemu-upstream-*-testing)
branchcore=${branch#qemu-upstream-}
branchcore=${branchcore%-testing}
repo_tree_rev_fetch_git $branch \
- $TREE_QEMU_UPSTREAM stable-$branchcore $LOCALREV_QEMU_UPSTREAM
+ $BASE_TREE_QEMU_UPSTREAM stable-$branchcore $LOCALREV_QEMU_UPSTREAM
;;
linux)
repo_tree_rev_fetch_git linux \
--
2.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH OSSTEST] ap-fetch-version-old: Fix qemu branch handling after mergin of qemu trees
2015-10-23 10:06 [PATCH OSSTEST] ap-fetch-version-old: Fix qemu branch handling after mergin of qemu trees Ian Campbell
@ 2015-10-23 10:23 ` Ian Jackson
2015-10-23 10:33 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Ian Jackson @ 2015-10-23 10:23 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Ian Campbell writes ("[PATCH OSSTEST] ap-fetch-version-old: Fix qemu branch handling after mergin of qemu trees"):
> ap-fetch-version-old should always reference the output gate, but
> 99e92a6b3991 "Switch to merged qemu-xen{,-traditional}.git trees"
> switched it to use TREE_QEMU_UPSTREAM directly, which can be
> overridden by cr-daily-branch. This broke at least when
> OSSTEST_BASELINES_ONLY=y since "cr-daily-branch qemu-mainline" ends up looking
> for an "upstream-tested" branch in the qemu.org git tree, when it should be
> looking at our output tree on xenbits.
>
> Follow pattern of TREE_LINUX and set BASE_TREE_QEMU_UPSTREAM to the
> output gate and then conditionally set TREE_QEMU_UPSTREAM to the
> BASE_TREE if it is not already set. Switch ap-fetch-version-old to use
> BASE_TREE.
...
> +if [ "x${TREE_QEMU_UPSTREAM}" ]; then
> + : ${TREE_QEMU_UPSTREAM:=${BASE_TREE_QEMU_UPSTREAM}}
> +fi
${FOO:=BAR} sets FOO iff FOO is unset or empty, so there is no need
for the if. The place you cribbed this from also has to set a
variable for the refname.
Everthing else about this is fine. Thanks for the in-person explanation.
Ian.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH OSSTEST] ap-fetch-version-old: Fix qemu branch handling after mergin of qemu trees
2015-10-23 10:23 ` Ian Jackson
@ 2015-10-23 10:33 ` Ian Campbell
0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2015-10-23 10:33 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Fri, 2015-10-23 at 11:23 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST] ap-fetch-version-old: Fix qemu
> branch handling after mergin of qemu trees"):
> > ap-fetch-version-old should always reference the output gate, but
> > 99e92a6b3991 "Switch to merged qemu-xen{,-traditional}.git trees"
> > switched it to use TREE_QEMU_UPSTREAM directly, which can be
> > overridden by cr-daily-branch. This broke at least when
> > OSSTEST_BASELINES_ONLY=y since "cr-daily-branch qemu-mainline" ends up
> > looking
> > for an "upstream-tested" branch in the qemu.org git tree, when it
> > should be
> > looking at our output tree on xenbits.
You mentioned IRL that this also broke any cr-daily-branch which happened
to want to do a baseline test on qemu-mainline. Since we never force push
that tree it's unlikely this would have bitten us (just mentioning for
completeness since it hasn't occurred to me).
> > Follow pattern of TREE_LINUX and set BASE_TREE_QEMU_UPSTREAM to the
> > output gate and then conditionally set TREE_QEMU_UPSTREAM to the
> > BASE_TREE if it is not already set. Switch ap-fetch-version-old to use
> > BASE_TREE.
> ...
> > +if [ "x${TREE_QEMU_UPSTREAM}" ]; then
> > + : ${TREE_QEMU_UPSTREAM:=${BASE_TREE_QEMU_UPSTREAM}}
> > +fi
>
> ${FOO:=BAR} sets FOO iff FOO is unset or empty, so there is no need
> for the if. The place you cribbed this from also has to set a
> variable for the refname.
>
> Everthing else about this is fine. Thanks for the in-person explanation.
As discussed IRC I dropped the if/fi (and retested) and have force pushed
to both the colo and the Cambridge instance.
I have removed the stop file from Cambridge.
Ian.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-23 10:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23 10:06 [PATCH OSSTEST] ap-fetch-version-old: Fix qemu branch handling after mergin of qemu trees Ian Campbell
2015-10-23 10:23 ` Ian Jackson
2015-10-23 10:33 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.