Project

General

Profile

Actions

action #180770

open

Consider to remove all non-functions from the os-autoinst testapi, e.g. '%cmds'

Added by okurz 6 days ago. Updated 6 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2025-04-10
Due date:
% Done:

0%

Estimated time:

Description

Motivation

As found out it in #180695 we can not simply remove %cmds from the os-autoinst testapi but this and other exported "our" variables are problematic as they are effectively "global variables" which can not be properly controlled, are often abused and also make problems in other language bindings so we should consider to deprecate and remove those from the API we offer.

Acceptance criteria

  • AC1: Only functions are exported in os-autoinst testapi.pm
  • AC2: All usual use cases in test distributions still work, e.g. os-autoinst-distri-opensuse

Suggestions

  • Lookup testapi.pm what is currently there and how variables are used in usual test distributions
  • Prepare new functions
  • Ensure that os-autoinst-distri-example and alike work fine without needing to rely on such variables
  • Deprecate the use of global testapi variables
  • Wait ages
  • Help to adapt test distributions
  • Wait ages again for people to adapt
  • Obsolete the use of global testapi variables
  • Wait ages again for downstream uses to adapt
  • Remove global testapi variables

Related issues 1 (0 open1 closed)

Copied from openQA Project (public) - action #180695: tests fail due to removal of '%cmd' from testapi size:SResolvedokurz2025-04-10

Actions
Actions #1

Updated by okurz 6 days ago

  • Copied from action #180695: tests fail due to removal of '%cmd' from testapi size:S added
Actions #2

Updated by okurz 6 days ago

  • Target version changed from Ready to future
Actions

Also available in: Atom PDF