Project

General

Profile

Actions

action #157339

closed

coordination #154777: [saga][epic] Shareable os-autoinst and test distribution plugins

coordination #108527: [epic] os-autoinst wheels for scalable code reuse of helper functions and segmented test distributions

os-autoinst t/14-isotovideo.t is again taking too long (>20s on my setup) size:M

Added by okurz 4 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2024-03-15
Due date:
% Done:

0%

Estimated time:

Description

Motivation

While reviewing https://github.com/os-autoinst/os-autoinst/pull/2470 and trying t/14-isotovideo.t out I found that t/14-isotovideo.t runs into timeout of 20s so taking too long. We had cases like that in the past and should try to identify the bottleneck of that test again and improve the runtime.

Acceptance criteria

  • AC1: t/14-isotovideo.t consistently passes well below the timeout of 20s again locally

Suggestions

  • Run prove -I. -v t/14-isotovideo.t or other means to profile that test and improve the code parts taking the most time. Consider https://metacpan.org/pod/Devel::NYTProf for both the test and isotovideo itself, e.g. perl -d:NYTProf ./isotovideo --help or perl -d:NYTProf ./isotovideo .
  • Run git bisect to find out where a regression might have come from, e.g. maybe 5eb5dfb8 "Report test module failures via exit codes" by Jose D. Gomez R
  • Consider trying to improve the runtime of isotovideo itself, not only making the test faster
  • It might be necessary to accept the runtime and increase the limit accordingly after a useful amount of effort had been invested and limited to optimize

Related issues 6 (2 open4 closed)

Related to openQA Project - action #135521: os-autoinst test t/14-isotovideo.t commonly runs into timeout executed locally, in subtest 5 "standard tests based on simple vars.json file" size:MResolvedmkittler2023-09-11

Actions
Related to openQA Project - action #127046: t: os-autoinst - qemu keeps running when test runs into timelimit size:MWorkable2023-04-01

Actions
Related to openQA Project - action #81899: Move code from isotovideo to a module size:MResolvedlivdywan2021-01-08

Actions
Related to openQA Project - action #71110: Reduce waiting time in case of os-autoinst shutdownResolvedmkittler

Actions
Related to openQA Project - action #68938: Try to reduce waiting time in case of qemu (early-)exits auto_review:"QEMU terminated before QMP connection could be established at /usr/lib/os-autoinst/OpenQA/Qemu/Proc.pm line 443":retryResolvedmkittler2020-07-14

Actions
Copied to openQA Project - action #158511: Try to optimize the startup time of isotovideo moreNewokurz

Actions
Actions

Also available in: Atom PDF