Project

General

Profile

Actions

action #60908

closed

action #47894: [qe-core][functional] Continuous check for used/unused test modules within os-autoinst-distri-opensuse in the "functional" domain

[functional][u] Fix the detect_unused_modules and update to also check in the yaml schedule files

Added by szarate about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Refactor/Code Improvements
Target version:
SUSE QA (private) - Milestone 30
Start date:
2019-12-11
Due date:
% Done:

0%

Estimated time:
42.00 h
Difficulty:
easy

Description

While we have this automated check for test modules that are in the test repository, since the YAML schedule files have been introduced, that check is becoming less and less useful, or rather we're losing some part of the view here.

It currently searches with git ls-files "*tests/*.pm" to find all the test modules, and then uses the filename to search with: git grep -qE "($t|load_testdir.*$t_dir)" And this is wrong, this means that if there's the mention to $t in any file, then the check passes.

A quick fix could be:

 - git grep -qE "($t|load_testdir.*$t_dir)" || echo $test
   # remove the -q from grep to see verbose output
 + git grep -qE "(loadtest.*$t|load_testdir.*$t_dir)" || echo $test 

But we also need to take into account the YAML Schedule, and that commented lines will not be taken into account.


Related issues 1 (0 open1 closed)

Copied to openQA Tests (public) - action #62429: [functional][u] Fix test modules that are not in lib dir but are used as libraries / base classResolveddheidler2019-12-11

Actions
Actions

Also available in: Atom PDF