Bug 9917

Summary: autobuilder: Add ability to get worker information
Product: [Infrastructure] AutoBuilder Reporter: Aníbal Limón <anibal.limon>
Component: autobuilderAssignee: Unassigned <unassigned>
Status: RESOLVED OBSOLETE QA Contact:
Severity: enhancement    
Priority: Medium CC: anuj.mittal, apoorv.sangal, infras.ab.watcher, Infras.watcher, joshuagloe, pidge, randy.macleod, richard.purdie, sgw
Version: 0.0.0   
Target Milestone: Future   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Aníbal Limón 2016-07-12 16:21:26 UTC
Will be good to have a buildstep or another mechanism for get worker information,
like distro, architecture, etc. 

OE-seltest error reports needs to figure out in what distro is running in order to provide better reports.

https://lists.yoctoproject.org/pipermail/yocto/2016-July/031080.html
Comment 1 Joshua Lock 2016-10-25 15:32:33 UTC
Should be trivial to implement a buildstep which adds some host OS information to a build property.
Comment 2 Aníbal Limón 2016-10-25 15:41:13 UTC
(In reply to comment #1)
> Should be trivial to implement a buildstep which adds some host OS
> information to a build property.

This isn't a host info, the buildsetp needs to run some commands in the worker in order to retrive worker info and then set as properties.
Comment 3 Aaron Chan 2020-04-28 20:40:49 UTC
A Patch has been submitted to mailing list for the enhancement to add steps
to get worker information

https://lists.yoctoproject.org/g/yocto/message/49270
Comment 4 Richard Purdie 2020-05-02 02:51:53 UTC
Its gone: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7a5cc8659e4ba8f36bcb5322e246005d812efb59 thanks for pointing it out.
Comment 5 Richard Purdie 2020-05-02 03:02:24 UTC
Sorry, wrong bug for the last comment!
Comment 6 Aaron Chan 2020-05-12 21:24:16 UTC
Hi Richard,

Could you review my patches https://lists.yoctoproject.org/g/yocto/message/49270
this is addStep in AB to retrieve the worker info using native commands on run on each worker 

- lsb_release
- uname

Cheers,
Aaron
Comment 7 Randy MacLeod 2024-04-25 14:47:55 UTC
We add the distro, arch, etc info to the test results now.
for example, the hostname reflects that: 

From a while ago:
centos7-ty-2.yocto.io
centos7-ty-4.yocto.io
centos8-ty-1.yocto.io
centos8-ty-2.yocto.io
centos8-ty-3.yocto.io
debian10-ty-1.yocto.io
debian10-ty-2.yocto.io
debian10-ty-3.yocto.io
debian8-ty-1.yocto.io
debian9-ty-2.yocto.io
fedora31-ty-1.yocto.io
fedora32-ty-1.yocto.io
fedora33-ty-1.yocto.io
opensuse151-ty-1.yocto.io
opensuse152-ty-1.yocto.io
perf-centos7.yocto.io
perf-ubuntu1604.yocto.io
tumbleweed-ty-1.yocto.io
tumbleweed-ty-2.yocto.io
tumbleweed-ty-3.yocto.io
ubuntu1604-ty-1.yocto.io
ubuntu1804-arm-1.yocto.io
ubuntu1804-ty-1.yocto.io
ubuntu1804-ty-2.yocto.io
ubuntu1804-ty-3.yocto.io
ubuntu2004-arm-1.yocto.io
ubuntu2004-ty-1.yocto.io
ubuntu2004-ty-2.yocto.io