On Tue Dec 9, 2025 at 11:55 AM CET, naftaly.ralamboarivony via
lists.openembedded.org wrote:
> From: Naftaly RALAMBOARIVONY <[email protected]>
>
> If the repo is in a detached HEAD state, create and check out a temporary
> branch
> to attach HEAD. If the branch already exists, the error is raised via run_sh.
>
> Add a check to verify that the Git state has not changed before and
> after the test in the attached HEAD.
>
> Signed-off-by: Naftaly RALAMBOARIVONY <[email protected]>
> ---
Hi Naftaly,
Thanks for your patches.
> --- a/meta/lib/patchtest/selftest/selftest
> +++ b/meta/lib/patchtest/selftest/selftest
> @@ -120,6 +120,9 @@ def is_git_state_same(before, after):
>
> def run_tests(patches, counts):
> + temp_branch = "test_patchtest_head_attached"
> git_state = get_git_state()
> - counts = test_head_attached(patches, counts)
> + assert git_state['branch'] != temp_branch, f"Cannot run patchtest
> selftest while on branch '{temp_branch}'"
It looks like we are hitting this error on the autobuilder.
So it means either we have to selftest, or we have to modify how this is
running on the autobuilder.
+
/srv/pokybuild/yocto-worker/patchtest-selftest/build/layers/openembedded-core//meta/lib/patchtest/selftest/selftest
Not a Git repository
Traceback (most recent call last):
File
"/srv/pokybuild/yocto-worker/patchtest-selftest/build/layers/openembedded-core//meta/lib/patchtest/selftest/selftest",
line 198, in <module>
counts = run_tests(patches, counts)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/srv/pokybuild/yocto-worker/patchtest-selftest/build/layers/openembedded-core//meta/lib/patchtest/selftest/selftest",
line 173, in run_tests
assert git_state['branch'] != temp_branch, f"Cannot run patchtest selftest
while on branch '{temp_branch}'"
~~~~~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
https://autobuilder.yoctoproject.org/valkyrie/#/builders/71/builds/2829
Any clue about what might be done here?
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#227474):
https://lists.openembedded.org/g/openembedded-core/message/227474
Mute This Topic: https://lists.openembedded.org/mt/116691878/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-