Skip to content

kci-dev results builds fails for any tree or origin #143

@CamilaAlvarez

Description

@CamilaAlvarez

For example:
kci-dev results builds --origin syzbot --giturl 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git' --branch 'linux-5.15.y' --latest --json

Gives

  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results/__init__.py", line 27, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results/__init__.py", line 63, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results/__init__.py", line 90, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results/__init__.py", line 165, in builds
    cmd_builds(data, commit, download_logs, status, count, use_json)
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results/parser.py", line 147, in cmd_builds
    if build["valid"] == None:
       ~~~~~^^^^^^^^
KeyError: 'valid'

As far as I can see the builds API no longer returns the valid field, even though the field still shows in the docs.
It seems to have been changed for a status field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions