Config.mk: Fix (and, effectively, update) QEMU_TAG
PATCH 1/1 Config.mk: Fix (and, effectively, update) QEMU_TAG
In 952944f7 "QEMU_TAG update" my tag update script mangled the machinery which sets QEMU_TRADITIONAL_REVISION, by replacing the first assignment to QEMU_TRADITIONAL_REVISION it found rather than the one which ought to have been replaced.
The result was that:
* From that commit on, QEMU_TAG was no longer honoured although QEMU_TRADITIONAL_REVISION still was
* That particular update to QEMU_TRADITIONAL_REVISION's default value was effective
* The next attempt to update QEMU_TRADITIONAL_REVISION, in 1fc3aeb3 "libxl: use new QEMU xenstore protocol" was totally ineffective.
Fix this by restoring the transfer from QEMU_TAG. The effects are:
* Once more, honour QEMU_TAG.
* Belatedly apply the qemu-trad change part of "libxl: use new QEMU xenstore protocol.
(I have also fixed my script to not do this again.)
--- Config.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Config.mk +1 -3
@@ -237,9 +237,7 @@ ifneq (,$(CONFIG_QEMU)) QEMU_TRADITIONAL_LOC ?= $(CONFIG_QEMU) endif ifneq (,$(QEMU_TAG)) -QEMU_TRADITIONAL_REVISION ?= ab42b4408cb4fc4f869d73218e3d2034e6f5e8ac -# Tue Mar 31 16:27:45 2015 +0100 -# xen: limit guest control of PCI command register +QEMU_TRADITIONAL_REVISION ?= $(QEMU_TAG) endif ifeq ($(GIT_HTTP),y)
Signature · 1 line
1.7.10.4
Quoted 20 lines
Quoted 1 line
Quoted 1 line · On 21.04.15 at 12:33, <[email protected]> wrote:
In
952944f7"QEMU_TAGupdate" my tag update script mangled the machinery which setsQEMU_TRADITIONAL_REVISION, by replacing the first assignment toQEMU_TRADITIONAL_REVISIONit found rather than the one which ought to have been replaced.The result was that:
* From that commit on,QEMU_TAGwas no longer honoured althoughQEMU_TRADITIONAL_REVISIONstill was
* That particular update to QEMU_TRADITIONAL_REVISION's default value was effective
* The next attempt to updateQEMU_TRADITIONAL_REVISION, in1fc3aeb3"libxl: use new QEMU xenstore protocol" was totally ineffective.Fix this by restoring the transfer from
QEMU_TAG. The effects are:
* Once more, honourQEMU_TAG.
* Belatedly apply the qemu-trad change part of "libxl: use new QEMU xenstore protocol.
Quoted 4 lines
(I have also fixed my script to not do this again.)
Signed-off-by Ian Jackson <[email protected]>Reported-by Jan Beulich <[email protected]>
(and please also for 4.5)
Jan Beulich writes ("Re: [PATCH] Config.mk: Fix (and, effectively, update) QEMU_TAG"):
Quoted 9 lines · On 21.04.15 at 12:33, <[email protected]> wrote:
Quoted 6 lines
In
952944f7"QEMU_TAGupdate" my tag update script mangled the machinery which setsQEMU_TRADITIONAL_REVISION, by replacing the first assignment toQEMU_TRADITIONAL_REVISIONit found rather than the one which ought to have been replaced.Signed-off-by Ian Jackson <[email protected]>Reported-by Jan Beulich <[email protected]>Acked-by Jan Beulich <[email protected]>
Thanks. Sorry for the breakage.
Quoted 1 line
(and please also for 4.5)
Indeed. See below, which I have just pushed (without waiting for your further ack).
Ian.
Quoted 1 line
From
d41906197d9a89355f43d4359d795b1d0257a53aMon Sep 17 00:00:00 2001
From: Ian Jackson <[email protected]>
Date: Tue, 21 Apr 2015 14:47:38 +0100
Subject: [PATCH] Config.mk: Fix QEMU_TAG and QEMU_TRADITIONAL_REVISION
handling
In 2417e243 "QEMU_TAG update" my tag update script mangled the machinery which sets QEMU_TRADITIONAL_REVISION, by replacing the first assignment to QEMU_TRADITIONAL_REVISION it found rather than the one which ought to have been replaced.
The result was that from that commit on, QEMU_TAG was no longer honoured although QEMU_TRADITIONAL_REVISION still was.
Fix this by restoring the transfer from QEMU_TAG.
This fix is analogous to 5d4c0952 "Config.mk: Fix (and, effectively, update) QEMU_TAG" from xen.git#staging, but in 4.5 there has not been a subsequent attempt to update the qemu revision, so both settings of QEMU_TRADITIONAL_REVISION are the same, and restoring the proper behaviour will not have the side effect of making a previous qemu tag update effective.
--- Config.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Config.mk +1 -3
@@ -237,9 +237,7 @@ ifneq (,$(CONFIG_QEMU)) QEMU_TRADITIONAL_LOC ?= $(CONFIG_QEMU) endif ifneq (,$(QEMU_TAG)) -QEMU_TRADITIONAL_REVISION ?= 62e41581f69c3fd4a8f829a773015eb4c17f1f3e -# Tue Mar 31 16:27:45 2015 +0100 -# xen: limit guest control of PCI command register +QEMU_TRADITIONAL_REVISION ?= $(QEMU_TAG) endif ifeq ($(GIT_HTTP),y)
Signature · 1 line
1.7.10.4
Bisector breakage (Re: [PATCH] Config.mk: Fix (and, effectively, update) QEMU_TAG)
In reply to Ian JacksonQuoted 5 lines · Ian Jackson
In
952944f7"QEMU_TAGupdate" my tag update script mangled the machinery which setsQEMU_TRADITIONAL_REVISION, by replacing the first assignment toQEMU_TRADITIONAL_REVISIONit found rather than the one which ought to have been replaced.
Quoted 8 lines
The result was that:
* From that commit on,QEMU_TAGwas no longer honoured althoughQEMU_TRADITIONAL_REVISIONstill was
* That particular update to QEMU_TRADITIONAL_REVISION's default value was effective
* The next attempt to updateQEMU_TRADITIONAL_REVISION, in1fc3aeb3"libxl: use new QEMU xenstore protocol" was totally ineffective.
A knock on effect seems to be that the bisector is looping constantly trying to build some given set of things and failing with:
flight 53895 mixed revisions for qemu: 3b45fcf0c163b9cff4d8115f7b75b42918a9b1b5 and ab42b4408cb4fc4f869d73218e3d2034e6f5e8ac
in bisection-report and
version mismatch! revision_qemu requested=3b45fcf0c163b9cff4d8115f7b75b42918a9b1b5 built=ab42b4408cb4fc4f869d73218e3d2034e6f5e8acin the test log itself. It doesn't seem to take this as a sign to give up. AFAICT it isn't subject to the recent changes to limit the number of attempts because it fails in a way which doesn't get considered as such when the bisector next looks (the first message above is essentially discounting it)
For my adhoc bisect in Cambridge I bodged around this with the below, which WFM on the range I was testing.
A real fix might want to set both in ts-xen-build to cope with all branches/ages of repo. I also didn't change ap-qemu-revision because I wasn't sure what was needed there.
Or we could just ignore this until the problematic revisions are historical. But best might be for the bisector to never try again under such circumstances, it's unlikely to work the next time.
I haven't stopped any bisections since it is just the build jobs and those are reasonably cheap in terms of resources.
I have forced pushed some flights which only failed on the freebsd migration thing, which I think will remove the impetus to bisect in many cases.
Ian.
commit 1ebae0dc5384089d00b01400a7a85dc48e4c2b5f
Author: Ian Campbell <[email protected]> Date: Fri May 8 16:45:25 2015 +0100
Workaround xen.git:5d4c0952f8da103e99d9b8c1fc6814dabd397df6 issue
In 952944f7 "QEMU_TAG update" my tag update script mangled the machinery which sets QEMU_TRADITIONAL_REVISION, by replacing the first assignment to QEMU_TRADITIONAL_REVISION it found rather than the one which ought to have been replaced.
The result was that:
* From that commit on, QEMU_TAG was no longer honoured although QEMU_TRADITIONAL_REVISION still was
adhoc-revtuple-generator +1 -1
@@ -305,7 +305,7 @@ sub xu_withtag_generator ($) { hg cat -r $nodeonly Config.mk |" or die $!; while (<CMK>) { - next unless m/^QEMU_TAG\s*[:?]?\=\s*(\S+)\s*$/; + next unless m/^(?:QEMU_TAG|QEMU_TRADITIONAL_REVISION)\s*[:?]?\=\s*(\S+)\s*$/; $targetqemu= $1; } if ($targetqemu !~ m/^[0-9a-f]+$/) {
ts-xen-build +1 -1
@@ -59,7 +59,7 @@ END echo >>.config XSM_ENABLE='${build_xsm}' END (nonempty($r{revision_qemu}) ? <<END : ''). - echo >>.config QEMU_TAG='$r{revision_qemu}' + echo >>.config QEMU_TRADITIONAL_REVISION='$r{revision_qemu}' END (nonempty($r{tree_qemuu}) ? <<END : ''). echo >>.config QEMU_UPSTREAM_URL='$r{tree_qemuu}'