]>
git.ipfire.org Git - thirdparty/snapper.git/log
Grace Yu [Sun, 16 Feb 2020 08:52:14 +0000 (08:52 +0000)]
Translated using Weblate (Chinese (China))
Currently translated at 100.0% (205 of 205 strings)
David Medina [Wed, 12 Feb 2020 15:38:39 +0000 (15:38 +0000)]
Translated using Weblate (Catalan)
Currently translated at 100.0% (205 of 205 strings)
David Medina [Mon, 3 Feb 2020 20:58:05 +0000 (20:58 +0000)]
Translated using Weblate (Catalan)
Currently translated at 100.0% (205 of 205 strings)
Martin Vidner [Mon, 27 Jan 2020 15:02:49 +0000 (16:02 +0100)]
Merge pull request #520 from openSUSE/fix-post-snapshot
Fix "Snapper is not creating the post snapshot" (bsc#
1160938 )
Martin Vidner [Mon, 27 Jan 2020 14:37:27 +0000 (15:37 +0100)]
Run the tests twice, with and without validation.
Why make it so complicated?
Before, coverage measurement gets messed up (the numbers go down and I
look, and feel, like a fool). It's because forwarding-zypp-plugin and
snapper-zypp-plugin run at the same time and both want to write to the
same GCOV data files. The GCOV instrumentation will merge the data, but
only if the programs run in sequence. Being run in parallel, the simpler
plugin somehow wins, having covered much less code :-(
(
There is a way to tell GCOV to write to a different location, with
GCOV_PREFIX and GCOV_PREFIX_STRIP, but that seems less workable than
this.
https://gcc.gnu.org/onlinedocs/gcc/Cross-profiling.html#Cross-profiling
)
Martin Vidner [Thu, 23 Jan 2020 18:42:28 +0000 (19:42 +0100)]
Merge branch 'master' into fix-post-snapshot
Martin Vidner [Thu, 23 Jan 2020 17:42:23 +0000 (18:42 +0100)]
Merge pull request #509 from openSUSE/coverage
Code Coverage
Martin Vidner [Thu, 23 Jan 2020 15:15:24 +0000 (16:15 +0100)]
Add Coveralls badge
Martin Vidner [Thu, 23 Jan 2020 10:37:57 +0000 (11:37 +0100)]
Coveralls needs to access the Git repo
Martin Vidner [Thu, 23 Jan 2020 10:51:47 +0000 (11:51 +0100)]
Explain why ForwardingZyppPlugin.
Martin Vidner [Fri, 17 Jan 2020 16:05:44 +0000 (17:05 +0100)]
Fix Ubuntu and Debian builds
Debian 9 has only boost-1.62 which misses boost/process
Martin Vidner [Fri, 17 Jan 2020 14:58:23 +0000 (15:58 +0100)]
forwarding-zypp-plugin
a middleware that reparses what its child plugin is replying
and thus enables detecting protocol errors like bsc#
1160938
Martin Vidner [Tue, 21 Jan 2020 11:26:34 +0000 (12:26 +0100)]
Fix `make clean; make check` failing in zypp-plugin (bsc#
1160891 )
Only run the test after compiling it.
Martin Vidner [Mon, 20 Jan 2020 09:51:53 +0000 (10:51 +0100)]
Fix building without optimization on Fedora
This fixes a configure test for cross compilation. I don't know why it
works, so if it breaks, throw it away.
Martin Vidner [Fri, 17 Jan 2020 16:49:35 +0000 (17:49 +0100)]
When checking test coverage, build without optimization.
Martin Vidner [Fri, 17 Jan 2020 14:56:53 +0000 (15:56 +0100)]
Refactored ZyppPlugin to allow for better testing
preparing for forwarding-zypp-plugin
Martin Vidner [Thu, 16 Jan 2020 13:04:14 +0000 (14:04 +0100)]
version + changelog
Martin Vidner [Thu, 16 Jan 2020 12:42:40 +0000 (13:42 +0100)]
Fix "Snapper is not creating the post snapshot" (bsc#
1160938 )
It is an embarrassing case of a forgotten debugging printf, which throws
the communication protocol out of sync.
Martin Vidner [Wed, 15 Jan 2020 09:36:17 +0000 (10:36 +0100)]
Test slightly more code paths.
Martin Vidner [Wed, 15 Jan 2020 09:09:11 +0000 (10:09 +0100)]
Unify the Fedora version
Martin Vidner [Mon, 13 Jan 2020 15:09:51 +0000 (16:09 +0100)]
Integration test and coverage also on Fedora
Martin Vidner [Mon, 13 Jan 2020 15:27:33 +0000 (16:27 +0100)]
Repos for coveralls-lcov for Leap and Tumbleweed
Martin Vidner [Mon, 13 Jan 2020 11:30:42 +0000 (12:30 +0100)]
Deduplicate Dockerfiles with ARG
https://docs.docker.com/engine/reference/builder/#arg
https://docs.docker.com/engine/reference/builder/#from
Martin Vidner [Fri, 10 Jan 2020 13:34:12 +0000 (14:34 +0100)]
Coverage with coveralls.io
https://docs.travis-ci.com/user/coveralls/
In https://travis-ci.org/openSUSE/snapper/settings ,
section Environment Variables, add COVERALLS_TOKEN with the value
of Repo Token seen at https://coveralls.io/github/openSUSE/snapper/settings
rubygem-coveralls-lcov wants to ask git but does not declare the dependency.
To import the GPG key I wanted to
RUN rpm --import https://build.opensuse.org/projects/YaST/public_key
but that failed:
error: https://build.opensuse.org/projects/YaST/public_key: import read failed(2).
Martin Vidner [Fri, 10 Jan 2020 11:50:02 +0000 (12:50 +0100)]
In Travis, build with coverage enabled
Martin Vidner [Tue, 12 Nov 2019 14:00:30 +0000 (15:00 +0100)]
Enable test coverage instrumentation
TODO: install the dependencies (lcov.rpm) and call configure --enable-coverage
TODO: call make coverage after the unit and integration tests run
Martin Vidner [Fri, 10 Jan 2020 08:59:09 +0000 (09:59 +0100)]
Merge pull request #518 from openSUSE/run-integration-tests
Run integration tests
Martin Vidner [Thu, 9 Jan 2020 14:54:42 +0000 (15:54 +0100)]
Several tests assume nobody:nobody, but docker omits them
Martin Vidner [Thu, 9 Jan 2020 14:31:42 +0000 (15:31 +0100)]
Install acl.rpm for setfacl for the xattr tests
Martin Vidner [Thu, 9 Jan 2020 13:34:37 +0000 (14:34 +0100)]
Integration tests need a privileged docker container for the loopback
Martin Vidner [Thu, 9 Jan 2020 12:25:41 +0000 (13:25 +0100)]
Run the integration test
Martin Vidner [Wed, 8 Jan 2020 15:03:11 +0000 (16:03 +0100)]
Merge pull request #517 from openSUSE/fixup-obs-build
Fix several build problems
Martin Vidner [Wed, 8 Jan 2020 09:43:49 +0000 (10:43 +0100)]
version + changelog
Check the syntax with
(cd dists; dpkg-parsechangelog --all)
Martin Vidner [Wed, 8 Jan 2020 12:16:15 +0000 (13:16 +0100)]
Skip a test if dbus-run-session cannot be run (bsc#
1160306 )
Fedora 30 has a different dbus implementation
Martin Vidner [Tue, 7 Jan 2020 14:32:26 +0000 (15:32 +0100)]
Fix RPM file conflict on i586 (32 bit builds) (bsc#
1160306 )
between snapper.rpm and snapper-testsuite
Martin Vidner [Thu, 19 Dec 2019 15:59:12 +0000 (16:59 +0100)]
Only use -Wsuggest-override if the compiler supports it. (bsc#
1160306 )
should fix building on SLE 12, Fedora 20, 21
Martin Vidner [Thu, 19 Dec 2019 13:28:36 +0000 (14:28 +0100)]
Fix Debian and Ubuntu builds in OBS (bsc#
1160306 )
Arvin Schnell [Fri, 3 Jan 2020 16:24:34 +0000 (17:24 +0100)]
Merge pull request #516 from aschnell/master
- renamed variable for consistency
Arvin Schnell [Fri, 3 Jan 2020 16:03:38 +0000 (17:03 +0100)]
- renamed variable for consistency
Arvin Schnell [Fri, 3 Jan 2020 15:51:18 +0000 (16:51 +0100)]
Merge pull request #510 from hrotkogabor/rollback-second-desc
add description to the second snapshot of rollback
Hrotkó Gábor [Mon, 23 Dec 2019 20:33:51 +0000 (21:33 +0100)]
correct description check
Hrotkó Gábor [Wed, 18 Dec 2019 16:57:52 +0000 (17:57 +0100)]
change default description for the second
Martin Vidner [Tue, 17 Dec 2019 14:47:53 +0000 (15:47 +0100)]
Merge pull request #512 from openSUSE/pythonless-plugin-bootstrap
Work around a bootstrapping problem
Martin Vidner [Tue, 17 Dec 2019 14:22:23 +0000 (15:22 +0100)]
Work around a bootstrapping problem
The authoritative package is made by building with the *previous*
version dependencies, so we can't hard-require a new library.
Make it a warning.
Martin Vidner [Tue, 17 Dec 2019 13:12:33 +0000 (14:12 +0100)]
Merge pull request #501 from openSUSE/pythonless-plugin
Pythonless plugin
Martin Vidner [Tue, 17 Dec 2019 10:20:29 +0000 (11:20 +0100)]
Unify shell options
Martin Vidner [Tue, 17 Dec 2019 09:59:27 +0000 (10:59 +0100)]
Copyright and license headers (GPL-2.0-only)
Martin Vidner [Tue, 17 Dec 2019 09:41:23 +0000 (10:41 +0100)]
Whitespace cleanup
Martin Vidner [Tue, 17 Dec 2019 09:37:20 +0000 (10:37 +0100)]
Added missing header guards
Martin Vidner [Mon, 16 Dec 2019 14:33:01 +0000 (15:33 +0100)]
Deal with .vscode in my user config
Martin Vidner [Fri, 13 Dec 2019 15:40:53 +0000 (16:40 +0100)]
Debian does not pull in libxml2 via libsnapper?!
Martin Vidner [Fri, 13 Dec 2019 14:40:54 +0000 (15:40 +0100)]
Use snapper::Regex instead of boost::regex (both use POSIX ERE).
Document the syntax in the conf file
Martin Vidner [Fri, 13 Dec 2019 12:16:33 +0000 (13:16 +0100)]
Split off regex matching, add a test for it
Martin Vidner [Wed, 11 Dec 2019 13:54:58 +0000 (14:54 +0100)]
Using json-c instead of rapidjson
https://github.com/json-c/json-c
Already in SLE, is also a dependency for systemd via libcryptsetup.
Martin Vidner [Wed, 11 Dec 2019 12:49:54 +0000 (13:49 +0100)]
Phase::BEFORE and AFTER instead of "todo".
Martin Vidner [Tue, 10 Dec 2019 12:50:00 +0000 (13:50 +0100)]
Test with TAP by comparing error strings
Martin Vidner [Tue, 10 Dec 2019 09:29:31 +0000 (10:29 +0100)]
Using the TAP driver for automake
TAP is http://testanything.org/ .
This file is copied from /usr/share/automake-1.16/tap-driver.sh because:
> Currently, the TAP driver that comes with Automake requires some by-hand
> steps on the developer’s part (this situation should hopefully be improved
> in future Automake versions). You’ll have to grab the tap-driver.sh script
> from the Automake distribution by hand, copy it in your source tree, ...
https://www.gnu.org/software/automake/manual/html_node/Use-TAP-with-the-Automake-test-harness.html
Martin Vidner [Mon, 9 Dec 2019 15:13:37 +0000 (16:13 +0100)]
Log to stderr instead of snapper.log
that way it
- ends up in y2log or zypper.log
- can be matched for expected errors in the testsuite
Martin Vidner [Mon, 9 Dec 2019 14:59:27 +0000 (15:59 +0100)]
Explain ProgramOptions
Martin Vidner [Mon, 9 Dec 2019 14:58:54 +0000 (15:58 +0100)]
getValue returns true/false
consistently with other functions
Martin Vidner [Mon, 9 Dec 2019 09:37:40 +0000 (10:37 +0100)]
Test failing code paths
Martin Vidner [Fri, 6 Dec 2019 14:55:37 +0000 (15:55 +0100)]
More debug logging
Martin Vidner [Fri, 6 Dec 2019 14:12:01 +0000 (15:12 +0100)]
Do parser the zypp supplied userdata
https://fate.suse.com/312521
Martin Vidner [Fri, 6 Dec 2019 12:48:18 +0000 (13:48 +0100)]
Use range-based-for
Martin Vidner [Fri, 6 Dec 2019 12:39:50 +0000 (13:39 +0100)]
The "match" attribute of the "solvable" element is mandatory
and omitting it means skipping that match pattern.
Also using uppercase for the enum values.
Martin Vidner [Fri, 6 Dec 2019 10:23:17 +0000 (11:23 +0100)]
version + changelog
Martin Vidner [Thu, 5 Dec 2019 14:09:53 +0000 (15:09 +0100)]
Ensure there is a DBus session for the tests
see man dbus-run-session
Martin Vidner [Thu, 5 Dec 2019 09:58:50 +0000 (10:58 +0100)]
Run the zypp-plugin tests
The tests need rubygem ruby-dbus
but we're not adding a build time dependency in the RPM spec file,
instead putting it to the Docker images used in Travis
Martin Vidner [Wed, 4 Dec 2019 15:03:09 +0000 (16:03 +0100)]
Functional test of snapper-zypp-plugin
Martin Vidner [Tue, 3 Dec 2019 12:31:56 +0000 (13:31 +0100)]
Add environment variables to work on a testing setup
$SNAPPER_ZYPP_PLUGIN_CONFIG instead of "/etc/snapper/zypp-plugin.conf",
$SNAPPER_ZYPP_PLUGIN_SNAPPER_CONFIG" instead of "root"
Martin Vidner [Mon, 11 Nov 2019 15:07:45 +0000 (16:07 +0100)]
Honor --disable-zypp by not building the plugin
Martin Vidner [Mon, 11 Nov 2019 10:25:30 +0000 (11:25 +0100)]
Find libxml2 portably
Martin Vidner [Wed, 6 Nov 2019 14:40:13 +0000 (15:40 +0100)]
Parse and apply /etc/snapper/zypp-plugin.conf
Martin Vidner [Thu, 7 Nov 2019 11:13:28 +0000 (12:13 +0100)]
Fixed getChildNode, getChildNodes, getChildValue
to actually act on children. Previously they acted on siblings.
Martin Vidner [Fri, 1 Nov 2019 16:32:55 +0000 (17:32 +0100)]
Recognize _DISCONNECT
Martin Vidner [Fri, 1 Nov 2019 16:08:45 +0000 (17:08 +0100)]
Parse headers
Martin Vidner [Fri, 1 Nov 2019 13:24:48 +0000 (14:24 +0100)]
Use the snapper logger
Martin Vidner [Wed, 30 Oct 2019 15:09:49 +0000 (16:09 +0100)]
Parse transaction solvables with RapidJSON
TODO: rake osc:build to fix the dependencies
Martin Vidner [Wed, 30 Oct 2019 13:17:26 +0000 (14:17 +0100)]
'override' keywords everywhere
Martin Vidner [Wed, 30 Oct 2019 13:17:05 +0000 (14:17 +0100)]
Added override keywords
only where needed by snapper_zypp_plugin
Martin Vidner [Wed, 30 Oct 2019 12:30:04 +0000 (13:30 +0100)]
Use libclient
Martin Vidner [Wed, 30 Oct 2019 12:25:19 +0000 (13:25 +0100)]
Put DBus calls to a helper library
so that SnapperZyppPlugin can use them
Martin Vidner [Wed, 30 Oct 2019 10:20:26 +0000 (11:20 +0100)]
Split off classes into files
Martin Vidner [Wed, 30 Oct 2019 10:19:13 +0000 (11:19 +0100)]
Ignore VS Code config
Martin Vidner [Tue, 29 Oct 2019 16:04:35 +0000 (17:04 +0100)]
call all other DBus commands
Martin Vidner [Tue, 29 Oct 2019 12:25:06 +0000 (13:25 +0100)]
actually call DBus
using the Hihi library
Martin Vidner [Tue, 29 Oct 2019 11:39:00 +0000 (12:39 +0100)]
more logging
Martin Vidner [Tue, 29 Oct 2019 10:03:18 +0000 (11:03 +0100)]
skeleton of commit_begin
Martin Vidner [Thu, 24 Oct 2019 15:03:25 +0000 (17:03 +0200)]
Use the override keyword
Effective Modern C++, Item 12: Declare overriding functions `override`
Martin Vidner [Thu, 24 Oct 2019 09:06:55 +0000 (11:06 +0200)]
pull in boost_regex
Martin Vidner [Thu, 24 Oct 2019 08:43:42 +0000 (10:43 +0200)]
Parser compiles and does not crash
try:
printf "PLUGINBEGIN\nki:velu\nuserdata:juzrdata\n\nbadi\0NAUVOT\n\n" | ./zypp-plugin/snapper-zypp-plugin
Martin Vidner [Wed, 23 Oct 2019 13:58:53 +0000 (15:58 +0200)]
Stomp protocol basics (WIP)
Martin Vidner [Wed, 23 Oct 2019 08:41:42 +0000 (10:41 +0200)]
Remove the Python zypp plugin (JSC#SLE-10500)
Martin Vidner [Wed, 23 Oct 2019 08:38:31 +0000 (10:38 +0200)]
Add snapper-zypp-plugin in C++ (JSC#SLE-10500)
just a stub
Hrotkó Gábor [Tue, 10 Dec 2019 11:53:02 +0000 (12:53 +0100)]
formatting
Hrotkó Gábor [Tue, 10 Dec 2019 11:50:00 +0000 (12:50 +0100)]
take specified snapshot number into accout
Hrotkó Gábor [Fri, 6 Dec 2019 20:14:42 +0000 (21:14 +0100)]
add description to the second snapshot of rollback
Jaanus Ojangu [Sun, 1 Dec 2019 17:50:34 +0000 (17:50 +0000)]
Translated using Weblate (Estonian)
Currently translated at 100.0% (205 of 205 strings)
Jaanus Ojangu [Sun, 1 Dec 2019 12:28:05 +0000 (12:28 +0000)]
Translated using Weblate (Estonian)
Currently translated at 80.0% (164 of 205 strings)
Jaanus Ojangu [Sun, 1 Dec 2019 08:39:21 +0000 (08:39 +0000)]
Translated using Weblate (Estonian)
Currently translated at 47.8% (98 of 205 strings)