]> git.ipfire.org Git - thirdparty/snapper.git/log
thirdparty/snapper.git
6 years agoTranslated using Weblate (Chinese (China))
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)

6 years agoTranslated using Weblate (Catalan)
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)

6 years agoTranslated using Weblate (Catalan)
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)

6 years agoMerge pull request #520 from openSUSE/fix-post-snapshot v0.8.9
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)

6 years agoRun the tests twice, with and without validation. 520/head
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
)

6 years agoMerge branch 'master' into fix-post-snapshot
Martin Vidner [Thu, 23 Jan 2020 18:42:28 +0000 (19:42 +0100)] 
Merge branch 'master' into fix-post-snapshot

6 years agoMerge pull request #509 from openSUSE/coverage
Martin Vidner [Thu, 23 Jan 2020 17:42:23 +0000 (18:42 +0100)] 
Merge pull request #509 from openSUSE/coverage

Code Coverage

6 years agoAdd Coveralls badge 509/head
Martin Vidner [Thu, 23 Jan 2020 15:15:24 +0000 (16:15 +0100)] 
Add Coveralls badge

6 years agoCoveralls needs to access the Git repo
Martin Vidner [Thu, 23 Jan 2020 10:37:57 +0000 (11:37 +0100)] 
Coveralls needs to access the Git repo

6 years agoExplain why ForwardingZyppPlugin.
Martin Vidner [Thu, 23 Jan 2020 10:51:47 +0000 (11:51 +0100)] 
Explain why ForwardingZyppPlugin.

6 years agoFix Ubuntu and Debian builds
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

6 years agoforwarding-zypp-plugin
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

6 years agoFix `make clean; make check` failing in zypp-plugin (bsc#1160891)
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.

6 years agoFix building without optimization on Fedora
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.

6 years agoWhen checking test coverage, build without optimization.
Martin Vidner [Fri, 17 Jan 2020 16:49:35 +0000 (17:49 +0100)] 
When checking test coverage, build without optimization.

6 years agoRefactored ZyppPlugin to allow for better testing
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

6 years agoversion + changelog
Martin Vidner [Thu, 16 Jan 2020 13:04:14 +0000 (14:04 +0100)] 
version + changelog

6 years agoFix "Snapper is not creating the post snapshot" (bsc#1160938)
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.

6 years agoTest slightly more code paths.
Martin Vidner [Wed, 15 Jan 2020 09:36:17 +0000 (10:36 +0100)] 
Test slightly more code paths.

6 years agoUnify the Fedora version
Martin Vidner [Wed, 15 Jan 2020 09:09:11 +0000 (10:09 +0100)] 
Unify the Fedora version

6 years agoIntegration test and coverage also on Fedora
Martin Vidner [Mon, 13 Jan 2020 15:09:51 +0000 (16:09 +0100)] 
Integration test and coverage also on Fedora

6 years agoRepos for coveralls-lcov for Leap and Tumbleweed
Martin Vidner [Mon, 13 Jan 2020 15:27:33 +0000 (16:27 +0100)] 
Repos for coveralls-lcov for Leap and Tumbleweed

6 years agoDeduplicate Dockerfiles with ARG
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

6 years agoCoverage with coveralls.io
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).

6 years agoIn Travis, build with coverage enabled
Martin Vidner [Fri, 10 Jan 2020 11:50:02 +0000 (12:50 +0100)] 
In Travis, build with coverage enabled

6 years agoEnable test coverage instrumentation
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

6 years agoMerge pull request #518 from openSUSE/run-integration-tests
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

6 years agoSeveral tests assume nobody:nobody, but docker omits them 518/head
Martin Vidner [Thu, 9 Jan 2020 14:54:42 +0000 (15:54 +0100)] 
Several tests assume nobody:nobody, but docker omits them

6 years agoInstall acl.rpm for setfacl for the xattr tests
Martin Vidner [Thu, 9 Jan 2020 14:31:42 +0000 (15:31 +0100)] 
Install acl.rpm for setfacl for the xattr tests

6 years agoIntegration tests need a privileged docker container for the loopback
Martin Vidner [Thu, 9 Jan 2020 13:34:37 +0000 (14:34 +0100)] 
Integration tests need a privileged docker container for the loopback

6 years agoRun the integration test
Martin Vidner [Thu, 9 Jan 2020 12:25:41 +0000 (13:25 +0100)] 
Run the integration test

6 years agoMerge pull request #517 from openSUSE/fixup-obs-build v0.8.8
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

6 years agoversion + changelog 517/head
Martin Vidner [Wed, 8 Jan 2020 09:43:49 +0000 (10:43 +0100)] 
version + changelog

Check the syntax with
(cd dists; dpkg-parsechangelog --all)

6 years agoSkip a test if dbus-run-session cannot be run (bsc#1160306)
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

6 years agoFix RPM file conflict on i586 (32 bit builds) (bsc#1160306)
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

6 years agoOnly use -Wsuggest-override if the compiler supports it. (bsc#1160306)
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

6 years agoFix Debian and Ubuntu builds in OBS (bsc#1160306)
Martin Vidner [Thu, 19 Dec 2019 13:28:36 +0000 (14:28 +0100)] 
Fix Debian and Ubuntu builds in OBS (bsc#1160306)

6 years agoMerge pull request #516 from aschnell/master
Arvin Schnell [Fri, 3 Jan 2020 16:24:34 +0000 (17:24 +0100)] 
Merge pull request #516 from aschnell/master

- renamed variable for consistency

6 years ago- renamed variable for consistency 516/head
Arvin Schnell [Fri, 3 Jan 2020 16:03:38 +0000 (17:03 +0100)] 
- renamed variable for consistency

6 years agoMerge pull request #510 from hrotkogabor/rollback-second-desc
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

6 years agocorrect description check 510/head
Hrotkó Gábor [Mon, 23 Dec 2019 20:33:51 +0000 (21:33 +0100)] 
correct description check

6 years agochange default description for the second
Hrotkó Gábor [Wed, 18 Dec 2019 16:57:52 +0000 (17:57 +0100)] 
change default description for the second

6 years agoMerge pull request #512 from openSUSE/pythonless-plugin-bootstrap
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

6 years agoWork around a bootstrapping problem 512/head
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.

6 years agoMerge pull request #501 from openSUSE/pythonless-plugin v0.8.7
Martin Vidner [Tue, 17 Dec 2019 13:12:33 +0000 (14:12 +0100)] 
Merge pull request #501 from openSUSE/pythonless-plugin

Pythonless plugin

6 years agoUnify shell options 501/head
Martin Vidner [Tue, 17 Dec 2019 10:20:29 +0000 (11:20 +0100)] 
Unify shell options

6 years agoCopyright and license headers (GPL-2.0-only)
Martin Vidner [Tue, 17 Dec 2019 09:59:27 +0000 (10:59 +0100)] 
Copyright and license headers (GPL-2.0-only)

6 years agoWhitespace cleanup
Martin Vidner [Tue, 17 Dec 2019 09:41:23 +0000 (10:41 +0100)] 
Whitespace cleanup

6 years agoAdded missing header guards
Martin Vidner [Tue, 17 Dec 2019 09:37:20 +0000 (10:37 +0100)] 
Added missing header guards

6 years agoDeal with .vscode in my user config
Martin Vidner [Mon, 16 Dec 2019 14:33:01 +0000 (15:33 +0100)] 
Deal with .vscode in my user config

6 years agoDebian does not pull in libxml2 via libsnapper?!
Martin Vidner [Fri, 13 Dec 2019 15:40:53 +0000 (16:40 +0100)] 
Debian does not pull in libxml2 via libsnapper?!

6 years agoUse snapper::Regex instead of boost::regex (both use POSIX ERE).
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

6 years agoSplit off regex matching, add a test for it
Martin Vidner [Fri, 13 Dec 2019 12:16:33 +0000 (13:16 +0100)] 
Split off regex matching, add a test for it

6 years agoUsing json-c instead of rapidjson
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.

6 years agoPhase::BEFORE and AFTER instead of "todo".
Martin Vidner [Wed, 11 Dec 2019 12:49:54 +0000 (13:49 +0100)] 
Phase::BEFORE and AFTER instead of "todo".

6 years agoTest with TAP by comparing error strings
Martin Vidner [Tue, 10 Dec 2019 12:50:00 +0000 (13:50 +0100)] 
Test with TAP by comparing error strings

6 years agoUsing the TAP driver for automake
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

6 years agoLog to stderr instead of snapper.log
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

6 years agoExplain ProgramOptions
Martin Vidner [Mon, 9 Dec 2019 14:59:27 +0000 (15:59 +0100)] 
Explain ProgramOptions

6 years agogetValue returns true/false
Martin Vidner [Mon, 9 Dec 2019 14:58:54 +0000 (15:58 +0100)] 
getValue returns true/false

consistently with other functions

6 years agoTest failing code paths
Martin Vidner [Mon, 9 Dec 2019 09:37:40 +0000 (10:37 +0100)] 
Test failing code paths

6 years agoMore debug logging
Martin Vidner [Fri, 6 Dec 2019 14:55:37 +0000 (15:55 +0100)] 
More debug logging

6 years agoDo parser the zypp supplied userdata
Martin Vidner [Fri, 6 Dec 2019 14:12:01 +0000 (15:12 +0100)] 
Do parser the zypp supplied userdata

https://fate.suse.com/312521

6 years agoUse range-based-for
Martin Vidner [Fri, 6 Dec 2019 12:48:18 +0000 (13:48 +0100)] 
Use range-based-for

6 years agoThe "match" attribute of the "solvable" element is mandatory
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.

6 years agoversion + changelog
Martin Vidner [Fri, 6 Dec 2019 10:23:17 +0000 (11:23 +0100)] 
version + changelog

6 years agoEnsure there is a DBus session for the tests
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

6 years agoRun the zypp-plugin tests
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

6 years agoFunctional test of snapper-zypp-plugin
Martin Vidner [Wed, 4 Dec 2019 15:03:09 +0000 (16:03 +0100)] 
Functional test of snapper-zypp-plugin

6 years agoAdd environment variables to work on a testing setup
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"

6 years agoHonor --disable-zypp by not building the plugin
Martin Vidner [Mon, 11 Nov 2019 15:07:45 +0000 (16:07 +0100)] 
Honor --disable-zypp by not building the plugin

6 years agoFind libxml2 portably
Martin Vidner [Mon, 11 Nov 2019 10:25:30 +0000 (11:25 +0100)] 
Find libxml2 portably

6 years agoParse and apply /etc/snapper/zypp-plugin.conf
Martin Vidner [Wed, 6 Nov 2019 14:40:13 +0000 (15:40 +0100)] 
Parse and apply /etc/snapper/zypp-plugin.conf

6 years agoFixed getChildNode, getChildNodes, getChildValue
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.

6 years agoRecognize _DISCONNECT
Martin Vidner [Fri, 1 Nov 2019 16:32:55 +0000 (17:32 +0100)] 
Recognize _DISCONNECT

6 years agoParse headers
Martin Vidner [Fri, 1 Nov 2019 16:08:45 +0000 (17:08 +0100)] 
Parse headers

6 years agoUse the snapper logger
Martin Vidner [Fri, 1 Nov 2019 13:24:48 +0000 (14:24 +0100)] 
Use the snapper logger

6 years agoParse transaction solvables with RapidJSON
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

6 years ago'override' keywords everywhere
Martin Vidner [Wed, 30 Oct 2019 13:17:26 +0000 (14:17 +0100)] 
'override' keywords everywhere

6 years agoAdded override keywords
Martin Vidner [Wed, 30 Oct 2019 13:17:05 +0000 (14:17 +0100)] 
Added override keywords

only where needed by snapper_zypp_plugin

6 years agoUse libclient
Martin Vidner [Wed, 30 Oct 2019 12:30:04 +0000 (13:30 +0100)] 
Use libclient

6 years agoPut DBus calls to a helper library
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

6 years agoSplit off classes into files
Martin Vidner [Wed, 30 Oct 2019 10:20:26 +0000 (11:20 +0100)] 
Split off classes into files

6 years agoIgnore VS Code config
Martin Vidner [Wed, 30 Oct 2019 10:19:13 +0000 (11:19 +0100)] 
Ignore VS Code config

6 years agocall all other DBus commands
Martin Vidner [Tue, 29 Oct 2019 16:04:35 +0000 (17:04 +0100)] 
call all other DBus commands

6 years agoactually call DBus
Martin Vidner [Tue, 29 Oct 2019 12:25:06 +0000 (13:25 +0100)] 
actually call DBus

using the Hihi library

6 years agomore logging
Martin Vidner [Tue, 29 Oct 2019 11:39:00 +0000 (12:39 +0100)] 
more logging

6 years agoskeleton of commit_begin
Martin Vidner [Tue, 29 Oct 2019 10:03:18 +0000 (11:03 +0100)] 
skeleton of commit_begin

6 years agoUse the override keyword
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`

6 years agopull in boost_regex
Martin Vidner [Thu, 24 Oct 2019 09:06:55 +0000 (11:06 +0200)] 
pull in boost_regex

6 years agoParser compiles and does not crash
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

6 years agoStomp protocol basics (WIP)
Martin Vidner [Wed, 23 Oct 2019 13:58:53 +0000 (15:58 +0200)] 
Stomp protocol basics (WIP)

6 years agoRemove the Python zypp plugin (JSC#SLE-10500)
Martin Vidner [Wed, 23 Oct 2019 08:41:42 +0000 (10:41 +0200)] 
Remove the Python zypp plugin (JSC#SLE-10500)

6 years agoAdd snapper-zypp-plugin in C++ (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

6 years agoformatting
Hrotkó Gábor [Tue, 10 Dec 2019 11:53:02 +0000 (12:53 +0100)] 
formatting

6 years agotake specified snapshot number into accout
Hrotkó Gábor [Tue, 10 Dec 2019 11:50:00 +0000 (12:50 +0100)] 
take specified snapshot number into accout

6 years agoadd description to the second snapshot of rollback
Hrotkó Gábor [Fri, 6 Dec 2019 20:14:42 +0000 (21:14 +0100)] 
add description to the second snapshot of rollback

6 years agoTranslated using Weblate (Estonian) v0.8.6
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)

6 years agoTranslated using Weblate (Estonian)
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)

6 years agoTranslated using Weblate (Estonian)
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)