Project

General

Profile

Actions

action #98655

closed

Fix flaky coverage - lib/OpenQA/Worker/Job.pm size:M

Added by okurz over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2021-09-15
Due date:
% Done:

0%

Estimated time:

Description

Observation

https://github.com/os-autoinst/openQA/pull/4205 is a "dependency" update PR which should really be unrelated to coverage changes but there is a report about a coverage drop

lib/OpenQA/Worker/Job.pm    99.55% <0.00%> (-0.15%)     arrow_down

Acceptance criteria

  • AC1: The problematic code path is covered consistently

Suggestions

As the uncovered line is

sub settings                  { shift->{_settings} }
  • check where it should have been called an ensure it is called in tests.
  • check the code path to the settings for bugs, maybe it's not called correctly/reliably
  • mark the individual line as uncoverable? it doesn't look like e.g. an exit or busy loop, though (last resort)
Actions

Also available in: Atom PDF