Project

General

Profile

Actions

action #138032

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

Find out most/least used testapi functions to decide about where to extend/cleanup size:M

Added by okurz 7 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Motivation

#130369 brought me to the idea that functions like "login" or more generalized "assert_and_click_and_assert" from https://github.com/os-autoinst/os-autoinst-distri-openQA/pull/146/files#diff-1fb9ad4446612c618556273eb389bd68d1643725f366380e154c8619da1b43eeR8 maybe could be directly brought into the testapi of os-autoinst so not needing wheels necessarily. But the testapi is already big and maybe we even have functions that are candidates for removal. So let's look into test distributions that we can find on github, at least os-autoinst-distri-openSUSE and see which testapi functions are used the most and which the least.

Acceptance criteria

  • AC1: We have a list of absolute uses of os-autoinst testapi functions in test distribution(s), at least os-autoinst-distri-opensuse

Suggestions

  • grep testapi for testapi function definitions, e.g. start with grep "sub [^_].*" testapi.pm and compile a list of all functions. For each function lookup on github or local in os-autoinst-distri-opensuse and count occurences
  • Put the list sorted by occurences of function calls in this ticket
  • Present the list to the tools team and initiate a discussion

Files

check.sh (282 Bytes) check.sh script with ripgrep :D osukup, 2024-01-17 11:00
fun.txt (1023 Bytes) fun.txt list of functions osukup, 2024-01-17 11:00

Related issues 2 (1 open1 closed)

Copied from openQA Project - action #130369: [spike][timeboxed:20h] Reduce duplication of openQA-in-openQA tests in os-autoinst-distri-opensuse and os-autoinst-distri-openQA size:SResolvedtinita2023-06-01

Actions
Copied to openQA Project - action #156859: Improve most used testapi functionsNew

Actions
Actions

Also available in: Atom PDF