From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] oeqa/reproducibility: Work around subunit protocol limitations/bugs
Date: Thu, 09 Apr 2026 22:54:11 +0100 [thread overview]
Message-ID: <c54c4aa98d2e22d8e40abe24c74897cb8296d291.camel@linuxfoundation.org> (raw)
In-Reply-To: <18A4CA9DFD58F4F1.777565@lists.openembedded.org>
On Thu, 2026-04-09 at 21:35 +0100, Richard Purdie via lists.openembedded.org wrote:
> We've seen reproducibility failures with:
>
> File "/usr/lib/python3/dist-packages/subunit/chunked.py", line 108, in _read_length
> raise ValueError("chunk header invalid: %r" % count_str)
> ValueError: chunk header invalid: b'\n'
>
> which leads to:
>
> 2026-04-09 01:18:20,886 - oe-selftest - INFO - ERROR: broken-runner
>
> and UNKNOWN status for builds queued in that runner.
>
> This appears to be when reproducibility builds fail with:
>
> Traceback (most recent call last):
> File "/srv/pokybuild/yocto-worker/bringup-fast/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/reproducible.py", line 407, in test_reproducible_builds
> self.fail('\n'.join(fails))
> ~~~~~~~~~^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.14/unittest/case.py", line 750, in fail
> raise self.failureException(msg)
>
> which is possibly from bad placement of '\n' in the byte stream. It doesn't
> 100% reproduce since the placement is critical but from the subunit code, it
> does use <int>\n as a header in the protocol.
>
> I've wondered if the presence of "\n" in the traceback code is part of the issue
> so remove "\n" from the traceback by writing the python code differently just in
> case it helps.
>
> Ideally we'd report the issue and fix subunit but I was unable to work out the
> exact sequence to reproduce and any fix would take time to propogate anyway.
There are other better ideas about what is going on here to cause this
and this patch won't help. The issue is thankfully rare so we can drop
this for now until we come up with something better. We can open a bug
to track the issue.
Cheers,
Richard
next parent reply other threads:[~2026-04-09 21:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <18A4CA9DFD58F4F1.777565@lists.openembedded.org>
2026-04-09 21:54 ` Richard Purdie [this message]
2026-04-10 10:19 ` [OE-core] [PATCH] oeqa/reproducibility: Work around subunit protocol limitations/bugs Paul Barker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c54c4aa98d2e22d8e40abe24c74897cb8296d291.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox