action #115100
closed[qe-core] building a wheel for save_ulog (lib/Utils/Logging.pm)
100%
Description
Arccoding to the blog at https://kalikiana.gitlab.io/post/2022-08-04-re-inventing-the-wheel we can now build a wheel for openQA tests.
create a repository for building a wheel
create wheels.yaml, this yaml file points to our new repos which will be cloned before any test module is executed.
wheels.yaml points to https://github.com/os-autoinst/os-autoinst-distri-opensuse/functional-wheel-launcher
version: v0.1
wheels:
- $github_user_or_organization/functional-wheel-launcher
or
- $github_user_or_organization/functional-wheel-launcher#branch-name
Note: WHEELS_DIR can be used to override this location (our case: 'functional-wheel-launcher') explicitly.
Build a wheel for save_ulog:
- Create a folder lib which contains re-usable Perl modules (in our case: lib/Utils/Logging.pm)
- Create a folder tests which contains re-usable test modules (in our case: tests/console/start_systemd_testkit_offline.pm)
- Add a GitHubAction workflow to get CI for your wheel (no plan to implement at moment)
Updated by zluo over 2 years ago
- Subject changed from [qe-core] building a wheel for save_ulog (lib/Logging.pm) to [qe-core] building a wheel for save_ulog (lib/Utils/Logging.pm)
Updated by zluo over 2 years ago
Updated by szarate over 2 years ago
- Description updated (diff)
@zluo, one thing, is that you will need to create a repository, and that's where you add the lib/Utils/Logging.pm
version: v0.1
wheels:
- Zaoliang/functional-wheel-launcher
or
- Zaoliang/functional-wheel-launcher#branch-name
And the rest of the files under your own repo, you can also skip the workflow file, as we won't need it for the time being (later we will add unit tests to the wheel itself)
Updated by zluo over 2 years ago
- Description updated (diff)
repository with some contents got created:
Updated by zluo over 2 years ago
- Status changed from New to In Progress
https://github.com/Zaoliang/functional-wheel/runs/7789384490?check_suite_focus=true
workflow on github looks good, still need some works for wheel repository :)
Updated by zluo over 2 years ago
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15336 merged and verified, thanks!
Updated by zluo over 2 years ago
- Project changed from 46 to openQA Tests (public)
Updated by szarate over 2 years ago
- Precedes action #115004: Use github.com/os-autoinst/os-autoinst-wheel-launcher in os-autoinst-distri-opensuse as well added