SHA256
1
0
forked from pool/openQA

Offline generation of 4.5.1509097496.8b8e8e20

OBS-URL: https://build.opensuse.org/package/show/devel:openQA:tested/openQA?expand=0&rev=25
This commit is contained in:
Oliver Kurz 2017-10-30 11:02:08 +00:00 committed by Git OBS Bridge
parent 7a37c0b85f
commit 147f22b295
9 changed files with 25 additions and 1912 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0"?>
<services>
<service name="tar_scm">
<service name="tar_scm" mode="disabled">
<param name="url">git://github.com/os-autoinst/openQA.git</param>
<param name="versionprefix">4.5</param>
<param name="versionformat">%ct.%h</param>
@ -8,11 +9,10 @@
<param name="changesgenerate">enable</param>
<param name="changesauthor">rd-ops-cm@suse.de</param>
</service>
<service name="recompress">
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version">
<service name="set_version" mode="disabled">
</service>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4de29e413cc3bf9c5f1ebc5b1910e7fa8888dab3c04c55cc37bff3b455021639
size 1432080

View File

@ -1,411 +0,0 @@
#
# spec file for package openQA
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# can't use linebreaks here!
%define openqa_services openqa-webui.service openqa-gru.service openqa-websockets.service openqa-scheduler.service openqa-resource-allocator.service
%define openqa_worker_services openqa-worker.target openqa-slirpvde.service openqa-vde_switch.service
%if %{undefined tmpfiles_create}
%define tmpfiles_create() \
%{_bindir}/systemd-tmpfiles --create %{?*} || : \
%{nil}
%endif
%if 0%{?suse_version} >= 1730
%ifarch x86_64
%bcond_without tests
%else
%bcond_with tests
%endif
%else
%bcond_with tests
%endif
# runtime requirements that also the testsuite needs
%define t_requires perl(DBD::SQLite) perl(DBIx::Class) perl(Config::IniFiles) perl(SQL::Translator) perl(Date::Format) perl(File::Copy::Recursive) perl(DateTime::Format::SQLite) perl(Net::OpenID::Consumer) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Plugin::AssetPack) perl(aliased) perl(Config::Tiny) perl(DBIx::Class::DynamicDefault) perl(DBIx::Class::Schema::Config) perl(DBIx::Class::Storage::Statistics) perl(IO::Socket::SSL) perl(Data::Dump) perl(DBIx::Class::OptimisticLocking) perl(Text::Markdown) perl(Net::DBus) perl(IPC::Run) perl(Archive::Extract) perl(CSS::Minifier::XS) perl(JavaScript::Minifier::XS) perl(Time::ParseDate) perl(Sort::Versions) perl(Mojo::RabbitMQ::Client) perl(BSD::Resource)
Name: openQA
Version: 4.5.1509097496.8b8e8e20
Release: 0
Summary: The openQA web-frontend, scheduler and tools
License: GPL-2.0+
Group: Development/Tools/Other
Url: http://os-autoinst.github.io/openQA/
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
Source100: openQA-rpmlintrc
Source101: update-cache.sh
BuildRequires: %{t_requires}
BuildRequires: fdupes
BuildRequires: os-autoinst
BuildRequires: systemd
# critical bug fix
BuildRequires: perl(DBIx::Class) >= 0.082801
BuildRequires: perl(Mojolicious) >= 7.24
BuildRequires: perl(Mojolicious::Plugin::AssetPack) >= 1.36
BuildRequires: rubygem(sass)
Requires: dbus-1
# needed for test suite
Requires: git-core
Requires: openQA-client = %{version}
Requires: openQA-common = %{version}
# needed for saving needles optimized
Requires: optipng
Requires: perl(DBIx::Class) >= 0.082801
# needed for openid support
Requires: perl(LWP::Protocol::https)
Requires: perl(URI)
# we need to have the same sha1 as expected
%requires_eq perl-Mojolicious-Plugin-AssetPack
Requires(post): coreutils
Requires(post): sqlite3
Requires(post): perl(DBIx::Class::DeploymentHandler)
Requires(post): perl(SQL::SplitStatement)
Recommends: apache2
Recommends: apparmor-profiles
Recommends: apparmor-utils
Recommends: logrotate
Recommends: perl(DBD::Pg)
# for postgresql
Recommends: perl(DateTime::Format::Pg)
BuildArch: noarch
ExcludeArch: i586
%{?systemd_requires}
%if %{with tests}
BuildRequires: perl-App-cpanminus
BuildRequires: phantomjs
BuildRequires: perl(Mojo::RabbitMQ::Client)
BuildRequires: perl(Perl::Critic)
BuildRequires: perl(Perl::Tidy)
BuildRequires: perl(Selenium::Remote::Driver)
BuildRequires: perl(Test::Compile)
BuildRequires: perl(Test::MockObject)
BuildRequires: perl(Test::Warnings)
%endif
%if 0%{?suse_version} >= 1330
Requires(pre): group(nogroup)
%endif
%description
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.
%package common
Summary: The openQA common tools for web-frontend and workers
Group: Development/Tools/Other
Requires: %{t_requires}
Requires: perl(Mojolicious) >= 7.24
%description common
This package contain shared resources for openQA web-frontend and
openQA workers.
%package worker
Summary: The openQA worker
Group: Development/Tools/Other
Requires: openQA-client = %{version}
Requires: os-autoinst < 5
Requires: perl(SQL::SplitStatement)
# FIXME: use proper Requires(pre/post/preun/...)
PreReq: openQA-common = %{version}
Requires(post): coreutils
Requires(post): os-autoinst >= 4.4
Recommends: qemu
%if 0%{?suse_version} >= 1330
Requires(pre): group(nogroup)
%endif
%description worker
The openQA worker manages test engine (provided by os-autoinst package).
%package client
Summary: Client tools for remote openQA management
Group: Development/Tools/Other
Requires: perl(Config::IniFiles)
Requires: perl(Data::Dump)
Requires: perl(Getopt::Long)
Requires: perl(JSON)
Requires: perl(Mojolicious)
%description client
Tools and support files for openQA client script. Client script is
a convenient helper for interacting with openQA webui REST API.
%package doc
Summary: The openQA documentation
Group: Development/Tools/Other
%description doc
Documentation material covering installation, configuration, basic test writing, etc.
Covering both openQA and also os-autoinst test engine.
%prep
%setup -q -a1
%build
make %{?_smp_mflags}
%check
#for double checking
%if %{with tests}
cpanm --installdeps --with-feature=test .
%endif
# we don't really need the tidy test
rm -f t/00-tidy.t
%if %{with tests}
#make test
OBS_RUN=1 prove -r -j2 -v
%endif
%install
%make_install
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
mkdir -p %{buildroot}%{_bindir}
ln -s %{_datadir}/openqa/script/client %{buildroot}%{_bindir}/openqa-client
ln -s %{_datadir}/openqa/script/clone_job.pl %{buildroot}%{_bindir}/openqa-clone-job
ln -s %{_datadir}/openqa/script/dump_templates %{buildroot}%{_bindir}/openqa-dump-templates
ln -s %{_datadir}/openqa/script/load_templates %{buildroot}%{_bindir}/openqa-load-templates
cd %{buildroot}
grep -rl %{_bindir}/env . | while read file; do
sed -e 's,%{_bindir}/env perl,%{_bindir}/perl,' -i $file
done
mkdir -p %{buildroot}%{_sbindir}
for i in webui gru worker resource-allocator scheduler websockets slirpvde vde_switch; do
ln -s ../sbin/service %{buildroot}%{_sbindir}/rcopenqa-$i
done
#
install -D -m 644 /dev/null %{buildroot}%{_localstatedir}/log/openqa
install -m 0644 %{_sourcedir}/openQA.changes %{buildroot}%{_datadir}/openqa/public/Changelog
#
mkdir %{buildroot}%{_localstatedir}/lib/openqa/pool/1
mkdir %{buildroot}%{_localstatedir}/lib/openqa/cache
#
%fdupes %{buildroot}/%{_prefix}
%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
%service_add_pre %{openqa_services}
%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
%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
%service_add_pre %{openqa_worker_services}
%post
# install empty log file
if [ ! -e %{_localstatedir}/log/openqa ]; then
install -D -m 644 -o geekotest /dev/null %{_localstatedir}/log/openqa || :
fi
if [ $1 -eq 1 ]; then
echo "### copy and edit %{_sysconfdir}/apache2/vhosts.d/openqa.conf.template!"
echo "### run sudo %{_datadir}/openqa/script/fetchneedles"
else
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
fi
%service_add_post %{openqa_services}
%post worker
%tmpfiles_create %{_tmpfilesdir}/openqa.conf
%service_add_post %{openqa_worker_services}
%preun
%service_del_preun %{openqa_services}
%preun worker
%service_del_preun %{openqa_worker_services}
%postun
%service_del_postun %{openqa_services}
%restart_on_update boot.apparmor
%postun worker
%service_del_postun %{openqa_worker_services}
%files
%doc README.asciidoc
%{_sbindir}/rcopenqa-gru
%{_sbindir}/rcopenqa-scheduler
%{_sbindir}/rcopenqa-resource-allocator
%{_sbindir}/rcopenqa-websockets
%{_sbindir}/rcopenqa-webui
%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
%dir %{_datadir}/openqa%{_sysconfdir}/openqa
%{_datadir}/openqa%{_sysconfdir}/openqa/openqa.ini
%{_datadir}/openqa%{_sysconfdir}/openqa/database.ini
%config %{_sysconfdir}/logrotate.d
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.opensuse.openqa.conf
# apache vhost
%dir %{_sysconfdir}/apache2
%dir %{_sysconfdir}/apache2/vhosts.d
%config %{_sysconfdir}/apache2/vhosts.d/openqa.conf.template
%config %{_sysconfdir}/apache2/vhosts.d/openqa-common.inc
%config %{_sysconfdir}/apache2/vhosts.d/openqa-ssl.conf.template
# apparmor profile
%dir %{_sysconfdir}/apparmor.d
%config %{_sysconfdir}/apparmor.d/usr.share.openqa.script.openqa
# init
%dir %{_unitdir}
%{_unitdir}/openqa-webui.service
%{_unitdir}/openqa-gru.service
%{_unitdir}/openqa-scheduler.service
%{_unitdir}/openqa-resource-allocator.service
%{_unitdir}/openqa-websockets.service
# web libs
%dir %{_datadir}/openqa
%{_datadir}/openqa/templates
%{_datadir}/openqa/public
%{_datadir}/openqa/assets
%{_datadir}/openqa/dbicdh
%{_datadir}/openqa/script/check_dependencies
%{_datadir}/openqa/script/clean_needles
%{_datadir}/openqa/script/create_admin
%{_datadir}/openqa/script/fetchneedles
%{_datadir}/openqa/script/initdb
%{_datadir}/openqa/script/openqa
%{_datadir}/openqa/script/openqa-scheduler
%{_datadir}/openqa/script/openqa-resource-allocator
%{_datadir}/openqa/script/openqa-websockets
%{_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
%{_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}/lib/openqa/db/db.sqlite
%ghost %{_localstatedir}/log/openqa
%files common
%dir %{_datadir}/openqa
%{_datadir}/openqa/lib
%exclude %{_datadir}/openqa/lib/OpenQA/Client.pm
%dir %{_localstatedir}/lib/openqa
%ghost %dir %{_localstatedir}/lib/openqa/share/
%{_localstatedir}/lib/openqa/factory
%{_localstatedir}/lib/openqa/script
%{_localstatedir}/lib/openqa/tests
%files worker
%{_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
# init
%dir %{_unitdir}
%{_libexecdir}/systemd/system-generators
%{_unitdir}/openqa-worker.target
%{_unitdir}/openqa-worker@.service
%{_unitdir}/openqa-worker-no-cleanup@.service
%{_unitdir}/openqa-slirpvde.service
%{_unitdir}/openqa-vde_switch.service
%{_tmpfilesdir}/openqa.conf
%ghost %dir %{_rundir}/openqa
# worker libs
%dir %{_datadir}/openqa
%dir %{_datadir}/openqa/script
%{_datadir}/openqa/script/worker
%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
%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
%dir %{_datadir}/openqa/lib
%{_datadir}/openqa/lib/OpenQA/Client.pm
%{_bindir}/openqa-client
%{_bindir}/openqa-clone-job
%{_bindir}/openqa-dump-templates
%{_bindir}/openqa-load-templates
%files doc
%doc docs/*
%changelog

View File

@ -1,4 +0,0 @@
<servicedata>
<service name="tar_scm">
<param name="url">git://github.com/os-autoinst/openQA.git</param>
<param name="changesrevision">afcb72caae47cca465ad7df2e6e8c88131c0498a</param></service></servicedata>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae16d4b26540a5b3185f62c56cc5f999db97fba7a2e747900f559a5b43c2a6f5
size 1432064

View File

@ -1,9 +0,0 @@
setBadness('suse-dbus-unauthorized-service', 0)
addFilter('openQA-worker.noarch: W: systemd-service-without-service_del_preun openqa-worker-no-cleanup@.service')
addFilter('openQA-worker.noarch: W: systemd-service-without-service_del_preun openqa-worker@.service')
addFilter('openQA-worker.noarch: W: systemd-service-without-service_del_postun openqa-worker-no-cleanup@.service')
addFilter('openQA-worker.noarch: W: systemd-service-without-service_del_postun openqa-worker@.service')
addFilter('openQA-worker.noarch: W: systemd-service-without-service_add_pre openqa-worker-no-cleanup@.service')
addFilter('openQA-worker.noarch: W: systemd-service-without-service_add_pre openqa-worker@.service')
addFilter('openQA-worker.noarch: W: systemd-service-without-service_add_post openqa-worker-no-cleanup@.service')
addFilter('openQA-worker.noarch: W: systemd-service-without-service_add_post openqa-worker@.service')

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Oct 30 11:02:01 UTC 2017 - rd-ops-cm@suse.de
- Update to version 4.5.1509097496.8b8e8e20:
* Prevent use of job_module_stats when showing jobs of worker
* Fix sorting in table for previous jobs of worker
* Remove all remaining uses of job_module_stats
* Fix accessing job module stat 'unk'
* Worker: Wrap asset_lookup() query in eval/if
* Add API description for worker route
* docs: Prevent parsing of '#' as markup
* Allow admins to fetch the worker status by json
* Fix name of the SUSE company
* Prevent showing duplicated bugrefs twice
* Fixing the package to build with newer assetpack (#1485)
* Mention repos for Leap 42.3
-------------------------------------------------------------------
Thu Oct 26 04:23:45 UTC 2017 - rd-ops-cm@suse.de

View File

@ -36,7 +36,7 @@
# runtime requirements that also the testsuite needs
%define t_requires perl(DBD::SQLite) perl(DBIx::Class) perl(Config::IniFiles) perl(SQL::Translator) perl(Date::Format) perl(File::Copy::Recursive) perl(DateTime::Format::SQLite) perl(Net::OpenID::Consumer) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Plugin::AssetPack) perl(aliased) perl(Config::Tiny) perl(DBIx::Class::DynamicDefault) perl(DBIx::Class::Schema::Config) perl(DBIx::Class::Storage::Statistics) perl(IO::Socket::SSL) perl(Data::Dump) perl(DBIx::Class::OptimisticLocking) perl(Text::Markdown) perl(Net::DBus) perl(IPC::Run) perl(Archive::Extract) perl(CSS::Minifier::XS) perl(JavaScript::Minifier::XS) perl(Time::ParseDate) perl(Sort::Versions) perl(Mojo::RabbitMQ::Client) perl(BSD::Resource)
Name: openQA
Version: 4.5.1508961373.6d2e83a0
Version: 4.5.1509097496.8b8e8e20
Release: 0
Summary: The openQA web-frontend, scheduler and tools
License: GPL-2.0+
@ -46,7 +46,6 @@ 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
Source100: openQA-rpmlintrc
Source101: update-cache.sh
BuildRequires: %{t_requires}
BuildRequires: fdupes