Bug 15687

Summary: Docs builds must use buildtools on older distros
Product: [Infrastructure] AutoBuilder Reporter: Michael Halstead <mhalstead>
Component: autobuilderAssignee: Antonin Godard <antonin.godard>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Medium+ CC: infras.ab.watcher, Infras.watcher, pidge, randy.macleod
Version: 5.1.1   
Target Milestone: 5.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Halstead 2024-12-11 23:14:52 UTC
Docs builds are using the host python when buildtools are required and failing like this.

    subprocess.run(["git", "show", "yocto-%s" % release_series[activereleases[0]]], capture_output=True, check=True)
  File "/usr/lib64/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'

From:
https://valkyrie.yoctoproject.org/#/builders/34/builds/86
https://valkyrie.yoctoproject.org/#/builders/34/builds/68

We could exclude older workers from docs builds or alter the build to make sure buildtools is used.
Comment 1 Randy MacLeod 2024-12-12 15:44:44 UTC
May be able to fix code to use older python syntax.
Comment 2 Antonin Godard 2024-12-23 11:15:35 UTC
Fixed by commit: https://git.yoctoproject.org/yocto-docs/commit/?id=28850c974a3896895bc921c094071523218d6d07.

As suggested, I changed the calls to make them backward-compatible.

Closing!