Skip to content

kci-dev results tests and kci-dev boots raise Key Error regardless of the tree #131

@CamilaAlvarez

Description

@CamilaAlvarez

For example by running this command from the docs:

kci-dev results tests --giturl 'https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git' --branch master --commit  d1486dca38afd08ca279ae94eb3a397f10737824

Results in:

 File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results.py", line 375, in cmd_tests
    kci_msg_cyan_nonl(test["misc"]["platform"])
                      ~~~~^^^^^^^^
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results.py", line 581, in tests
    cmd_tests(data["tests"], commit, download_logs, status, filter)
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results.py", line 468, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/subcommands/results.py", line 444, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/calvarez/Desktop/Development/KernelCI/kci-dev/kcidev/main.py", line 69, in run
    cli()
  File "<string>", line 1, in <module> (Current frame)
KeyError: 'misc'

I believe the platform should be obtained from the environment_misc field instead.

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