Actions
action #110392
closedo3 logreports - Can't open file "/var/lib/openqa/testresults/.../vars.json" size:M
Description
We see the following errors on o3:
# /var/log/openqa
[2022-04-27T14:10:35.439009Z] [error] [mYElw9YAf65U] Can't open file
"/var/lib/openqa/testresults/02319/02319342-opensuse-Tumbleweed-DVD-x86_64-Buildilausuch_os-autoinst-distri-opensuse
_14706-containers_host_helm@ilausuch_os-autoinst-distri-opensuse_unify_helm_tests@64bit/vars.json": No such file or
directory at /usr/share/openqa/script/../lib/OpenQA/Schema/Result/Jobs.pm line 1871.
Acceptance criteria¶
- AC1: Investigation results doesn't throw any errors (or log any messages) if vars.json doesn't exist
Suggestions¶
- The problem happens in the code
my @files = map { Mojo::File->new($_->result_dir(), 'vars.json')->slurp } ($prev, $self);
within the "investigate" subroutine. openQA should simply gracefully handle non-existance of vars.json - Handle error gracefully, e.g. catching exception and skip all parts of investigation which requires data from vars.json. Likely as simple as wrapping the line in an eval, same as the next line
Updated by tinita almost 3 years ago
- Copied from action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M added
Updated by livdywan almost 3 years ago
- Subject changed from o3 logreports - Can't open file "/var/lib/openqa/testresults/.../vars.json" to o3 logreports - Can't open file "/var/lib/openqa/testresults/.../vars.json" size:M
- Description updated (diff)
- Status changed from New to Workable
Updated by livdywan almost 3 years ago
- Copied from deleted (action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M)
Updated by livdywan almost 3 years ago
- Blocks action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M added
Updated by tinita almost 3 years ago
- Status changed from Workable to In Progress
- Assignee set to tinita
Updated by openqa_review almost 3 years ago
- Due date set to 2022-05-13
Setting due date based on mean cycle time of SUSE QE Tools
Updated by tinita almost 3 years ago
https://github.com/os-autoinst/openQA/pull/4628 Deal with cleaned up vars.json on investigation tab
Updated by tinita almost 3 years ago
- Status changed from In Progress to Feedback
Updated by okurz almost 3 years ago
Updated by tinita almost 3 years ago
- Status changed from Feedback to Resolved
Should be resolved then
Updated by livdywan almost 3 years ago
- Blocks deleted (action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M)
Actions