Skip to content

tests: Avoid Meson's strict TAP parsing for now - #6768

Merged
swick merged 1 commit into
flatpak:mainfrom
smcv:no-tap-for-now
Aug 11, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
smcv:no-tap-for-now

Conversation

@smcv

@smcv smcv commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Older versions of Meson parsed TAP output very strictly, and would fail the test when a g_test_message() mentions non-UTF-8, which results in GLib adding a prefix on stdout that is not valid TAP syntax.

Ideally our error messages should all be valid UTF-8 even if the input is not, but that's a larger refactor that shouldn't block security fix releases, so for now just tell Meson to get the tests' pass/fail status from their exit status rather than parsing their stdout.


cc @swick

This fixes the build regression in 1.19.0. I'll try to propose a PR later to fix the error messages properly, but please don't block security releases on that.

Older versions of Meson parsed TAP output very strictly, and would fail
the test when a `g_test_message()` mentions non-UTF-8, which results
in GLib adding a prefix on stdout that is not valid TAP syntax.

Ideally our error messages should all be valid UTF-8 even if the input
is not, but that's a larger refactor that shouldn't block security fix
releases, so for now just tell Meson to get the tests' pass/fail status
from their exit status rather than parsing their stdout.

Signed-off-by: Simon McVittie <[email protected]>
@swick
swick added this pull request to the merge queue Aug 11, 2026
Merged via the queue into flatpak:main with commit 242e989 Aug 11, 2026
11 checks passed
@smcv

smcv commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

propose a PR later to fix the error messages properly

This was #6795.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants