Saludos/Regards/beste Grüße
Adrián Ortiz Gutiérrez

Hi,
unfortunately this will also affect kas 5.4 which just got released.
This is the culprit. Increasing the buffer just makes it less likely to
hit the limit, but IMHO is no proper fix.
We currently use .readline to forward the line to the logger (like
line-buffering). I'm wondering if we better just read up to a fixed
amount of characters and trim. Then we can seek until the next newline
character and start over.
> 25-Jun-2026 07:46:41 ^^^^^^^^^^^^^^^^^^^^^^^
> 25-Jun-2026 07:46:41 File "/usr/lib/python3.11/asyncio/streams.py", line 554, in readline
> 25-Jun-2026 07:46:41 raise ValueError(e.args[0])
> 25-Jun-2026 07:46:41 ValueError: Separator is found, but chunk is longer than limit
> 25-Jun-2026 07:46:41 Failing task since return code of [/tmp/runInDocker6682003822408205187.sh /apps/bamboo/remote-agent/agent-home/xml-data/build-dir/MAX-MLOB881-BFUSION/bamboo-build.sh] was 1 while expected 0
> 25-Jun-2026 07:46:41 Finished task 'Execute build' with result: Failed
>
>
> Applying this patch fixed the issue(maybe 16mb is too much?):
>
>
> --- a/kas/libkas.py
> +++ b/kas/libkas.py
>
> @@ -148,6 +148,9 @@ async def run_cmd_async(cmd, cwd, env=None, fail=True, liveupdate=False,
> try:
> process = await asyncio.create_subprocess_exec(
> *cmd,
> + # Workaround: raise asyncio's default 64 KiB StreamReader limit.
> + # Some bitbake stdout lines (e.g. cve-check summaries) exceed it.
> + limit=16 * 1024 * 1024,
Well... That means potentially 16MB ob junk on your terminal. While
this might not break the StreamReader, I'm not sure if it breaks
somewhere else (e.g. in the logger).
Felix
> cwd=cwd,
> env=env,
> stdout=asyncio.subprocess.PIPE,
>
>
>
>
> Thanks!
>
>
>
>
>
> Saludos/Regards/beste Grüße
>
>
>
> Adrián Ortiz Gutiérrez
>
> adrian...@tkelevator.com
>
>
> --
> You received this message because you are subscribed to the Google Groups "kas-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kas-devel+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/kas-devel/AMBPR09MB83289199D03D80831D8E39AAFDEC2%40AMBPR09MB8328.eurprd09.prod.outlook.com.