From d1af4fefe4673715bcd18d63cee7a9f12334fc27eedbff2f87969afa410638a5 Mon Sep 17 00:00:00 2001 From: Andrii Nikitin Date: Thu, 24 Jun 2021 07:29:04 +0000 Subject: [PATCH] 0.8 2021-06-24 - Add mirrorlist page, reference it in file listing 'Metadata' column; - Do not require /download prefix when MIRRORCACHE_TOP_FOLDERS is configured; - Fix error "time_bad_sig: Return_to signature is not valid." during openid login by setting secret in Mojo app; - Performance improvements in estimating load on background jobs; - Performance improvements in stat calculation; - [ui] Move mirror statistics to folder status form; - Cleanup audit events, add DB index for that; - Tweak job creating metadata (folder_hashes_create); - Schedule scan when main server serves as a mirror; - Improve handling symlinked files in rsync root; - rpm spec improvements. OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=2 --- MirrorCache.changes | 25 +++++++++++++++++-- _service:obs_scm:MirrorCache-0.7.obscpio | 3 --- _service:obs_scm:MirrorCache-0.8.obscpio | 3 +++ _service:obs_scm:MirrorCache.obsinfo | 6 ++--- _service:obs_scm:MirrorCache.spec | 17 +++++++------ _service:set_version:obs_scm:MirrorCache.spec | 19 ++++++++------ 6 files changed, 50 insertions(+), 23 deletions(-) delete mode 100644 _service:obs_scm:MirrorCache-0.7.obscpio create mode 100644 _service:obs_scm:MirrorCache-0.8.obscpio diff --git a/MirrorCache.changes b/MirrorCache.changes index 259b57f..47e10a5 100644 --- a/MirrorCache.changes +++ b/MirrorCache.changes @@ -1,6 +1,21 @@ +------------------------------------------------------------------- +Thu Jun 24 07:25:44 UTC 2021 - Andrii Nikitin + +0.8 2021-06-24 + - Add mirrorlist page, reference it in file listing 'Metadata' column; + - Do not require /download prefix when MIRRORCACHE_TOP_FOLDERS is configured; + - Fix error "time_bad_sig: Return_to signature is not valid." during openid login by setting secret in Mojo app; + - Performance improvements in estimating load on background jobs; + - Performance improvements in stat calculation; + - [ui] Move mirror statistics to folder status form; + - Cleanup audit events, add DB index for that; + - Tweak job creating metadata (folder_hashes_create); + - Schedule scan when main server serves as a mirror; + - Improve handling symlinked files in rsync root; + - rpm spec improvements. + + 0.7 2021-06-03 - - [www] Do not let mirrors serve media.1/* files. - - [ui] Fix audit log filter by id. - [ui] Change /logout only on POST message, (before it was on GET). - [ui] Tweak html in file listing. - [ui] Use natural sort in file listing (case insensitive, foo-9 before foo-10). @@ -8,26 +23,32 @@ - [internal] (Experimental) new task FolderHashesCreate in new queue hashes to collect files metadata and store in db. - [tests] Switch test containers to leap 15.3 + 0.6 2021-05-27 - an audit logs page for admins - new config MIRRORCACHE_AUTH_URL, fake auth for testing - new permanent job mirror_check_from_stat - tests: switch to new reworked environ framework + 0.5 2021-04-30 - Obsolete MIRRORCACHE_FALLBACK_REDIRECT in favor of MIRRORCACHE_REDIRECT - Adjust github address to openSUSE + 0.4 2021-04-29 - Collect file size from origin if nginx with indexing - Add favicon and initial version of logo + 0.3 2021-04-24 - Remove column db_sync_for_country from /app/folder + 0.2 2021-04-22 - Add table 'demand' for tracking mirror scans per country + 0.1 2021-04-21 - Start of change log - Add automatic deployment of DB diff --git a/_service:obs_scm:MirrorCache-0.7.obscpio b/_service:obs_scm:MirrorCache-0.7.obscpio deleted file mode 100644 index d316797..0000000 --- a/_service:obs_scm:MirrorCache-0.7.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5c2604004cfb06646c6c3e21e9752ad4d6c9c6193cd37a0fefd22ccaa44997a -size 586252 diff --git a/_service:obs_scm:MirrorCache-0.8.obscpio b/_service:obs_scm:MirrorCache-0.8.obscpio new file mode 100644 index 0000000..3eb5445 --- /dev/null +++ b/_service:obs_scm:MirrorCache-0.8.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b817cca2dd3e0848565bd8dc65a768cee87aa699d6e3b0c9822fda719e345b0 +size 605708 diff --git a/_service:obs_scm:MirrorCache.obsinfo b/_service:obs_scm:MirrorCache.obsinfo index a246443..63ecc83 100644 --- a/_service:obs_scm:MirrorCache.obsinfo +++ b/_service:obs_scm:MirrorCache.obsinfo @@ -1,5 +1,5 @@ name: MirrorCache -version: 0.7 -mtime: 1622711375 -commit: 599699dcc3615e0b369a65822c936a6340148711 +version: 0.8 +mtime: 1624515759 +commit: 66071d3fcc240cbbae6f79f0e8639a4a153df5b0 diff --git a/_service:obs_scm:MirrorCache.spec b/_service:obs_scm:MirrorCache.spec index 897e174..84ae23d 100644 --- a/_service:obs_scm:MirrorCache.spec +++ b/_service:obs_scm:MirrorCache.spec @@ -12,12 +12,14 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + %define mirrorcache_services mirrorcache.service mirrorcache-backstage.service - %define assetpack_requires perl(CSS::Minifier::XS) >= 0.01 perl(JavaScript::Minifier::XS) >= 0.11 perl(Mojolicious::Plugin::AssetPack) >= 1.36 perl-IO-Socket-SSL -%define main_requires %assetpack_requires perl(Carp) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DynamicDefault) perl(DateTime) perl(Time::Piece) perl(Time::Seconds) perl(Time::ParseDate) perl(DateTime::Format::Pg) perl(Exporter) perl(File::Basename) perl(LWP::UserAgent) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Sort::Naturally) perl(URI::Encode) perl(URI::Escape) perl(XML::Writer) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings) shadow rubygem(sass) perl-Net-DNS perl-LWP-Protocol-https perl-Digest-SHA -%define build_requires %assetpack_requires rubygem(sass) tidy sysuser-shadow sysuser-tools - +%define main_requires %{assetpack_requires} perl(Carp) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DynamicDefault) perl(DateTime) perl(Encode) perl(Time::Piece) perl(Time::Seconds) perl(Time::ParseDate) perl(DateTime::Format::Pg) perl(Exporter) perl(File::Basename) perl(LWP::UserAgent) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Sort::Naturally) perl(URI::Escape) perl(XML::Writer) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings) shadow rubygem(sass) perl-Net-DNS perl-LWP-Protocol-https perl-Digest-SHA +%define build_requires %{assetpack_requires} rubygem(sass) tidy sysuser-shadow sysuser-tools Name: MirrorCache Version: 0.1 Release: 0 @@ -26,13 +28,13 @@ License: GPL-2.0-or-later Group: Productivity/Networking/Web/Servers URL: https://github.com/openSUSE/MirrorCache Source: %{name}-%{version}.tar.xz -BuildRequires: %build_requires Source1: %{name}-user.conf Source2: %{name}-tmpfilesd.conf -Requires: perl(Minion) >= 10.0 +BuildRequires: %{build_requires} Requires: %{main_requires} +Requires: perl(Minion) >= 10.0 BuildArch: noarch -%{sysusers_requires} +%sysusers_requires %description Mirror redirector web service, which automatically scans the main server and mirrors @@ -70,6 +72,7 @@ install -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf %files %doc README.asciidoc +%license LICENSE %{_sbindir}/rcmirrorcache %{_sbindir}/rcmirrorcache-backstage %{_sysusersdir}/%{name}.conf diff --git a/_service:set_version:obs_scm:MirrorCache.spec b/_service:set_version:obs_scm:MirrorCache.spec index d86fb1b..ac0eef2 100644 --- a/_service:set_version:obs_scm:MirrorCache.spec +++ b/_service:set_version:obs_scm:MirrorCache.spec @@ -12,27 +12,29 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + %define mirrorcache_services mirrorcache.service mirrorcache-backstage.service - %define assetpack_requires perl(CSS::Minifier::XS) >= 0.01 perl(JavaScript::Minifier::XS) >= 0.11 perl(Mojolicious::Plugin::AssetPack) >= 1.36 perl-IO-Socket-SSL -%define main_requires %assetpack_requires perl(Carp) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DynamicDefault) perl(DateTime) perl(Time::Piece) perl(Time::Seconds) perl(Time::ParseDate) perl(DateTime::Format::Pg) perl(Exporter) perl(File::Basename) perl(LWP::UserAgent) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Sort::Naturally) perl(URI::Encode) perl(URI::Escape) perl(XML::Writer) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings) shadow rubygem(sass) perl-Net-DNS perl-LWP-Protocol-https perl-Digest-SHA -%define build_requires %assetpack_requires rubygem(sass) tidy sysuser-shadow sysuser-tools - +%define main_requires %{assetpack_requires} perl(Carp) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DynamicDefault) perl(DateTime) perl(Encode) perl(Time::Piece) perl(Time::Seconds) perl(Time::ParseDate) perl(DateTime::Format::Pg) perl(Exporter) perl(File::Basename) perl(LWP::UserAgent) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Sort::Naturally) perl(URI::Escape) perl(XML::Writer) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings) shadow rubygem(sass) perl-Net-DNS perl-LWP-Protocol-https perl-Digest-SHA +%define build_requires %{assetpack_requires} rubygem(sass) tidy sysuser-shadow sysuser-tools Name: MirrorCache -Version: 0.7 +Version: 0.8 Release: 0 Summary: WebApp to redirect and manage mirrors License: GPL-2.0-or-later Group: Productivity/Networking/Web/Servers URL: https://github.com/openSUSE/MirrorCache Source: %{name}-%{version}.tar.xz -BuildRequires: %build_requires Source1: %{name}-user.conf Source2: %{name}-tmpfilesd.conf -Requires: perl(Minion) >= 10.0 +BuildRequires: %{build_requires} Requires: %{main_requires} +Requires: perl(Minion) >= 10.0 BuildArch: noarch -%{sysusers_requires} +%sysusers_requires %description Mirror redirector web service, which automatically scans the main server and mirrors @@ -70,6 +72,7 @@ install -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf %files %doc README.asciidoc +%license LICENSE %{_sbindir}/rcmirrorcache %{_sbindir}/rcmirrorcache-backstage %{_sysusersdir}/%{name}.conf