Re: [OE-core][PATCH v3] go: add ptest support

Mathieu Dubois-Briand
2026-03-19T06:57:24Z

On Wed Mar 18, 2026 at 3:03 PM CET, Pratik Farkase wrote:
> Add ptest infrastructure to test the Go standard library.
>
> - Run 'go test -short std' via run-ptest script
> - Install source tree and pkg/include headers
> - Create VERSION file for architecture detection
> - Exclude multi-arch binary testdata to avoid QA errors
>
> Test results: 237/253 pass (93.7%) on qemux86-64.
>
> Known issues:
> - debug/elf, debug/pe, debug/plan9obj, internal/xcoff: missing binary testdata
> - time: requires embedded timezone data
> - net/http: requires unstripped go binary
> - testing, go/types: minor edge cases
>
> Signed-off-by: Pratik Farkase <pratik.farkase@est.tech>
> ---
> Changes in v3:
> - Move go from PTESTS_FAST to PTESTS_SLOW (~45min runtime)
> inside ptest-packagelists.inc
>
> Changes in v2:
> - Exclude .elf* files to fix QA arch errors on all architectures
> - Exclude *-x86-64* files to fix additional arch-specific test binaries
> - Tested on x86-64, x86, aarch64, and arm builds
> ---

Hi Pratik,

Thanks for the new version, but we still have some failures:

WARNING: core-image-ptest-go-1.0-r0 do_testimage: There were failing ptests.
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/qemux86-64-ptest/build/layers/openembedded-core/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
File "/srv/pokybuild/yocto-worker/qemux86-64-ptest/build/layers/openembedded-core/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
File "/srv/pokybuild/yocto-worker/qemux86-64-ptest/build/layers/openembedded-core/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
File "/srv/pokybuild/yocto-worker/qemux86-64-ptest/build/layers/openembedded-core/meta/lib/oeqa/runtime/cases/ptest.py", line 27, in test_ptestrunner_expectfail
self.do_ptestrunner()
~~~~~~~~~~~~~~~~~~~^^
File "/srv/pokybuild/yocto-worker/qemux86-64-ptest/build/layers/openembedded-core/meta/lib/oeqa/runtime/cases/ptest.py", line 121, in do_ptestrunner
self.fail(failmsg)
~~~~~~~~~^^^^^^^^^
AssertionError: ERROR: Processes were killed by the OOM Killer:
[ 132.843492] Out of memory: Killed process 769 (compile) total-vm:1553664kB, anon-rss:256564kB, file-rss:0kB, shmem-rss:128kB, UID:0 pgtables:644kB oom_score_adj:0

Failed ptests:
{'go': ['archive/tar',
'archive/zip',
'bufio',
'bytes',
'cmp',
'compress/bzip2',
'compress
...

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/3319
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3294
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1277

Thanks,
Mathieu

--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering