2017-04-06 11:16:16 +02:00
|
|
|
#
|
|
|
|
# spec file for package openQA
|
|
|
|
#
|
2024-01-04 22:11:44 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-04-06 11:16:16 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-11 10:30:13 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-06 11:16:16 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# can't use linebreaks here!
|
2020-02-19 03:38:13 +01:00
|
|
|
%define openqa_services openqa-webui.service openqa-gru.service openqa-websockets.service openqa-scheduler.service openqa-enqueue-audit-event-cleanup.service openqa-enqueue-audit-event-cleanup.timer openqa-enqueue-asset-cleanup.service openqa-enqueue-asset-cleanup.timer openqa-enqueue-result-cleanup.service openqa-enqueue-result-cleanup.timer openqa-enqueue-bug-cleanup.service openqa-enqueue-bug-cleanup.timer
|
2018-11-26 22:40:50 +01:00
|
|
|
%define openqa_worker_services openqa-worker.target openqa-slirpvde.service openqa-vde_switch.service openqa-worker-cacheservice.service openqa-worker-cacheservice-minion.service
|
2017-04-06 11:16:16 +02:00
|
|
|
%if %{undefined tmpfiles_create}
|
|
|
|
%define tmpfiles_create() \
|
2017-10-28 14:28:24 +02:00
|
|
|
%{_bindir}/systemd-tmpfiles --create %{?*} || : \
|
2017-04-06 11:16:16 +02:00
|
|
|
%{nil}
|
|
|
|
%endif
|
2020-10-07 07:33:18 +02:00
|
|
|
# Run tests on openSUSE Tumbleweed and supported openSUSE Leap versions
|
|
|
|
%if 0%{?suse_version} >= 1550 || ( 0%{?is_opensuse} && 0%{?sle_version} >= 150100 )
|
2017-04-06 11:16:16 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
%bcond_without tests
|
|
|
|
%else
|
|
|
|
%bcond_with tests
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
%bcond_with tests
|
|
|
|
%endif
|
2019-07-21 02:27:59 +02:00
|
|
|
# SLE < 15 does not provide many of the dependencies for the python sub-package
|
|
|
|
%if 0%{?sle_version} < 150000 && !0%{?is_opensuse}
|
|
|
|
%bcond_with python_scripts
|
|
|
|
%else
|
|
|
|
%bcond_without python_scripts
|
|
|
|
%endif
|
2017-10-28 14:28:24 +02:00
|
|
|
# runtime requirements that also the testsuite needs
|
2019-07-21 02:27:59 +02:00
|
|
|
%if %{with python_scripts}
|
2023-05-31 17:46:20 +02:00
|
|
|
%define python_scripts_requires python3-base python3-requests openQA-client
|
2019-07-21 02:27:59 +02:00
|
|
|
%else
|
|
|
|
%define python_scripts_requires %{nil}
|
|
|
|
%endif
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
2023-11-30 19:14:33 +01:00
|
|
|
%define assetpack_requires perl(CSS::Minifier::XS) >= 0.01 perl(JavaScript::Minifier::XS) >= 0.11 perl(Mojolicious::Plugin::AssetPack) >= 1.36 perl(YAML::PP) >= 0.026
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
2023-12-07 19:14:49 +01:00
|
|
|
%define common_requires ntp-daemon perl >= 5.20.0 perl(Carp::Always) >= 0.14.02 perl(Config::IniFiles) perl(Config::Tiny) perl(Cpanel::JSON::XS) >= 4.09 perl(Cwd) perl(Data::Dump) perl(Data::Dumper) perl(Digest::MD5) perl(Filesys::Df) perl(Getopt::Long) perl(Minion) >= 10.25 perl(Mojolicious) >= 9.340.0 perl(Regexp::Common) perl(Storable) perl(Text::Glob) perl(Time::Moment) perl(Try::Tiny)
|
2019-09-17 13:09:33 +02:00
|
|
|
# runtime requirements for the main package that are not required by other sub-packages
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
2023-07-31 15:47:23 +02:00
|
|
|
%define main_requires %assetpack_requires bsdtar git-core hostname perl(BSD::Resource) perl(Carp) perl(CommonMark) perl(Config::Tiny) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DeploymentHandler) perl(DBIx::Class::DynamicDefault) perl(DBIx::Class::OptimisticLocking) perl(DBIx::Class::ResultClass::HashRefInflator) perl(DBIx::Class::Schema::Config) perl(DBIx::Class::Storage::Statistics) perl(Date::Format) perl(DateTime) perl(DateTime::Duration) perl(DateTime::Format::Pg) perl(Exporter) perl(Fcntl) perl(File::Basename) perl(File::Copy) perl(File::Copy::Recursive) perl(File::Path) perl(File::Spec) perl(FindBin) perl(Getopt::Long::Descriptive) perl(IO::Handle) perl(IPC::Run) perl(JSON::Validator) perl(LWP::UserAgent) perl(Module::Load::Conditional) perl(Module::Pluggable) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::RabbitMQ::Client) >= 0.2 perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::OAuth2) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Pod::POM) perl(SQL::Translator) perl(Scalar::Util) perl(Sort::Versions) perl(Text::Diff) perl(Time::HiRes) perl(Time::ParseDate) perl(Time::Piece) perl(Time::Seconds) perl(URI::Escape) perl(YAML::PP) >= 0.026 perl(YAML::XS) perl(aliased) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings)
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
2020-05-07 21:25:45 +02:00
|
|
|
%define client_requires curl git-core jq perl(Getopt::Long::Descriptive) perl(IO::Socket::SSL) >= 2.009 perl(IPC::Run) perl(JSON::Validator) perl(LWP::Protocol::https) perl(LWP::UserAgent) perl(Test::More) perl(YAML::PP) >= 0.020 perl(YAML::XS)
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
2023-02-18 03:10:00 +01:00
|
|
|
%define worker_requires bsdtar openQA-client optipng os-autoinst < 5 perl(Capture::Tiny) perl(File::Map) perl(Minion::Backend::SQLite) >= 5.0.7 perl(Mojo::IOLoop::ReadWriteProcess) >= 0.26 perl(Mojo::SQLite) psmisc sqlite3 >= 3.24.0
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define build_requires %assetpack_requires rubygem(sass)
|
2019-09-17 13:09:33 +02:00
|
|
|
|
|
|
|
# All requirements needed by the tests executed during build-time.
|
|
|
|
# Do not require on this in individual sub-packages except for the devel
|
|
|
|
# package.
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
2023-11-16 19:14:39 +01:00
|
|
|
%define test_requires %common_requires %main_requires %python_scripts_requires %worker_requires ShellCheck curl jq openssh-common os-autoinst-devel perl(App::cpanminus) perl(Perl::Critic) perl(Perl::Critic::Freenode) perl(Selenium::Remote::Driver) >= 1.23 perl(Selenium::Remote::WDKeys) perl(Test::Exception) perl(Test::Fatal) perl(Test::MockModule) perl(Test::MockObject) perl(Test::Mojo) perl(Test::Most) perl(Test::Output) perl(Test::Pod) perl(Test::Strict) perl(Test::Warnings) >= 0.029 postgresql-server python3-setuptools python3-yamllint
|
2019-10-24 11:07:50 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
%define qemu qemu qemu-kvm
|
|
|
|
%else
|
|
|
|
%define qemu qemu
|
|
|
|
%endif
|
2020-04-23 10:30:01 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
2023-05-05 17:10:34 +02:00
|
|
|
%define cover_requires perl(Devel::Cover) perl(Devel::Cover::Report::Codecovbash)
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define devel_no_selenium_requires %build_requires %cover_requires %qemu %test_requires curl perl(Perl::Tidy) postgresql-devel rsync sudo tar xorg-x11-fonts
|
2020-07-12 05:26:44 +02:00
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define devel_requires %devel_no_selenium_requires chromedriver
|
2019-09-17 13:09:33 +02:00
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
Name: openQA
|
2024-01-26 22:02:35 +01:00
|
|
|
Version: 4.6.1706272112.624209b7
|
2017-04-06 11:16:16 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The openQA web-frontend, scheduler and tools
|
2018-09-26 08:38:53 +02:00
|
|
|
License: GPL-2.0-or-later
|
2019-11-10 23:25:57 +01:00
|
|
|
URL: http://os-autoinst.github.io/openQA/
|
2017-04-06 11:16:16 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
# a workaround for set_version looking at random files (so we can't name it .tar.xz)
|
|
|
|
# use update-cache to update it
|
|
|
|
Source1: cache.txz
|
|
|
|
Source101: update-cache.sh
|
2017-10-28 14:28:24 +02:00
|
|
|
BuildRequires: fdupes
|
2020-11-14 09:16:59 +01:00
|
|
|
# for install-opensuse in Makefile
|
2021-07-07 02:24:30 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2020-11-14 09:16:59 +01:00
|
|
|
BuildRequires: openSUSE-release
|
2021-05-20 23:32:45 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: sles-release
|
2021-03-11 17:19:59 +01:00
|
|
|
%endif
|
2021-01-31 21:23:53 +01:00
|
|
|
BuildRequires: %{build_requires}
|
2019-09-17 13:09:33 +02:00
|
|
|
Requires: %{main_requires}
|
2017-10-28 14:28:24 +02:00
|
|
|
Requires: openQA-client = %{version}
|
|
|
|
Requires: openQA-common = %{version}
|
2019-11-27 22:04:36 +01:00
|
|
|
Requires: perl(Minion) >= 10.0
|
2017-10-28 14:28:24 +02:00
|
|
|
# we need to have the same sha1 as expected
|
|
|
|
%requires_eq perl-Mojolicious-Plugin-AssetPack
|
2017-12-06 16:49:48 +01:00
|
|
|
Recommends: %{name}-local-db
|
2017-10-28 14:28:24 +02:00
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(post): perl(SQL::SplitStatement)
|
|
|
|
Recommends: apache2
|
2017-04-06 11:16:16 +02:00
|
|
|
Recommends: apparmor-profiles
|
|
|
|
Recommends: apparmor-utils
|
|
|
|
Recommends: logrotate
|
2020-07-07 13:26:44 +02:00
|
|
|
# the plugin is needed if the auth method is set to "oauth2"
|
|
|
|
Recommends: perl(Mojolicious::Plugin::OAuth2)
|
2021-08-24 18:03:07 +02:00
|
|
|
# required to decompress .tar.xz compressed disk images/isos
|
|
|
|
Recommends: perl(IO::Uncompress::UnXz)
|
2018-11-26 22:40:50 +01:00
|
|
|
# server needs to run an rsync server if worker caching is used
|
|
|
|
Recommends: rsync
|
2023-02-15 19:09:36 +01:00
|
|
|
# We cannot use noarch because of the strict perl-Mojolicious-Plugin-AssetPack
|
|
|
|
# requirement. With noarch it can happen that the rpm built on aarch64 gets
|
|
|
|
# uploaded to download.opensuse.org, and aarch for some reason has an older
|
|
|
|
# version of that module. Then when we install on Tumbleweed, it doesn't
|
|
|
|
# have that older version anymore
|
|
|
|
#BuildArch: noarch
|
2023-11-30 19:14:33 +01:00
|
|
|
ExcludeArch: %{ix86}
|
2017-10-28 14:28:24 +02:00
|
|
|
%{?systemd_requires}
|
2017-04-06 11:16:16 +02:00
|
|
|
%if %{with tests}
|
2019-09-17 13:09:33 +02:00
|
|
|
BuildRequires: %{test_requires}
|
2017-04-06 11:16:16 +02:00
|
|
|
%endif
|
2017-05-29 23:11:52 +02:00
|
|
|
Requires(pre): group(nogroup)
|
2021-08-27 02:02:55 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
BuildRequires: sysuser-tools
|
|
|
|
%sysusers_requires
|
|
|
|
%endif
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%description
|
2017-05-08 13:40:17 +02:00
|
|
|
openQA is a testing framework that allows you to test GUI applications on one
|
|
|
|
hand and bootloader and kernel on the other. In both cases, it is difficult to
|
|
|
|
script tests and verify the output. Output can be a popup window or it can be
|
|
|
|
an error in early boot even before init is executed.
|
|
|
|
|
|
|
|
openQA is an automated test tool that makes it possible to test the whole
|
|
|
|
installation process of an operating system. It uses virtual machines to
|
|
|
|
reproduce the process, check the output (both serial console and screen) in
|
|
|
|
every step and send the necessary keystrokes and commands to proceed to the
|
|
|
|
next. openQA can check whether the system can be installed, whether it works
|
|
|
|
properly in 'live' mode, whether applications work or whether the system
|
|
|
|
responds as expected to different installation options and commands.
|
|
|
|
|
|
|
|
Even more importantly, openQA can run several combinations of tests for every
|
|
|
|
revision of the operating system, reporting the errors detected for each
|
|
|
|
combination of hardware configuration, installation options and variant of the
|
|
|
|
operating system.
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2020-07-12 05:26:44 +02:00
|
|
|
%package no-selenium-devel
|
|
|
|
Summary: Development package pulling in all build+test dependencies except chromedriver for Selenium based tests
|
|
|
|
Requires: %{devel_no_selenium_requires}
|
|
|
|
|
|
|
|
%description no-selenium-devel
|
|
|
|
Development package pulling in all build+test dependencies except chromedriver for Selenium based tests.
|
|
|
|
|
2019-09-17 13:09:33 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development package pulling in all build+test dependencies
|
|
|
|
Requires: %{devel_requires}
|
2023-02-18 03:10:00 +01:00
|
|
|
%ifarch s390x
|
2021-05-20 23:32:45 +02:00
|
|
|
# missing chromedriver dependency
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
%endif
|
2019-09-17 13:09:33 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development package pulling in all build+test dependencies.
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%package common
|
|
|
|
Summary: The openQA common tools for web-frontend and workers
|
2019-09-17 13:09:33 +02:00
|
|
|
Requires: %{common_requires}
|
2019-12-04 22:05:27 +01:00
|
|
|
Requires: perl(Mojolicious) >= 8.24
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%description common
|
2017-10-28 14:28:24 +02:00
|
|
|
This package contain shared resources for openQA web-frontend and
|
2017-04-06 11:16:16 +02:00
|
|
|
openQA workers.
|
|
|
|
|
|
|
|
%package worker
|
|
|
|
Summary: The openQA worker
|
2019-09-17 13:09:33 +02:00
|
|
|
%define worker_requires_including_uncovered_in_tests %worker_requires perl(SQL::SplitStatement)
|
|
|
|
Requires: %{worker_requires_including_uncovered_in_tests}
|
2017-10-28 14:28:24 +02:00
|
|
|
# FIXME: use proper Requires(pre/post/preun/...)
|
2017-04-06 11:16:16 +02:00
|
|
|
PreReq: openQA-common = %{version}
|
|
|
|
Requires(post): coreutils
|
2019-11-08 15:27:35 +01:00
|
|
|
Requires(post): os-autoinst >= 4.6
|
2017-04-06 11:16:16 +02:00
|
|
|
Recommends: qemu
|
2018-11-26 22:40:50 +01:00
|
|
|
# Needed for caching - not required if caching not used...
|
|
|
|
Recommends: rsync
|
2022-12-03 03:16:46 +01:00
|
|
|
# Optionally enabled with USE_PNGQUANT=1
|
|
|
|
Recommends: pngquant
|
2023-11-16 19:14:39 +01:00
|
|
|
# for Build Service Authentication
|
|
|
|
Recommends: openssh-common
|
2017-05-29 23:11:52 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
Requires(pre): group(nogroup)
|
|
|
|
%endif
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%description worker
|
|
|
|
The openQA worker manages test engine (provided by os-autoinst package).
|
|
|
|
|
|
|
|
%package client
|
|
|
|
Summary: Client tools for remote openQA management
|
2019-09-17 13:09:33 +02:00
|
|
|
Requires: %client_requires
|
2018-11-26 22:40:50 +01:00
|
|
|
Requires: openQA-common = %{version}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%description client
|
|
|
|
Tools and support files for openQA client script. Client script is
|
|
|
|
a convenient helper for interacting with openQA webui REST API.
|
|
|
|
|
2019-07-21 02:27:59 +02:00
|
|
|
%if %{with python_scripts}
|
2019-07-18 18:28:32 +02:00
|
|
|
%package python-scripts
|
|
|
|
Summary: Additional scripts in python
|
|
|
|
Requires: %python_scripts_requires
|
|
|
|
|
|
|
|
%description python-scripts
|
|
|
|
Additional scripts for the use of openQA in the python programming language.
|
2019-07-21 02:27:59 +02:00
|
|
|
%endif
|
2019-07-18 18:28:32 +02:00
|
|
|
|
2017-12-06 16:49:48 +01:00
|
|
|
%package local-db
|
|
|
|
Summary: Helper package to ease setup of postgresql DB
|
2023-02-15 19:09:36 +01:00
|
|
|
Requires: %{name} = %{version}
|
2017-12-06 16:49:48 +01:00
|
|
|
Requires: postgresql-server
|
2023-01-18 19:09:04 +01:00
|
|
|
BuildRequires: postgresql-server
|
2017-12-06 16:49:48 +01:00
|
|
|
Supplements: packageand(%name:postgresql-server)
|
|
|
|
|
|
|
|
%description local-db
|
|
|
|
You only need this package if you have a local postgresql server
|
|
|
|
next to the webui.
|
|
|
|
|
2020-05-07 21:25:45 +02:00
|
|
|
%package single-instance
|
2023-07-12 16:01:25 +02:00
|
|
|
Summary: Convenience package for a single-instance setup using apache proxy
|
|
|
|
Provides: %{name}-single-instance-apache
|
|
|
|
Provides: %{name}-single-instance-apache2
|
2022-12-03 03:16:46 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-05-07 21:25:45 +02:00
|
|
|
Requires: %{name}-local-db
|
2022-12-03 03:16:46 +01:00
|
|
|
Requires: %{name}-worker = %{version}
|
2020-05-07 21:25:45 +02:00
|
|
|
Requires: apache2
|
|
|
|
|
|
|
|
%description single-instance
|
|
|
|
Use this package to setup a local instance with all services provided together.
|
|
|
|
|
2023-07-12 16:01:25 +02:00
|
|
|
%package single-instance-nginx
|
|
|
|
Summary: Convenience package for a single-instance setup using nginx proxy
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: %{name}-local-db
|
|
|
|
Requires: %{name}-worker = %{version}
|
|
|
|
Requires: nginx
|
|
|
|
|
|
|
|
%description single-instance-nginx
|
|
|
|
Use this package to setup a local instance with all services provided together.
|
|
|
|
|
2018-12-22 14:41:36 +01:00
|
|
|
%package bootstrap
|
|
|
|
Summary: Automated openQA setup
|
|
|
|
|
|
|
|
%description bootstrap
|
|
|
|
This can automatically setup openQA - either directly on your system
|
|
|
|
or within a systemd-nspawn container.
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%package doc
|
|
|
|
Summary: The openQA documentation
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation material covering installation, configuration, basic test writing, etc.
|
2017-05-11 07:41:11 +02:00
|
|
|
Covering both openQA and also os-autoinst test engine.
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2020-11-16 17:40:43 +01:00
|
|
|
%package auto-update
|
2020-11-14 09:16:59 +01:00
|
|
|
Summary: Automatically upgrade and reboot the system when required
|
2022-04-14 19:49:39 +02:00
|
|
|
Requires: %{name}-common
|
2020-11-14 09:16:59 +01:00
|
|
|
Requires: curl
|
|
|
|
Requires: rebootmgr
|
|
|
|
|
2020-11-16 17:40:43 +01:00
|
|
|
%description auto-update
|
2020-11-14 09:16:59 +01:00
|
|
|
Use this package to install and enable a systemd service for nightly upgrading
|
|
|
|
and rebooting the system if devel:openQA packages are stable.
|
|
|
|
|
2022-04-14 19:49:39 +02:00
|
|
|
%package continuous-update
|
|
|
|
Summary: Continuously update packages from devel:openQA
|
|
|
|
Requires: %{name}-common
|
|
|
|
Requires: curl
|
|
|
|
|
|
|
|
%description continuous-update
|
|
|
|
Use this package to install and enable a systemd service for continuously
|
|
|
|
upgrading the system if devel:openQA packages are stable and contain updates. It
|
|
|
|
is complementary to auto-update which also reboots the system and does updates
|
|
|
|
regardless of whether devel:openQA contains updates.
|
|
|
|
|
2023-06-23 13:39:19 +02:00
|
|
|
%package munin
|
|
|
|
Summary: Munin scripts
|
|
|
|
Requires: curl
|
|
|
|
Requires: munin
|
|
|
|
Requires: munin-node
|
|
|
|
Requires: perl
|
|
|
|
|
|
|
|
%description munin
|
|
|
|
Use this package to install munin scripts that allow to monitor some openQA
|
|
|
|
statistics.
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%prep
|
2017-10-28 14:28:24 +02:00
|
|
|
%setup -q -a1
|
2019-09-17 13:09:33 +02:00
|
|
|
sed -e 's,/bin/env python,/bin/python,' -i script/openqa-label-all
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%build
|
2021-07-07 02:24:30 +02:00
|
|
|
%make_build
|
2021-08-27 02:02:55 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%sysusers_generate_pre usr/lib/sysusers.d/%{name}-worker.conf %{name}-worker %{name}-worker.conf
|
|
|
|
%sysusers_generate_pre usr/lib/sysusers.d/geekotest.conf %{name} geekotest.conf
|
|
|
|
%endif
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
#for double checking
|
|
|
|
%if %{with tests}
|
2019-06-05 16:51:04 +02:00
|
|
|
sed -i '/Perl::Tidy/d' cpanfile
|
2021-12-21 17:04:33 +01:00
|
|
|
cpanm -n --mirror http://no.where/ --installdeps --with-feature=test .
|
2017-04-06 11:16:16 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
# we don't really need the tidy test
|
|
|
|
rm -f t/00-tidy.t
|
|
|
|
|
|
|
|
%if %{with tests}
|
2017-12-05 14:10:41 +01:00
|
|
|
rm -rf %{buildroot}/DB
|
2018-02-02 04:19:20 +01:00
|
|
|
export LC_ALL=en_US.UTF-8
|
2019-11-08 15:27:35 +01:00
|
|
|
# Skip tests not working currently, or flaky, and Selenium tests
|
|
|
|
# https://progress.opensuse.org/issues/19652
|
2020-10-25 22:33:08 +01:00
|
|
|
# 01-test-utilities.t: https://progress.opensuse.org/issues/73162
|
2020-01-16 15:50:15 +01:00
|
|
|
# 17-labels_carry_over.t: https://progress.opensuse.org/issues/60209
|
2020-07-14 13:26:06 +02:00
|
|
|
# api/14-plugin_obs_rsync_async.t: https://progress.opensuse.org/issues/68836
|
2021-08-24 18:03:07 +02:00
|
|
|
# t/43-scheduling-and-worker-scalability.t: https://progress.opensuse.org/issues/96545
|
2019-11-08 15:27:35 +01:00
|
|
|
rm \
|
2020-10-25 22:33:08 +01:00
|
|
|
t/01-test-utilities.t \
|
2020-01-16 15:50:15 +01:00
|
|
|
t/17-labels_carry_over.t \
|
2019-11-08 15:27:35 +01:00
|
|
|
t/25-cache-service.t \
|
2020-07-14 13:26:06 +02:00
|
|
|
t/api/14-plugin_obs_rsync_async.t \
|
2021-08-24 18:03:07 +02:00
|
|
|
t/43-scheduling-and-worker-scalability.t \
|
2019-11-08 15:27:35 +01:00
|
|
|
t/ui/*.t
|
|
|
|
|
2020-09-30 07:32:45 +02:00
|
|
|
# "CI" set with longer timeouts as needed for higher performance variations
|
|
|
|
# within CI systems, e.g. OBS. See t/lib/OpenQA/Test/TimeLimit.pm
|
|
|
|
export CI=1
|
|
|
|
export OPENQA_TEST_TIMEOUT_SCALE_CI=10
|
2021-03-18 17:03:24 +01:00
|
|
|
# Skip container tests that would need additional requirements, e.g.
|
|
|
|
# docker-compose. Also, these tests are less relevant (or not relevant) for
|
|
|
|
# packaging
|
|
|
|
export CONTAINER_TEST=0
|
2022-06-24 17:11:53 +02:00
|
|
|
export HELM_TEST=0
|
2023-10-11 03:58:50 +02:00
|
|
|
# We don't want fatal warnings during package building
|
|
|
|
export PERL_TEST_WARNINGS_ONLY_REPORT_WARNINGS=1
|
2020-07-21 13:27:17 +02:00
|
|
|
make test PROVE_ARGS='-r -v' CHECKSTYLE=0 TEST_PG_PATH=%{buildroot}/DB
|
2018-02-02 04:19:20 +01:00
|
|
|
rm -rf %{buildroot}/DB
|
2017-04-06 11:16:16 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2019-07-21 02:27:59 +02:00
|
|
|
%if !%{with python_scripts}
|
|
|
|
rm script/openqa-label-all
|
|
|
|
%endif
|
2018-04-16 02:11:41 +02:00
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8
|
2017-04-06 11:16:16 +02:00
|
|
|
%make_install
|
|
|
|
|
2021-08-27 02:02:55 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
# we only use sysusers on Tumbleweed
|
|
|
|
rm -rf %{buildroot}/%{_sysusersdir}
|
|
|
|
%endif
|
|
|
|
|
2017-10-28 14:28:24 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/openqa%{_sysconfdir}/openqa
|
|
|
|
ln -s %{_sysconfdir}/openqa/openqa.ini %{buildroot}%{_datadir}/openqa%{_sysconfdir}/openqa/openqa.ini
|
|
|
|
ln -s %{_sysconfdir}/openqa/database.ini %{buildroot}%{_datadir}/openqa%{_sysconfdir}/openqa/database.ini
|
2017-04-06 11:16:16 +02:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2017-10-28 14:28:24 +02:00
|
|
|
ln -s %{_datadir}/openqa/script/client %{buildroot}%{_bindir}/openqa-client
|
2020-04-28 13:25:17 +02:00
|
|
|
ln -s %{_datadir}/openqa/script/openqa-cli %{buildroot}%{_bindir}/openqa-cli
|
2019-06-07 17:54:15 +02:00
|
|
|
ln -s %{_datadir}/openqa/script/openqa-clone-job %{buildroot}%{_bindir}/openqa-clone-job
|
2022-03-17 18:49:03 +01:00
|
|
|
ln -s %{_datadir}/openqa/script/openqa-dump-templates %{buildroot}%{_bindir}/openqa-dump-templates
|
|
|
|
ln -s %{_datadir}/openqa/script/openqa-load-templates %{buildroot}%{_bindir}/openqa-load-templates
|
2019-02-01 00:29:00 +01:00
|
|
|
ln -s %{_datadir}/openqa/script/openqa-clone-custom-git-refspec %{buildroot}%{_bindir}/openqa-clone-custom-git-refspec
|
2020-01-24 11:38:27 +01:00
|
|
|
ln -s %{_datadir}/openqa/script/openqa-validate-yaml %{buildroot}%{_bindir}/openqa-validate-yaml
|
2020-03-02 04:03:46 +01:00
|
|
|
ln -s %{_datadir}/openqa/script/setup-db %{buildroot}%{_bindir}/openqa-setup-db
|
2019-07-21 02:27:59 +02:00
|
|
|
%if %{with python_scripts}
|
2019-07-18 18:28:32 +02:00
|
|
|
ln -s %{_datadir}/openqa/script/openqa-label-all %{buildroot}%{_bindir}/openqa-label-all
|
2019-07-21 02:27:59 +02:00
|
|
|
%endif
|
2017-10-28 14:28:24 +02:00
|
|
|
|
2023-06-23 13:39:19 +02:00
|
|
|
# munin
|
|
|
|
install -d -m 755 %{buildroot}/%{_prefix}/lib/munin/plugins
|
|
|
|
install -m 755 contrib/munin/plugins/minion %{buildroot}/%{_prefix}/lib/munin/plugins/openqa_minion_
|
|
|
|
install -d -m 755 %{buildroot}/%{_sysconfdir}/munin/plugin-conf.d
|
|
|
|
install -m 644 contrib/munin/config/minion.config %{buildroot}/%{_sysconfdir}/munin/plugin-conf.d/openqa-minion
|
|
|
|
|
2017-10-28 14:28:24 +02:00
|
|
|
cd %{buildroot}
|
|
|
|
grep -rl %{_bindir}/env . | while read file; do
|
2018-09-26 08:38:53 +02:00
|
|
|
sed -e 's,%{_bindir}/env perl,%{_bindir}/perl,' -i $file
|
2017-04-06 11:16:16 +02:00
|
|
|
done
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
2019-03-03 14:22:10 +01:00
|
|
|
for i in webui gru worker scheduler websockets slirpvde vde_switch livehandler; do
|
2018-09-26 08:38:53 +02:00
|
|
|
ln -s ../sbin/service %{buildroot}%{_sbindir}/rcopenqa-$i
|
2017-04-06 11:16:16 +02:00
|
|
|
done
|
|
|
|
#
|
|
|
|
install -D -m 644 /dev/null %{buildroot}%{_localstatedir}/log/openqa
|
2017-10-28 14:28:24 +02:00
|
|
|
install -m 0644 %{_sourcedir}/openQA.changes %{buildroot}%{_datadir}/openqa/public/Changelog
|
2017-04-06 11:16:16 +02:00
|
|
|
#
|
|
|
|
mkdir %{buildroot}%{_localstatedir}/lib/openqa/pool/1
|
|
|
|
mkdir %{buildroot}%{_localstatedir}/lib/openqa/cache
|
2018-11-26 22:40:50 +01:00
|
|
|
mkdir %{buildroot}%{_localstatedir}/lib/openqa/webui
|
|
|
|
mkdir %{buildroot}%{_localstatedir}/lib/openqa/webui/cache
|
2017-04-06 11:16:16 +02:00
|
|
|
#
|
2017-10-28 14:28:24 +02:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2021-08-27 02:02:55 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%pre -f %{name}.pre
|
|
|
|
%else
|
|
|
|
|
2021-08-24 18:03:07 +02:00
|
|
|
%pre
|
|
|
|
if ! getent passwd geekotest > /dev/null; then
|
|
|
|
%{_sbindir}/useradd -r -g nogroup -c "openQA user" \
|
|
|
|
-d %{_localstatedir}/lib/openqa geekotest 2>/dev/null || :
|
|
|
|
fi
|
2021-08-27 02:02:55 +02:00
|
|
|
%endif
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_add_pre %{openqa_services}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%pre common
|
|
|
|
if [ "$1" = 1 ]; then
|
|
|
|
# upgrade from openQA -> openQA-common (before -> after package split)
|
|
|
|
# old data needs to be moved to new locations else cpio fail during package deploying
|
|
|
|
if [ -d "%{_localstatedir}/lib/openqa/" -a ! -d "%{_localstatedir}/lib/openqa/share" ]; then
|
|
|
|
echo "### performing migration of openQA data"
|
|
|
|
mkdir "%{_localstatedir}/lib/openqa/share"
|
|
|
|
if [ -e "%{_localstatedir}/lib/openqa/factory" ]; then
|
|
|
|
echo "### moving %{_localstatedir}/lib/openqa/factory to %{_localstatedir}/lib/openqa/share/"
|
|
|
|
mv "%{_localstatedir}/lib/openqa/factory" "%{_localstatedir}/lib/openqa/share/"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2021-08-27 02:02:55 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%pre worker -f openQA-worker.pre
|
|
|
|
%else
|
|
|
|
|
2021-08-24 18:03:07 +02:00
|
|
|
%pre worker
|
|
|
|
if ! getent passwd _openqa-worker > /dev/null; then
|
|
|
|
%{_sbindir}/useradd -r -g nogroup -c "openQA worker" \
|
|
|
|
-d %{_localstatedir}/lib/empty _openqa-worker 2>/dev/null || :
|
|
|
|
# might fail for non-kvm workers (qemu package owns the group)
|
|
|
|
%{_sbindir}/usermod _openqa-worker -a -G kvm || :
|
|
|
|
fi
|
2021-08-27 02:02:55 +02:00
|
|
|
%endif
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_add_pre %{openqa_worker_services}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2020-11-16 17:40:43 +01:00
|
|
|
%pre auto-update
|
2020-11-26 01:43:21 +01:00
|
|
|
%service_add_pre openqa-auto-update.timer
|
2020-11-14 09:16:59 +01:00
|
|
|
|
2022-04-14 19:49:39 +02:00
|
|
|
%pre continuous-update
|
|
|
|
%service_add_pre openqa-continuous-update.timer
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%post
|
2020-01-09 15:50:04 +01:00
|
|
|
%tmpfiles_create %{_tmpfilesdir}/openqa-webui.conf
|
2017-04-06 11:16:16 +02:00
|
|
|
# install empty log file
|
2017-10-28 14:28:24 +02:00
|
|
|
if [ ! -e %{_localstatedir}/log/openqa ]; then
|
2017-04-06 11:16:16 +02:00
|
|
|
install -D -m 644 -o geekotest /dev/null %{_localstatedir}/log/openqa || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $1 -eq 1 ]; then
|
2023-07-02 06:55:18 +02:00
|
|
|
echo "### copy and edit %{_sysconfdir}/apache2/vhosts.d/openqa.conf.template if using apache!"
|
2023-07-08 06:23:19 +02:00
|
|
|
echo "### copy and edit %{_sysconfdir}/nginx/vhosts.d/openqa.conf.template if using nginx!"
|
2018-09-26 08:38:53 +02:00
|
|
|
echo "### run sudo %{_datadir}/openqa/script/fetchneedles"
|
2017-04-06 11:16:16 +02:00
|
|
|
else
|
2018-09-26 08:38:53 +02:00
|
|
|
if [ -d "%{_localstatedir}/lib/openqa/share/testresults" ]; then
|
|
|
|
# remove the symlink
|
|
|
|
rm "%{_localstatedir}/lib/openqa/testresults"
|
|
|
|
mv "%{_localstatedir}/lib/openqa/share/testresults" "%{_localstatedir}/lib/openqa/"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# we don't want to require the scheduler for the webui (so we can stop it independent)
|
|
|
|
# but it should be enabled together with the webui
|
|
|
|
if test "$(systemctl is-enabled openqa-webui.service)" = "enabled"; then
|
|
|
|
systemctl enable openqa-scheduler.service
|
|
|
|
fi
|
2017-04-06 11:16:16 +02:00
|
|
|
fi
|
|
|
|
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_add_post %{openqa_services}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%post worker
|
|
|
|
%tmpfiles_create %{_tmpfilesdir}/openqa.conf
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_add_post %{openqa_worker_services}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2020-11-16 17:40:43 +01:00
|
|
|
%post auto-update
|
2020-11-26 01:43:21 +01:00
|
|
|
%service_add_post openqa-auto-update.timer
|
2020-11-14 09:16:59 +01:00
|
|
|
|
2022-04-14 19:49:39 +02:00
|
|
|
%post continuous-update
|
|
|
|
%service_add_post openqa-continuous-update.timer
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%preun
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_del_preun %{openqa_services}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%preun worker
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_del_preun %{openqa_worker_services}
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2020-11-16 17:40:43 +01:00
|
|
|
%preun auto-update
|
2020-11-26 01:43:21 +01:00
|
|
|
# not changing the service which might have triggered this update itself
|
|
|
|
%service_del_preun openqa-auto-update.timer
|
2020-11-14 09:16:59 +01:00
|
|
|
|
2022-04-14 19:49:39 +02:00
|
|
|
%preun continuous-update
|
|
|
|
# not changing the service which might have triggered this update itself
|
|
|
|
%service_del_preun openqa-continuous-update.timer
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%postun
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_del_postun %{openqa_services}
|
2018-12-13 06:41:07 +01:00
|
|
|
%restart_on_update apparmor
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%postun worker
|
2021-02-03 05:24:03 +01:00
|
|
|
# restart worker services on updates; does *not* include services for worker slots unless openqa-worker.target
|
|
|
|
# is running at the time of the update
|
2017-10-28 14:28:24 +02:00
|
|
|
%service_del_postun %{openqa_worker_services}
|
2021-02-03 05:24:03 +01:00
|
|
|
# restart running openqa-worker-auto-restart@.service units without interrupting jobs
|
|
|
|
# notes: noop if no such units are running; daemon-reload already done by service_del_postun macro;
|
|
|
|
# "$1 -ge 1" checks for a package upgrade
|
|
|
|
if [ -x /usr/bin/systemctl ] && [ $1 -ge 1 ]; then
|
2021-02-12 14:02:43 +01:00
|
|
|
/usr/bin/systemctl reload 'openqa-worker-auto-restart@*.service' || :
|
2021-02-03 05:24:03 +01:00
|
|
|
fi
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2020-11-16 17:40:43 +01:00
|
|
|
%postun auto-update
|
2020-11-26 01:43:21 +01:00
|
|
|
%service_del_postun openqa-auto-update.timer
|
2020-11-14 09:16:59 +01:00
|
|
|
|
2022-04-14 19:49:39 +02:00
|
|
|
%postun continuous-update
|
|
|
|
%service_del_postun openqa-continuous-update.timer
|
|
|
|
|
2017-12-06 16:49:48 +01:00
|
|
|
%post local-db
|
|
|
|
%service_add_post openqa-setup-db.service
|
|
|
|
|
|
|
|
%preun local-db
|
|
|
|
%service_del_preun openqa-setup-db.service
|
|
|
|
|
2018-08-10 19:20:29 +02:00
|
|
|
%postun local-db
|
2017-12-06 16:49:48 +01:00
|
|
|
%service_del_postun openqa-setup-db.service
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%files
|
|
|
|
%doc README.asciidoc
|
|
|
|
%{_sbindir}/rcopenqa-gru
|
|
|
|
%{_sbindir}/rcopenqa-scheduler
|
|
|
|
%{_sbindir}/rcopenqa-websockets
|
|
|
|
%{_sbindir}/rcopenqa-webui
|
2018-09-26 08:38:53 +02:00
|
|
|
%{_sbindir}/rcopenqa-livehandler
|
2017-04-06 11:16:16 +02:00
|
|
|
%dir %{_sysconfdir}/openqa
|
|
|
|
%config(noreplace) %attr(-,geekotest,root) %{_sysconfdir}/openqa/openqa.ini
|
|
|
|
%config(noreplace) %attr(-,geekotest,root) %{_sysconfdir}/openqa/database.ini
|
|
|
|
%dir %{_datadir}/openqa
|
|
|
|
%dir %{_datadir}/openqa/etc
|
2017-10-28 14:28:24 +02:00
|
|
|
%dir %{_datadir}/openqa%{_sysconfdir}/openqa
|
|
|
|
%{_datadir}/openqa%{_sysconfdir}/openqa/openqa.ini
|
|
|
|
%{_datadir}/openqa%{_sysconfdir}/openqa/database.ini
|
2017-04-06 11:16:16 +02:00
|
|
|
%config %{_sysconfdir}/logrotate.d
|
|
|
|
# apache vhost
|
|
|
|
%dir %{_sysconfdir}/apache2
|
|
|
|
%dir %{_sysconfdir}/apache2/vhosts.d
|
|
|
|
%config %{_sysconfdir}/apache2/vhosts.d/openqa.conf.template
|
2023-07-08 06:23:19 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/apache2/vhosts.d/openqa-common.inc
|
2017-04-06 11:16:16 +02:00
|
|
|
%config %{_sysconfdir}/apache2/vhosts.d/openqa-ssl.conf.template
|
2023-07-02 06:55:18 +02:00
|
|
|
# nginx vhost
|
|
|
|
%dir %{_sysconfdir}/nginx
|
|
|
|
%dir %{_sysconfdir}/nginx/vhosts.d
|
2023-07-08 06:23:19 +02:00
|
|
|
%config %{_sysconfdir}/nginx/vhosts.d/openqa.conf.template
|
|
|
|
%config(noreplace) %{_sysconfdir}/nginx/vhosts.d/openqa-locations.inc
|
|
|
|
%config(noreplace) %{_sysconfdir}/nginx/vhosts.d/openqa-upstreams.inc
|
2017-04-06 11:16:16 +02:00
|
|
|
# apparmor profile
|
|
|
|
%dir %{_sysconfdir}/apparmor.d
|
|
|
|
%config %{_sysconfdir}/apparmor.d/usr.share.openqa.script.openqa
|
2019-10-22 03:06:57 +02:00
|
|
|
%dir %{_sysconfdir}/apparmor.d/local
|
|
|
|
%config %{_sysconfdir}/apparmor.d/local/usr.share.openqa.script.openqa
|
2017-04-06 11:16:16 +02:00
|
|
|
# init
|
|
|
|
%dir %{_unitdir}
|
|
|
|
%{_unitdir}/openqa-webui.service
|
2018-06-20 07:27:39 +02:00
|
|
|
%{_unitdir}/openqa-livehandler.service
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_unitdir}/openqa-gru.service
|
2023-01-14 03:08:59 +01:00
|
|
|
%dir %{_unitdir}/openqa-gru.service.requires
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_unitdir}/openqa-scheduler.service
|
2023-01-14 03:08:59 +01:00
|
|
|
%dir %{_unitdir}/openqa-scheduler.service.requires
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_unitdir}/openqa-websockets.service
|
2023-01-14 03:08:59 +01:00
|
|
|
%dir %{_unitdir}/openqa-websockets.service.requires
|
2019-09-17 13:09:33 +02:00
|
|
|
%{_unitdir}/openqa-enqueue-audit-event-cleanup.service
|
|
|
|
%{_unitdir}/openqa-enqueue-audit-event-cleanup.timer
|
2020-02-05 03:38:19 +01:00
|
|
|
%{_unitdir}/openqa-enqueue-asset-cleanup.service
|
|
|
|
%{_unitdir}/openqa-enqueue-asset-cleanup.timer
|
|
|
|
%{_unitdir}/openqa-enqueue-result-cleanup.service
|
|
|
|
%{_unitdir}/openqa-enqueue-result-cleanup.timer
|
2020-02-19 03:38:13 +01:00
|
|
|
%{_unitdir}/openqa-enqueue-bug-cleanup.service
|
|
|
|
%{_unitdir}/openqa-enqueue-bug-cleanup.timer
|
2020-01-09 15:50:04 +01:00
|
|
|
%{_tmpfilesdir}/openqa-webui.conf
|
2017-04-06 11:16:16 +02:00
|
|
|
# web libs
|
|
|
|
%dir %{_datadir}/openqa
|
2020-04-09 10:30:05 +02:00
|
|
|
%{_datadir}/openqa/lib/DBIx/
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/LiveHandler.pm
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/Resource/
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/Scheduler/
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/Schema/
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/WebAPI/
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/WebSockets/
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_datadir}/openqa/templates
|
|
|
|
%{_datadir}/openqa/public
|
|
|
|
%{_datadir}/openqa/assets
|
|
|
|
%{_datadir}/openqa/dbicdh
|
2020-05-19 13:25:54 +02:00
|
|
|
%{_datadir}/openqa/script/configure-web-proxy
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_datadir}/openqa/script/create_admin
|
|
|
|
%{_datadir}/openqa/script/fetchneedles
|
|
|
|
%{_datadir}/openqa/script/initdb
|
|
|
|
%{_datadir}/openqa/script/openqa
|
|
|
|
%{_datadir}/openqa/script/openqa-scheduler
|
2020-05-10 05:25:51 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-scheduler-daemon
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-websockets
|
2020-05-10 05:25:51 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-websockets-daemon
|
2018-06-20 07:27:39 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-livehandler
|
2020-05-10 05:25:51 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-livehandler-daemon
|
2020-04-04 18:29:57 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-enqueue-asset-cleanup
|
|
|
|
%{_datadir}/openqa/script/openqa-enqueue-audit-event-cleanup
|
|
|
|
%{_datadir}/openqa/script/openqa-enqueue-bug-cleanup
|
|
|
|
%{_datadir}/openqa/script/openqa-enqueue-result-cleanup
|
2020-05-10 05:25:51 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-gru
|
2021-04-01 08:33:03 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-rollback
|
2020-05-10 05:25:51 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-webui-daemon
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_datadir}/openqa/script/upgradedb
|
|
|
|
%{_datadir}/openqa/script/modify_needle
|
|
|
|
# TODO: define final user
|
|
|
|
%defattr(-,geekotest,root)
|
|
|
|
# attention: never package subdirectories owned by a user other
|
|
|
|
# than root as that opens a security hole!
|
|
|
|
%dir %{_localstatedir}/lib/openqa/db
|
|
|
|
%dir %{_localstatedir}/lib/openqa/images
|
2018-11-26 22:40:50 +01:00
|
|
|
%dir %{_localstatedir}/lib/openqa/webui
|
|
|
|
%dir %{_localstatedir}/lib/openqa/webui/cache
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_localstatedir}/lib/openqa/testresults
|
|
|
|
%dir %{_localstatedir}/lib/openqa/share/tests
|
|
|
|
%dir %{_localstatedir}/lib/openqa/share/factory
|
|
|
|
# iso hdd repo must be geekotest writable to enable *_URL and HDD upload functionality
|
|
|
|
%dir %{_localstatedir}/lib/openqa/share/factory/iso
|
|
|
|
%dir %{_localstatedir}/lib/openqa/share/factory/hdd
|
|
|
|
%dir %{_localstatedir}/lib/openqa/share/factory/repo
|
|
|
|
%dir %{_localstatedir}/lib/openqa/share/factory/other
|
|
|
|
%ghost %{_localstatedir}/log/openqa
|
2021-08-27 02:02:55 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%{_sysusersdir}/geekotest.conf
|
|
|
|
%endif
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2019-09-17 13:09:33 +02:00
|
|
|
%files devel
|
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%files common
|
|
|
|
%dir %{_datadir}/openqa
|
|
|
|
%{_datadir}/openqa/lib
|
2020-04-09 10:30:05 +02:00
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/CacheService/
|
|
|
|
%exclude %{_datadir}/openqa/lib/DBIx/
|
2017-04-06 11:16:16 +02:00
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/Client.pm
|
2018-11-26 22:40:50 +01:00
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/Client
|
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/UserAgent.pm
|
2020-04-09 10:30:05 +02:00
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/LiveHandler.pm
|
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/Resource/
|
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/Scheduler/
|
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/Schema/
|
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/WebAPI/
|
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/WebSockets/
|
|
|
|
%exclude %{_datadir}/openqa/lib/OpenQA/Worker/
|
2017-04-06 11:16:16 +02:00
|
|
|
%dir %{_localstatedir}/lib/openqa
|
|
|
|
%ghost %dir %{_localstatedir}/lib/openqa/share/
|
|
|
|
%{_localstatedir}/lib/openqa/factory
|
|
|
|
%{_localstatedir}/lib/openqa/script
|
|
|
|
%{_localstatedir}/lib/openqa/tests
|
2022-04-14 19:49:39 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-check-devel-repo
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%files worker
|
2020-04-09 10:30:05 +02:00
|
|
|
%{_datadir}/openqa/lib/OpenQA/CacheService/
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/Worker/
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_sbindir}/rcopenqa-slirpvde
|
|
|
|
%{_sbindir}/rcopenqa-vde_switch
|
|
|
|
%{_sbindir}/rcopenqa-worker
|
|
|
|
%config(noreplace) %{_sysconfdir}/openqa/workers.ini
|
|
|
|
%config(noreplace) %attr(0400,_openqa-worker,root) %{_sysconfdir}/openqa/client.conf
|
|
|
|
# apparmor profile
|
|
|
|
%dir %{_sysconfdir}/apparmor.d
|
|
|
|
%config %{_sysconfdir}/apparmor.d/usr.share.openqa.script.worker
|
2021-11-28 09:03:57 +01:00
|
|
|
%dir %{_sysconfdir}/apparmor.d/local
|
|
|
|
%config %{_sysconfdir}/apparmor.d/local/usr.share.openqa.script.worker
|
2017-04-06 11:16:16 +02:00
|
|
|
# init
|
|
|
|
%dir %{_unitdir}
|
2020-08-25 13:27:35 +02:00
|
|
|
%{_systemdgeneratordir}
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_unitdir}/openqa-worker.target
|
2023-10-13 11:59:07 +02:00
|
|
|
%{_unitdir}/openqa-worker.slice
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_unitdir}/openqa-worker@.service
|
2022-06-05 19:43:14 +02:00
|
|
|
%{_unitdir}/openqa-worker-plain@.service
|
2018-11-26 22:40:50 +01:00
|
|
|
%{_unitdir}/openqa-worker-cacheservice-minion.service
|
|
|
|
%{_unitdir}/openqa-worker-cacheservice.service
|
2017-06-14 08:54:41 +02:00
|
|
|
%{_unitdir}/openqa-worker-no-cleanup@.service
|
2020-12-17 02:18:22 +01:00
|
|
|
%{_unitdir}/openqa-worker-auto-restart@.service
|
2021-02-03 05:24:03 +01:00
|
|
|
%{_unitdir}/openqa-reload-worker-auto-restart@.service
|
|
|
|
%{_unitdir}/openqa-reload-worker-auto-restart@.path
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_unitdir}/openqa-slirpvde.service
|
|
|
|
%{_unitdir}/openqa-vde_switch.service
|
2020-05-10 05:25:51 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-slirpvde
|
|
|
|
%{_datadir}/openqa/script/openqa-vde_switch
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_tmpfilesdir}/openqa.conf
|
|
|
|
%ghost %dir %{_rundir}/openqa
|
|
|
|
# worker libs
|
|
|
|
%dir %{_datadir}/openqa
|
|
|
|
%dir %{_datadir}/openqa/script
|
|
|
|
%{_datadir}/openqa/script/worker
|
2018-11-26 22:40:50 +01:00
|
|
|
%{_datadir}/openqa/script/openqa-workercache
|
2020-05-10 05:25:51 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-workercache-daemon
|
|
|
|
%{_datadir}/openqa/script/openqa-worker-cacheservice-minion
|
2017-04-06 11:16:16 +02:00
|
|
|
%dir %{_localstatedir}/lib/openqa/pool
|
|
|
|
%defattr(-,_openqa-worker,root)
|
|
|
|
%dir %{_localstatedir}/lib/openqa/cache
|
|
|
|
# own one pool - to create the others is task of the admin
|
|
|
|
%dir %{_localstatedir}/lib/openqa/pool/1
|
2021-08-27 02:02:55 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%{_sysusersdir}/%{name}-worker.conf
|
|
|
|
%endif
|
2017-04-06 11:16:16 +02:00
|
|
|
|
|
|
|
%files client
|
|
|
|
%dir %{_datadir}/openqa
|
|
|
|
%dir %{_datadir}/openqa/script
|
|
|
|
%{_datadir}/openqa/script/client
|
|
|
|
%{_datadir}/openqa/script/clone_job.pl
|
|
|
|
%{_datadir}/openqa/script/dump_templates
|
|
|
|
%{_datadir}/openqa/script/load_templates
|
2022-03-17 18:49:03 +01:00
|
|
|
%{_datadir}/openqa/script/openqa-dump-templates
|
|
|
|
%{_datadir}/openqa/script/openqa-load-templates
|
2020-04-28 13:25:17 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-cli
|
2019-06-07 17:54:15 +02:00
|
|
|
%{_datadir}/openqa/script/openqa-clone-job
|
2019-02-01 00:29:00 +01:00
|
|
|
%{_datadir}/openqa/script/openqa-clone-custom-git-refspec
|
2020-01-24 11:38:27 +01:00
|
|
|
%{_datadir}/openqa/script/openqa-validate-yaml
|
2017-04-06 11:16:16 +02:00
|
|
|
%dir %{_datadir}/openqa/lib
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/Client.pm
|
2018-11-26 22:40:50 +01:00
|
|
|
%{_datadir}/openqa/lib/OpenQA/Client
|
|
|
|
%{_datadir}/openqa/lib/OpenQA/UserAgent.pm
|
2017-04-06 11:16:16 +02:00
|
|
|
%{_bindir}/openqa-client
|
2020-04-28 13:25:17 +02:00
|
|
|
%{_bindir}/openqa-cli
|
2017-10-28 14:28:24 +02:00
|
|
|
%{_bindir}/openqa-clone-job
|
|
|
|
%{_bindir}/openqa-dump-templates
|
|
|
|
%{_bindir}/openqa-load-templates
|
2019-02-01 00:29:00 +01:00
|
|
|
%{_bindir}/openqa-clone-custom-git-refspec
|
2020-01-24 11:38:27 +01:00
|
|
|
%{_bindir}/openqa-validate-yaml
|
2017-04-06 11:16:16 +02:00
|
|
|
|
2019-07-21 02:27:59 +02:00
|
|
|
%if %{with python_scripts}
|
2019-07-18 18:28:32 +02:00
|
|
|
%files python-scripts
|
|
|
|
%{_datadir}/openqa/script/openqa-label-all
|
|
|
|
%{_bindir}/openqa-label-all
|
2019-07-21 02:27:59 +02:00
|
|
|
%endif
|
2019-07-18 18:28:32 +02:00
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%files doc
|
|
|
|
%doc docs/*
|
|
|
|
|
2017-12-06 16:49:48 +01:00
|
|
|
%files local-db
|
|
|
|
%{_unitdir}/openqa-setup-db.service
|
2023-01-14 03:08:59 +01:00
|
|
|
%{_unitdir}/openqa-gru.service.requires/postgresql.service
|
|
|
|
%{_unitdir}/openqa-scheduler.service.requires/postgresql.service
|
|
|
|
%{_unitdir}/openqa-websockets.service.requires/postgresql.service
|
2020-02-28 20:05:16 +01:00
|
|
|
%{_datadir}/openqa/script/setup-db
|
|
|
|
%{_bindir}/openqa-setup-db
|
2017-12-06 16:49:48 +01:00
|
|
|
|
2020-05-07 21:25:45 +02:00
|
|
|
%files single-instance
|
|
|
|
|
2023-07-14 11:58:18 +02:00
|
|
|
%files single-instance-nginx
|
|
|
|
|
2018-12-22 14:41:36 +01:00
|
|
|
%files bootstrap
|
|
|
|
%{_datadir}/openqa/script/openqa-bootstrap
|
|
|
|
%{_datadir}/openqa/script/openqa-bootstrap-container
|
|
|
|
|
2020-11-16 17:40:43 +01:00
|
|
|
%files auto-update
|
2020-11-14 09:16:59 +01:00
|
|
|
%dir %{_unitdir}
|
2020-11-16 17:40:43 +01:00
|
|
|
%{_unitdir}/openqa-auto-update.*
|
|
|
|
%{_datadir}/openqa/script/openqa-auto-update
|
2022-04-14 19:49:39 +02:00
|
|
|
|
|
|
|
%files continuous-update
|
|
|
|
%dir %{_unitdir}
|
|
|
|
%{_unitdir}/openqa-continuous-update.*
|
|
|
|
%{_datadir}/openqa/script/openqa-continuous-update
|
2020-11-14 09:16:59 +01:00
|
|
|
|
2023-06-23 13:39:19 +02:00
|
|
|
%files munin
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc contrib/munin/config/minion.config
|
|
|
|
%dir %{_prefix}/lib/munin
|
|
|
|
%dir %{_prefix}/lib/munin/plugins
|
|
|
|
%dir %{_sysconfdir}/munin
|
|
|
|
%dir %{_sysconfdir}/munin/plugin-conf.d
|
|
|
|
%{_prefix}/lib/munin/plugins/openqa_minion_
|
2023-07-02 06:55:18 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/openqa-minion
|
2023-06-23 13:39:19 +02:00
|
|
|
|
2017-04-06 11:16:16 +02:00
|
|
|
%changelog
|