Actions
action #180770
openConsider to remove all non-functions from the os-autoinst testapi, e.g. '%cmds'
Start date:
2025-04-10
Due date:
% Done:
0%
Estimated time:
Tags:
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
Actions