|
|
60ee56e |
Name: resultsdb
|
|
|
d76134e |
# NOTE: if you update version, *make sure* to also update `resultsdb/__init__.py`
|
|
|
5389482 |
Version: 2.2.0
|
|
|
a4e2d52 |
Release: 1%{?dist}
|
|
|
60ee56e |
Summary: Results store for automated tasks
|
|
|
60ee56e |
|
|
|
60ee56e |
License: GPLv2+
|
|
|
d76134e |
URL: https://pagure.io/taskotron/resultsdb
|
|
|
d76134e |
Source0: https://qa.fedoraproject.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
5389482 |
# Backport support for running resultsdb without fedora messaging from https://pagure.io/taskotron/resultsdb/pull-request/135
|
|
|
5389482 |
Patch0: 0001-Make-fedora-messaging-optional.patch
|
|
|
5389482 |
Patch1: 0002-Set-MESSAGE_BUS_PLUGIN-to-dummy-for-tests.patch
|
|
|
60ee56e |
|
|
|
60ee56e |
BuildArch: noarch
|
|
|
7a34cf5 |
# Try to workaround issues with python-flask missing on non-x86_64 arches in epel
|
|
|
7a34cf5 |
# https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org/thread/BGRCBQFTXMNBPWRREFQ7R7B6MM2V5LF6/
|
|
|
7a34cf5 |
%if 0%{?rhel} >= 7
|
|
|
7a34cf5 |
ExclusiveArch: x86_64 noarch
|
|
|
7a34cf5 |
%endif
|
|
|
60ee56e |
|
|
|
a4e2d52 |
Requires: python-alembic >= 0.8.3
|
|
|
a4e2d52 |
Requires: python-flask >= 0.10.1
|
|
|
a4e2d52 |
Requires: python-flask-restful >= 0.2.11
|
|
|
a4e2d52 |
Requires: python-flask-sqlalchemy >= 2.0
|
|
|
838c975 |
Requires: python2-iso8601 >= 0.1.10
|
|
|
838c975 |
Requires: python2-six >= 1.9.0
|
|
|
a4e2d52 |
Requires: python-sqlalchemy >= 0.9.8
|
|
|
a4e2d52 |
|
|
|
a4e2d52 |
BuildRequires: python-alembic >= 0.8.3
|
|
|
a4e2d52 |
BuildRequires: python-flask >= 0.10.1
|
|
|
a4e2d52 |
BuildRequires: python-flask-restful >= 0.2.11
|
|
|
a4e2d52 |
BuildRequires: python-flask-sqlalchemy >= 2.0
|
|
|
838c975 |
BuildRequires: python2-iso8601 >= 0.1.10
|
|
|
71b54e9 |
BuildRequires: pytest
|
|
|
71b54e9 |
BuildRequires: python-pytest-cov
|
|
|
60ee56e |
BuildRequires: python2-devel
|
|
|
d76134e |
BuildRequires: python2-setuptools
|
|
|
60ee56e |
|
|
|
60ee56e |
%description
|
|
|
60ee56e |
ResultsDB is a results store engine for, but not limited to, Fedora QA tools.
|
|
|
60ee56e |
|
|
|
60ee56e |
%prep
|
|
|
5389482 |
%autosetup -p1
|
|
|
60ee56e |
|
|
|
60ee56e |
%check
|
|
|
5389482 |
NO_CAN_HAS_POSTGRES='sadly' TEST=true PYTHONPATH=%{buildroot}%{python2_sitelib}/ py.test
|
|
|
c2e9a0c |
# This seems to be the only place where we can remove pyco files, see:
|
|
|
c2e9a0c |
# https://fedoraproject.org/wiki/Packaging:Python#Byte_compiling
|
|
|
60ee56e |
rm -f %{buildroot}%{_sysconfdir}/resultsdb/*.py{c,o}
|
|
|
60ee56e |
|
|
|
60ee56e |
%build
|
|
|
60ee56e |
%{__python2} setup.py build
|
|
|
60ee56e |
|
|
|
60ee56e |
%install
|
|
|
60ee56e |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
60ee56e |
|
|
|
60ee56e |
# apache and wsgi settings
|
|
|
60ee56e |
install -d %{buildroot}%{_datadir}/resultsdb/conf
|
|
|
60ee56e |
install -p -m 0644 conf/resultsdb.conf %{buildroot}%{_datadir}/resultsdb/conf/
|
|
|
60ee56e |
install -p -m 0644 conf/resultsdb.wsgi %{buildroot}%{_datadir}/resultsdb/
|
|
|
60ee56e |
|
|
|
60ee56e |
# resultsdb config
|
|
|
60ee56e |
install -d %{buildroot}%{_sysconfdir}/resultsdb
|
|
|
60ee56e |
install -p -m 0644 conf/settings.py.example %{buildroot}%{_sysconfdir}/resultsdb/settings.py
|
|
|
60ee56e |
|
|
|
60ee56e |
%files
|
|
|
60ee56e |
%doc README.md conf/*
|
|
|
60ee56e |
%license LICENSE
|
|
|
a4e2d52 |
|
|
|
60ee56e |
%{python2_sitelib}/resultsdb
|
|
|
60ee56e |
%{python2_sitelib}/*.egg-info
|
|
|
60ee56e |
|
|
|
60ee56e |
%attr(755,root,root) %{_bindir}/resultsdb
|
|
|
60ee56e |
%dir %{_sysconfdir}/resultsdb
|
|
|
6e79aae |
%config(noreplace) %{_sysconfdir}/resultsdb/settings.py
|
|
|
6e79aae |
|
|
|
60ee56e |
%dir %{_datadir}/resultsdb
|
|
|
60ee56e |
%{_datadir}/resultsdb/*
|
|
|
60ee56e |
|
|
|
60ee56e |
%changelog
|
|
|
5389482 |
* Wed Mar 27 2019 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.2.0-1
|
|
|
5389482 |
- Latest endpoint: group by additional fields
|
|
|
5389482 |
- specfile: Drop python 2 support
|
|
|
5389482 |
- Drop support for fedmsg and replace by fedora-messaging
|
|
|
5389482 |
- settings.py: use lists instead of tuples
|
|
|
5389482 |
- Backport support for running resultsdb without fedora messaging
|
|
|
5389482 |
|
|
|
5389482 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
|
|
|
5389482 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
5389482 |
|
|
|
a4e2d52 |
* Tue Nov 20 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.1.2-1
|
|
|
a4e2d52 |
- Support Python 3, use it on Fedora
|
|
|
a4e2d52 |
- Fix ImmutableMultiDict handling for python 3.7
|
|
|
a4e2d52 |
- Use tuples instead of list in RESULT_OUTCOME
|
|
|
a4e2d52 |
- Define resource limits for the database container
|
|
|
a4e2d52 |
- Makefile: Use generic Makefile provided by qa-make
|
|
|
a4e2d52 |
- Add config for task-dockerbuild
|
|
|
a4e2d52 |
|
|
|
a4e2d52 |
* Sun Jul 01 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.1.1-2
|
|
|
a4e2d52 |
- Fix building on EPEL 7
|
|
|
dfd7027 |
|
|
|
022b214 |
* Wed Jun 20 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.1.1-1
|
|
|
022b214 |
- Fix deprecated flask imports
|
|
|
022b214 |
- Make the list of allowed outcomes configurable
|
|
|
022b214 |
|
|
|
68446ff |
* Thu Mar 29 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.1.0-1
|
|
|
68446ff |
- Add OpenID Connect auth module for POST requests
|
|
|
68446ff |
- Allow GET requests to just pass without auth
|
|
|
68446ff |
- Publish more metadata in bus messages
|
|
|
68446ff |
- Update Python 2 dependency declarations
|
|
|
68446ff |
- generic message format which matches the HTTP API v2
|
|
|
68446ff |
|
|
|
40b5bc6 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-4
|
|
|
40b5bc6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
40b5bc6 |
|
|
|
838c975 |
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.5-3
|
|
|
838c975 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
838c975 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
838c975 |
|
|
|
be1bac6 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-2
|
|
|
be1bac6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
be1bac6 |
|
|
|
c2e9a0c |
* Thu Jun 29 2017 Martin Krizek <mkrizek@redhat.com> - 2.0.5-1
|
|
|
c2e9a0c |
- Sorting by key plugin for browse results collection (D1213)
|
|
|
c2e9a0c |
- A stomp messaging plugin (D1191)
|
|
|
c2e9a0c |
|
|
|
f4721d0 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
|
|
|
f4721d0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
f4721d0 |
|
|
|
c2e9a0c |
* Fri Feb 10 2017 Kamil Páral <kparal@redhat.com> - 2.0.4-2
|
|
|
c2e9a0c |
- add python-pytest-cov builddep since it's needed for running the test suite
|
|
|
c2e9a0c |
with our new tox.ini
|
|
|
c2e9a0c |
|
|
|
31e95e8 |
* Thu Feb 02 2017 Kamil Páral <kparal@redhat.com> - 2.0.4-1
|
|
|
31e95e8 |
- setup.py: add missing modules
|
|
|
31e95e8 |
|
|
|
d76134e |
* Thu Feb 02 2017 Kamil Páral <kparal@redhat.com> - 2.0.3-1
|
|
|
d76134e |
- Fix pagination issue
|
|
|
d76134e |
- Add config options to resultsdb for requiring fields
|
|
|
d76134e |
|
|
|
d76134e |
* Fri Jan 20 2017 Matt Prahl <mprahl@redhat.com> - 2.0.2-2
|
|
|
d76134e |
- Add the ability to build on RHEL without EPEL by setting the "without_epel" variable to 1
|
|
|
d76134e |
|
|
|
b7edb7b |
* Wed Dec 14 2016 Martin Krizek <mkrizek@fedoraproject.org> - 2.0.2-1
|
|
|
b7edb7b |
- Make the migration less memory consuming (D1059)
|
|
|
b7edb7b |
- Flexible messaging (D1061)
|
|
|
b7edb7b |
|
|
|
6e79aae |
* Tue Nov 22 2016 Martin Krizek <mkrizek@fedoraproject.org> - 2.0.1-1
|
|
|
6e79aae |
- do not replace config file
|
|
|
6e79aae |
- loosen pin on sqlalchemy in requirements.txt
|
|
|
6e79aae |
- fix the migration, so it deals with duplicate job uuids
|
|
|
6e79aae |
|
|
|
60ee56e |
* Thu Nov 3 2016 Tim Flink <tflink@fedoraproject.org> - 2.0.0-1
|
|
|
60ee56e |
- releasing v2.0 with new API
|
|
|
60ee56e |
|
|
|
60ee56e |
* Thu Jul 21 2016 Martin Krizek <mkrizek@fedoraproject.org> - 1.1.16-3
|
|
|
60ee56e |
- preserve timestamps of original installed files
|
|
|
60ee56e |
- fix installing the config file
|
|
|
60ee56e |
- remove .py compiled files from config and datadir
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed Jun 1 2016 Martin Krizek <mkrizek@fedoraproject.org> - 1.1.16-2
|
|
|
60ee56e |
- add license
|
|
|
60ee56e |
|
|
|
60ee56e |
* Mon Apr 18 2016 Martin Krizek <mkrizek@fedoraproject.org> - 1.1.16-1
|
|
|
60ee56e |
- support for testcase namespaces
|
|
|
60ee56e |
|
|
|
60ee56e |
* Mon Jan 25 2016 Tim Flink <tflink@fedoraproject.org> - 1.1.15-1
|
|
|
60ee56e |
- Add previous_outcome field to fedmsgs (D728)
|
|
|
60ee56e |
|
|
|
60ee56e |
* Mon Jan 18 2016 Tim Flink <tflink@fedoraproject.org> - 1.1.14-1
|
|
|
60ee56e |
- Removed unnecessary count, added index on submit_time (D635)
|
|
|
60ee56e |
- Don't ignore arch for fedmsg deduplication (D698)
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed Nov 4 2015 Josef Skladanka <jskladan@redhat.com> - 1.1.13-2
|
|
|
60ee56e |
- synchronize package versions between spec file and requirements.txt
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed Oct 7 2015 Martin Krizek <mkrizek@redhat.com> - 1.1.13-1
|
|
|
60ee56e |
- Emit fedmsg with whatever result is being stored
|
|
|
60ee56e |
|
|
|
60ee56e |
* Tue Aug 18 2015 Tim Flink <tflink@fedoraproject.org> - 1.1.12-1
|
|
|
60ee56e |
- Use HTTP_X_FORWARDED_SCHEME (D264)
|
|
|
60ee56e |
- Improve pagination metadata for JSON queries (D264)
|
|
|
60ee56e |
- Add fedmenu to resultsdb (D364)
|
|
|
60ee56e |
- Several dev and backend fixes
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed May 6 2015 Tim Flink <tflink@fedoraproject.org> - 1.1.11-1
|
|
|
60ee56e |
- Added ABORTED outcome (T458)
|
|
|
60ee56e |
|
|
|
60ee56e |
* Mon Apr 20 2015 Tim Flink <tflink@fedoraproject.org> - 1.1.10-1
|
|
|
60ee56e |
- Added indexes for foreign keys (T452)
|
|
|
60ee56e |
|
|
|
60ee56e |
* Thu Apr 9 2015 Tim Flink <tflink@fedoraproject.org> - 1.1.9-1
|
|
|
60ee56e |
- fixed TB with file logging (T454)
|
|
|
60ee56e |
- changed complete data returning on update_job to be optional (T466)
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed Apr 1 2015 Tim Flink <tflink@fedoraproject.org> - 1.1.8-2
|
|
|
60ee56e |
- added alembic config and data to package
|
|
|
60ee56e |
- added requires python-alembic
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed Apr 1 2015 Tim Flink <tflink@fedoraproject.org> - 1.1.8-1
|
|
|
60ee56e |
- initial alembic support
|
|
|
60ee56e |
- UUID support for integration with execdb
|
|
|
60ee56e |
|
|
|
60ee56e |
* Thu Oct 9 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.7-1
|
|
|
60ee56e |
- fix jsonp interface and various associated bugs
|
|
|
60ee56e |
|
|
|
60ee56e |
* Fri Jul 4 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.4-1
|
|
|
60ee56e |
- fix compatibility with flask-wtf 0.9
|
|
|
60ee56e |
|
|
|
60ee56e |
* Mon Jun 23 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.3-1
|
|
|
60ee56e |
- add SHOW_DB_URI configuration value to stop DB URI leaking
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed Jun 18 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.2-2
|
|
|
60ee56e |
- fixing botched build and bad changelog dates
|
|
|
60ee56e |
|
|
|
60ee56e |
* Wed Jun 18 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.2-1
|
|
|
60ee56e |
- Fixing typo in date parsing code
|
|
|
60ee56e |
- Working around limitations in how time data is stored without timezones
|
|
|
60ee56e |
|
|
|
60ee56e |
* Fri Jun 13 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.1-1
|
|
|
60ee56e |
- adding jsonp suport
|
|
|
60ee56e |
|
|
|
60ee56e |
* Fri May 16 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.0-1
|
|
|
60ee56e |
- Releasing resultsdb 1.1.0
|
|
|
60ee56e |
|
|
|
60ee56e |
* Fri Apr 25 2014 Tim Flink <tflink@fedoraproject.org> - 1.0.2-1
|
|
|
60ee56e |
- bugfixes for api and using postgres as a backend
|
|
|
60ee56e |
|
|
|
60ee56e |
* Mon Apr 14 2014 Tim Flink <tflink@fedoraproject.org> - 1.0.1-1
|
|
|
60ee56e |
- updating package for new upstream location, not using bitbucket downloads
|
|
|
60ee56e |
- removing dep on mysql
|
|
|
60ee56e |
|
|
|
60ee56e |
* Thu Feb 6 2014 Jan Sedlak <jsedlak@redhat.com> - 1.0.0-1
|
|
|
60ee56e |
- initial packaging
|