Skip to content

Do not try all runners in runner discovery #2834

Closed

Description

@jiparis

In the runner discover function (DiscoverRunner), the logic loops through all registered runners, and even if many are found (which is likely impossible), it only takes the first one.

When executing with the --debug option, you can see how some of those runners are trying to open system files (to discover k8s configuration for Tekton, for example), or doing some API calls (Github for example). This is a waste of resources and makes the attestation init step slower as we add more runner implementations.

Instead, the for loop should stop after the first one is found, and return it directly.

Activity

  1. waveywaves commented on Mar 11, 2026

    @waveywaves
    Contributor

    can you assign this to me considering it's related to Tekton ?

  2. javirln commented on Mar 12, 2026

    @javirln
    Member

    Has this been here forever?

  3. jiparis commented on Mar 12, 2026

    @jiparis
    MemberAuthor

    Has this been here forever?

    It's been there since the beginning, yes.

  4. jiparis commented on Mar 12, 2026

    @jiparis
    MemberAuthor

    can you assign this to me considering it's related to Tekton ?

    @waveywaves not strictly related, but sure, all yours!

  5. added 2 commits that reference this issue on Mar 17, 2026
    76988bb
    b486f4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions