Bug 15868

Summary: AB-INT: release-parser: git.exc.NoSuchPathError: /srv/pokybuild/git/mirror/poky
Product: [QA/Testing] Tooling Reporter: Mathieu Dubois-Briand <mathieu.dubois-briand>
Component: toolingAssignee: Mathieu Dubois-Briand <mathieu.dubois-briand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: mhalstead, randy.macleod
Version: unspecified   
Target Milestone: 5.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mathieu Dubois-Briand 2025-05-21 07:00:33 UTC
+ /srv/pokybuild/yocto-worker/indexing/yocto-autobuilder-helper/scripts/release-parser.py
Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/indexing/yocto-autobuilder-helper/scripts/release-parser.py", line 15, in <module>
    repo = Repo(GIT_REPO)
  File "/usr/lib/python3.6/site-packages/git/repo/base.py", line 130, in __init__
    raise NoSuchPathError(epath)
git.exc.NoSuchPathError: /srv/pokybuild/git/mirror/poky
Comment 1 Mathieu Dubois-Briand 2025-05-21 07:27:52 UTC
indexing opensuse155-vk-1 master completed at 2025-05-20T08:01:49Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21156/steps/16/logs/stdio
Comment 2 Mathieu Dubois-Briand 2025-05-22 11:57:49 UTC
indexing opensuse155-vk-1 master completed at 2025-05-21T16:17:47Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21285/steps/16/logs/stdio
indexing opensuse155-vk-1 master completed at 2025-05-21T16:46:56Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21287/steps/16/logs/stdio
indexing opensuse155-vk-1 master completed at 2025-05-21T17:01:17Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21288/steps/16/logs/stdio
indexing opensuse155-vk-1 master completed at 2025-05-21T17:17:07Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21289/steps/16/logs/stdio
indexing opensuse155-vk-1 master completed at 2025-05-21T22:01:57Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21308/steps/16/logs/stdio
indexing opensuse155-vk-1 master completed at 2025-05-22T06:16:25Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21350/steps/16/logs/stdio
indexing opensuse155-vk-1 master completed at 2025-05-22T09:46:32Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/21364/steps/16/logs/stdio
Comment 3 Michael Halstead 2025-05-22 16:37:00 UTC
/srv/pokybuild/git/mirror/poky is populated by yocto-autobuilder-helper/janitor/ab-janitor which is run by systemd on boot. In the case of opensuse155-vk-1:

fatal: unable to access 'https://github.com/exein-io/meta-exein/': Could not resolve host: github.com
git.yoctoproject.org[0: 38.129.16.151]: errno=Network is unreachable

Even though the unit file contains After=network-online.target it appears this process launched before the network was ready. I can look into ways to make sure the process launches after network is available.

We should also modify https://git.yoctoproject.org/yocto-autobuilder-helper/tree/janitor/ab-janitor#n61 so the git clone is run whenever the needed dirs are absent, not just once when the script first runs.
Comment 4 Michael Halstead 2025-05-22 18:42:03 UTC
Patch submitted at https://lists.yoctoproject.org/g/yocto-patches/message/1577 and applied at https://git.yoctoproject.org/yocto-autobuilder-helper/log/?h=contrib/halstead/master.

Tested successfully on opensuse155-vk-1.
Comment 5 Michael Halstead 2025-05-23 00:49:24 UTC
Patch merged and fully deployed.