Project

General

Profile

Actions

action #96519

closed

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

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

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

0%

Estimated time:

Description

Observation

It seems we were just there to have stable coverage but now we have seen flaky coverage in other places again, e.g. in https://github.com/os-autoinst/openQA/pull/4103 mentions lib/OpenQA/Scheduler.pm 98.14% <0.00%> (-1.86%). I suspect one of

Acceptance criteria

  • AC1: Stable 100% coverage for lib/OpenQA/Scheduler.pm

Suggestion

# check for stale jobs every 2 minutes      
    Mojo::IOLoop->recurring(        
        120 => sub {        
            OpenQA::Scheduler::Model::Jobs->singleton->incomplete_and_duplicate_stale_jobs;     
        });


Related issues 1 (0 open1 closed)

Copied to openQA Project - action #97046: Fix flaky coverage - t/05-scheduler-full.t size:MResolvedmkittler2021-08-03

Actions
Actions

Also available in: Atom PDF