| Summary: | RRS: rrs_distros.py fails on the second layer branch after OE-Core's PATH leaks into its environment | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Recipe Reporting System (RRS) | Reporter: | Tim Orling <tim.orling> |
| Component: | Recipe Reporting System (RRS) | Assignee: | Tim Orling <tim.orling> |
| Status: | IN PROGRESS REVIEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | ||
| Version: | unspecified | ||
| Target Milestone: | 6.2 M2 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
Fixed on branch timo/rrs-logging-16499 by "rrs_distros: keep the environment when fetching distro package lists". The new create_distro_packages_list() in rrs/tools/common.py restores the process environment after OE-Core's create_distro_packages_list() returns; tests/test_rrs_distros_environ.py covers it. Tested on layers.moto-timo.net together with the OE-Core fixes for bug 16503: rrs_distros.py now completes (rc=0) and writes RecipeDistro rows for all eight layer branches (openembedded-core, meta-intel, meta-oe, meta-networking, meta-perl, meta-python, meta-filesystems, meta-virtualization), with no "python3: No such file or directory" errors. Patch 6/6 of the series sent to yocto-patches, under review: https://lore.kernel.org/all/20261115003506.53654-1-tim.orling@konsulko.com/ |
rrs_distros.py downloads the distros' package lists once, while handling the first layer branch, with OE-Core's oe.distro_check.create_distro_packages_list(). Its create_socket() calls bb.utils.export_proxies(d), and BitBake's FETCH_EXPORT_VARS includes PATH and HOME as well as the proxy variables, so the datastore's PATH and HOME are written into the process environment and stay there. OE-Core's PATH starts with ${COREBASE}/scripts, which has had a Python "git" wrapper since 2022 (af27c81eaf, "scripts: Make git intercept global"), and the layer index's conf/local.conf sets HOSTTOOLS = "gcc", so there is no python3 on that PATH. The next layer branch's load_recipes() then fails on its first git command: ERROR: /usr/bin/env: 'python3': No such file or directory subprocess.CalledProcessError: Command '['git', 'reset', '--hard']' returned non-zero exit status 127. Seen on layers.moto-timo.net on 2026-11-14 with the bug 16503 fixes applied: the distro lists were fetched and openembedded-core's RecipeDistro rows were written, then the run failed on meta-intel. Proposed fix: restore the process environment after create_distro_packages_list() returns.