mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.39k stars 1.55k forks source link

Meson test times out unless -v option is passed #8212

Closed alex-tee closed 3 years ago

alex-tee commented 3 years ago

Describe the bug meson test times out when it shouldn't, but meson test -v executes correctly. It looks like the test is somehow suspended and kept in a suspended state until it times out, because my program randomly stops producing output during the test.

To Reproduce This is the test I am running from the Zrythm repository, commit 99697cc5dddfd6584d780839aec7d4c1f6850dba. meson test -C build actions_arranger_selections It times out after 240 seconds.

The same issue occurs when doing ninja -C build test

When running the same test with -v, it finishes in 132.27s meson test -C build -v actions_arranger_selections

note: When using meson 0.55.1 (guix package), I do not experience this bug, and the test finishes without issues.

Expected behavior The test is expected to finish without timing out.

system parameters

dcbaker commented 3 years ago

@bonzini, this looks like a possible regression from the switch to asyncio.

bonzini commented 3 years ago

A likely issue is that 755412b5261c448025d40214e3f2c0197e2e27bc awaits stdout before stderr---but the program hangs on a write to stderr, and therefore won't close stdout yet.

If so, #8200 fixes it by virtue of calling asyncio.ensure_future around stdo_task and stde_task, turning them into tasks rather than coroutines.

bonzini commented 3 years ago

@alex-tee Could you test the #8225 pull request, please?

alex-tee commented 3 years ago

@bonzini looks like it passed

1/1 zrythm:actions / actions_arranger_selections        OK             156.17s
bonzini commented 3 years ago

Fixed in master, please close.