All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
@ 2020-07-16 10:53 Peter Maydell
  2020-07-16 12:11 ` Philippe Mathieu-Daudé
  2020-07-16 17:55 ` Michael Roth
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Maydell @ 2020-07-16 10:53 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Michael Roth

The first merge I tried to process after bumping VERSION for rc0
failed on test-qga like this:

MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driv
er.pl --test-name="test-qga"
PASS 1 test-qga /qga/sync-delimited
PASS 2 test-qga /qga/sync
PASS 3 test-qga /qga/ping
**
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
assertion failed (version == QEMU_VERSION): ("5.0.9
0" == "5.0.50")
ERROR test-qga - Bail out!
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
assertion failed (versio
n == QEMU_VERSION): ("5.0.90" == "5.0.50")
Aborted (core dumped)
/home/petmay01/linaro/qemu-for-merges/tests/Makefile.include:659:
recipe for target 'check-unit' failed

Looking at timestamps on files, tests/test-qga.o never got rebuilt,
even though config-host.h has been updated (and so has the new
QEMU_VERSION). Any idea what's gone wrong here?

Also weird: this build tree has no .d files in it.

thanks
-- PMM


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

* Re: qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
  2020-07-16 10:53 qemu test-qga failure on mergebuild after VERSION file change: dependency issues?? Peter Maydell
@ 2020-07-16 12:11 ` Philippe Mathieu-Daudé
  2020-07-16 17:55 ` Michael Roth
  1 sibling, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-07-16 12:11 UTC (permalink / raw)
  To: Peter Maydell, QEMU Developers; +Cc: Michael Roth

On 7/16/20 12:53 PM, Peter Maydell wrote:
> The first merge I tried to process after bumping VERSION for rc0
> failed on test-qga like this:
> 
> MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
> tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driv
> er.pl --test-name="test-qga"
> PASS 1 test-qga /qga/sync-delimited
> PASS 2 test-qga /qga/sync
> PASS 3 test-qga /qga/ping
> **
> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
> assertion failed (version == QEMU_VERSION): ("5.0.9
> 0" == "5.0.50")
> ERROR test-qga - Bail out!
> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
> assertion failed (versio
> n == QEMU_VERSION): ("5.0.90" == "5.0.50")
> Aborted (core dumped)
> /home/petmay01/linaro/qemu-for-merges/tests/Makefile.include:659:
> recipe for target 'check-unit' failed
> 
> Looking at timestamps on files, tests/test-qga.o never got rebuilt,
> even though config-host.h has been updated (and so has the new
> QEMU_VERSION). Any idea what's gone wrong here?
> 
> Also weird: this build tree has no .d files in it.

Yes. We chatted about that yesterday on IRC, I ran this test:

- checkout master
- build after distclean
- checkout mytest
- change a function prototype in qdev-properties.c
  (simply because I had it opened in my editor)
- build

make: *** [rules.mak:69: hw/core/qdev-properties.o] Error 1

But the file is still here from the previous 'master' build:

$ ls -ln hw/core/qdev-properties.o
-rw-rw-r--. 1 1000 1000 140624 Jul 15 16:27 hw/core/qdev-properties.o

$ touch hw/core/qdev-properties.o

$ make -> link success... but prototype doesn't match...

> 
> thanks
> -- PMM
> 



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

* Re: qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
  2020-07-16 10:53 qemu test-qga failure on mergebuild after VERSION file change: dependency issues?? Peter Maydell
  2020-07-16 12:11 ` Philippe Mathieu-Daudé
@ 2020-07-16 17:55 ` Michael Roth
  2020-07-16 17:59   ` Philippe Mathieu-Daudé
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Roth @ 2020-07-16 17:55 UTC (permalink / raw)
  To: Peter Maydell, QEMU Developers

Quoting Peter Maydell (2020-07-16 05:53:17)
> The first merge I tried to process after bumping VERSION for rc0
> failed on test-qga like this:
> 
> MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
> tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driv
> er.pl --test-name="test-qga"
> PASS 1 test-qga /qga/sync-delimited
> PASS 2 test-qga /qga/sync
> PASS 3 test-qga /qga/ping
> **
> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
> assertion failed (version == QEMU_VERSION): ("5.0.9
> 0" == "5.0.50")
> ERROR test-qga - Bail out!
> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
> assertion failed (versio
> n == QEMU_VERSION): ("5.0.90" == "5.0.50")
> Aborted (core dumped)
> /home/petmay01/linaro/qemu-for-merges/tests/Makefile.include:659:
> recipe for target 'check-unit' failed
> 
> Looking at timestamps on files, tests/test-qga.o never got rebuilt,
> even though config-host.h has been updated (and so has the new
> QEMU_VERSION). Any idea what's gone wrong here?
> 
> Also weird: this build tree has no .d files in it.

I've been trying to reproduce with:

make
make check-unit
*bump VERSION
make check-unit

but test-qga.o gets rebuilt as expected and the test passed.

This is with ubuntu 18.04, x86, with out-of-tree build directory. Are you aware
of any other factors that might be needed to reproduce this?

> 
> thanks
> -- PMM


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

* Re: qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
  2020-07-16 17:55 ` Michael Roth
@ 2020-07-16 17:59   ` Philippe Mathieu-Daudé
  2020-07-16 19:52     ` Michael Roth
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-07-16 17:59 UTC (permalink / raw)
  To: Michael Roth, Peter Maydell, QEMU Developers

On 7/16/20 7:55 PM, Michael Roth wrote:
> Quoting Peter Maydell (2020-07-16 05:53:17)
>> The first merge I tried to process after bumping VERSION for rc0
>> failed on test-qga like this:
>>
>> MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
>> tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driv
>> er.pl --test-name="test-qga"
>> PASS 1 test-qga /qga/sync-delimited
>> PASS 2 test-qga /qga/sync
>> PASS 3 test-qga /qga/ping
>> **
>> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
>> assertion failed (version == QEMU_VERSION): ("5.0.9
>> 0" == "5.0.50")
>> ERROR test-qga - Bail out!
>> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
>> assertion failed (versio
>> n == QEMU_VERSION): ("5.0.90" == "5.0.50")
>> Aborted (core dumped)
>> /home/petmay01/linaro/qemu-for-merges/tests/Makefile.include:659:
>> recipe for target 'check-unit' failed
>>
>> Looking at timestamps on files, tests/test-qga.o never got rebuilt,
>> even though config-host.h has been updated (and so has the new
>> QEMU_VERSION). Any idea what's gone wrong here?
>>
>> Also weird: this build tree has no .d files in it.
> 
> I've been trying to reproduce with:
> 
> make
> make check-unit
> *bump VERSION
> make check-unit
> 
> but test-qga.o gets rebuilt as expected and the test passed.
> 
> This is with ubuntu 18.04, x86, with out-of-tree build directory. Are you aware
> of any other factors that might be needed to reproduce this?

The problem is not for qga, it affects all QEMU objects.

> 
>>
>> thanks
>> -- PMM
> 



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

* Re: qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
  2020-07-16 17:59   ` Philippe Mathieu-Daudé
@ 2020-07-16 19:52     ` Michael Roth
  2020-07-16 20:06       ` Philippe Mathieu-Daudé
  2020-07-16 20:15       ` Peter Maydell
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Roth @ 2020-07-16 19:52 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, Peter Maydell, QEMU Developers

Quoting Philippe Mathieu-Daudé (2020-07-16 12:59:28)
> On 7/16/20 7:55 PM, Michael Roth wrote:
> > Quoting Peter Maydell (2020-07-16 05:53:17)
> >> The first merge I tried to process after bumping VERSION for rc0
> >> failed on test-qga like this:
> >>
> >> MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
> >> tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driv
> >> er.pl --test-name="test-qga"
> >> PASS 1 test-qga /qga/sync-delimited
> >> PASS 2 test-qga /qga/sync
> >> PASS 3 test-qga /qga/ping
> >> **
> >> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
> >> assertion failed (version == QEMU_VERSION): ("5.0.9
> >> 0" == "5.0.50")
> >> ERROR test-qga - Bail out!
> >> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
> >> assertion failed (versio
> >> n == QEMU_VERSION): ("5.0.90" == "5.0.50")
> >> Aborted (core dumped)
> >> /home/petmay01/linaro/qemu-for-merges/tests/Makefile.include:659:
> >> recipe for target 'check-unit' failed
> >>
> >> Looking at timestamps on files, tests/test-qga.o never got rebuilt,
> >> even though config-host.h has been updated (and so has the new
> >> QEMU_VERSION). Any idea what's gone wrong here?
> >>
> >> Also weird: this build tree has no .d files in it.
> > 
> > I've been trying to reproduce with:
> > 
> > make
> > make check-unit
> > *bump VERSION
> > make check-unit
> > 
> > but test-qga.o gets rebuilt as expected and the test passed.
> > 
> > This is with ubuntu 18.04, x86, with out-of-tree build directory. Are you aware
> > of any other factors that might be needed to reproduce this?
> 
> The problem is not for qga, it affects all QEMU objects.

But is it intermittent, environment-dependent? I'm trying to understand how to
replicate Peter's result since it seems like it would be straightforward
reproducer.

> 
> > 
> >>
> >> thanks
> >> -- PMM
> > 
> 


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

* Re: qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
  2020-07-16 19:52     ` Michael Roth
@ 2020-07-16 20:06       ` Philippe Mathieu-Daudé
  2020-07-16 20:15       ` Peter Maydell
  1 sibling, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-07-16 20:06 UTC (permalink / raw)
  To: Michael Roth, Peter Maydell, QEMU Developers

On 7/16/20 9:52 PM, Michael Roth wrote:
> Quoting Philippe Mathieu-Daudé (2020-07-16 12:59:28)
>> On 7/16/20 7:55 PM, Michael Roth wrote:
>>> Quoting Peter Maydell (2020-07-16 05:53:17)
>>>> The first merge I tried to process after bumping VERSION for rc0
>>>> failed on test-qga like this:
>>>>
>>>> MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
>>>> tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driv
>>>> er.pl --test-name="test-qga"
>>>> PASS 1 test-qga /qga/sync-delimited
>>>> PASS 2 test-qga /qga/sync
>>>> PASS 3 test-qga /qga/ping
>>>> **
>>>> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
>>>> assertion failed (version == QEMU_VERSION): ("5.0.9
>>>> 0" == "5.0.50")
>>>> ERROR test-qga - Bail out!
>>>> ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:303:test_qga_info:
>>>> assertion failed (versio
>>>> n == QEMU_VERSION): ("5.0.90" == "5.0.50")
>>>> Aborted (core dumped)
>>>> /home/petmay01/linaro/qemu-for-merges/tests/Makefile.include:659:
>>>> recipe for target 'check-unit' failed
>>>>
>>>> Looking at timestamps on files, tests/test-qga.o never got rebuilt,
>>>> even though config-host.h has been updated (and so has the new
>>>> QEMU_VERSION). Any idea what's gone wrong here?
>>>>
>>>> Also weird: this build tree has no .d files in it.
>>>
>>> I've been trying to reproduce with:
>>>
>>> make
>>> make check-unit
>>> *bump VERSION
>>> make check-unit
>>>
>>> but test-qga.o gets rebuilt as expected and the test passed.
>>>
>>> This is with ubuntu 18.04, x86, with out-of-tree build directory. Are you aware
>>> of any other factors that might be needed to reproduce this?
>>
>> The problem is not for qga, it affects all QEMU objects.
> 
> But is it intermittent, environment-dependent? I'm trying to understand how to
> replicate Peter's result since it seems like it would be straightforward
> reproducer.

How to reproduce:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg723531.html

> 
>>
>>>
>>>>
>>>> thanks
>>>> -- PMM
>>>
>>
> 



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

* Re: qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
  2020-07-16 19:52     ` Michael Roth
  2020-07-16 20:06       ` Philippe Mathieu-Daudé
@ 2020-07-16 20:15       ` Peter Maydell
  2020-07-16 21:03         ` Philippe Mathieu-Daudé
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2020-07-16 20:15 UTC (permalink / raw)
  To: Michael Roth; +Cc: Philippe Mathieu-Daudé, QEMU Developers

On Thu, 16 Jul 2020 at 20:52, Michael Roth <mdroth@linux.vnet.ibm.com> wrote:
> But is it intermittent, environment-dependent? I'm trying to understand how to
> replicate Peter's result since it seems like it would be straightforward
> reproducer.

I blew away all my build trees and recreated them from
scratch, and the issue went away. I'm suspicious that the
complete lack of .d files was induced by a failed earlier
pullreq attempt and left the build tree in a messed up state
where it wouldn't notice that it needed to rebuild files.

-- PMM


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

* Re: qemu test-qga failure on mergebuild after VERSION file change: dependency issues??
  2020-07-16 20:15       ` Peter Maydell
@ 2020-07-16 21:03         ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-07-16 21:03 UTC (permalink / raw)
  To: Peter Maydell, Michael Roth; +Cc: Paolo Bonzini, QEMU Developers

On 7/16/20 10:15 PM, Peter Maydell wrote:
> On Thu, 16 Jul 2020 at 20:52, Michael Roth <mdroth@linux.vnet.ibm.com> wrote:
>> But is it intermittent, environment-dependent? I'm trying to understand how to
>> replicate Peter's result since it seems like it would be straightforward
>> reproducer.
> 
> I blew away all my build trees and recreated them from
> scratch, and the issue went away. I'm suspicious that the
> complete lack of .d files was induced by a failed earlier
> pullreq attempt and left the build tree in a messed up state
> where it wouldn't notice that it needed to rebuild files.

If it happens again, can you try to revert aaa1b70a0b ("Makefile:
simplify MINIKCONF rules") on top of the tag you are testing, and
re-run the testing?



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

end of thread, other threads:[~2020-07-16 21:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 10:53 qemu test-qga failure on mergebuild after VERSION file change: dependency issues?? Peter Maydell
2020-07-16 12:11 ` Philippe Mathieu-Daudé
2020-07-16 17:55 ` Michael Roth
2020-07-16 17:59   ` Philippe Mathieu-Daudé
2020-07-16 19:52     ` Michael Roth
2020-07-16 20:06       ` Philippe Mathieu-Daudé
2020-07-16 20:15       ` Peter Maydell
2020-07-16 21:03         ` Philippe Mathieu-Daudé

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.