Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send_kcidb: Fix get job metadata #917

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

JenySadadia
Copy link
Collaborator

Fix the below error while getting test job metadata:

    File "/home/kernelci/pipeline/./src/send_kcidb.py", line 435, in _parse_test_node
      job_metadata = self._get_job_metadata(test_node)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/kernelci/pipeline/./src/send_kcidb.py", line 358, in _get_job_metadata
      data = self._get_job_metadata(parent)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/kernelci/pipeline/./src/send_kcidb.py", line 363, in _get_job_metadata
      elif 'lava' in data.get('runtime'):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: argument of type 'NoneType' is not iterable

Fix the below error while getting test job metadata:
```
File "/home/kernelci/pipeline/./src/send_kcidb.py", line 435, in _parse_test_node
  job_metadata = self._get_job_metadata(test_node)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kernelci/pipeline/./src/send_kcidb.py", line 358, in _get_job_metadata
  data = self._get_job_metadata(parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kernelci/pipeline/./src/send_kcidb.py", line 363, in _get_job_metadata
  elif 'lava' in data.get('runtime'):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
```

Signed-off-by: Jeny Sadadia <[email protected]>
@nuclearcat
Copy link
Member

Tested on staging

@nuclearcat nuclearcat added this pull request to the merge queue Nov 28, 2024
Merged via the queue into kernelci:main with commit cafe5d5 Nov 28, 2024
3 checks passed
@JenySadadia JenySadadia deleted the fix-get-job-metadata branch November 29, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants