Ettore Di Giacinto
a8624fe451
Move image removal in compileWithImage and further cleanup
2020-11-10 18:48:39 +01:00
Ettore Di Giacinto
14c1d6ef24
Refactor and optimize build process
2020-11-10 18:14:18 +01:00
Ettore Di Giacinto
36c58307e2
Don't export unless needed
2020-11-10 16:57:24 +01:00
Ettore Di Giacinto
a765147c1d
Add templated finalizers
2020-11-08 21:14:19 +01:00
Ettore Di Giacinto
cead09fb9f
Merge pull request #148 from mudler/respect_rootfs4conf
...
Respect rootfs path for configs and url
2020-11-08 18:25:29 +01:00
Daniele Rondina
9a1787ddaf
client/local: Handle config_from_host on DownloadFile
2020-11-08 17:06:05 +01:00
Ettore Di Giacinto
b1316b50b4
Add excludes tests
2020-11-08 16:02:11 +01:00
Ettore Di Giacinto
d92ee9e1d9
Add preliminar support for excludes
2020-11-08 15:35:24 +01:00
Ettore Di Giacinto
6a1b64acea
Order files before uninstall
...
Fixes #149
2020-11-08 12:36:41 +01:00
Ettore Di Giacinto
459eb01a59
Don't write err to stdout if not present
2020-11-08 10:02:00 +01:00
Daniele Rondina
e70cdbaaf7
Respect rootfs on repositories urls
2020-11-08 00:00:15 +01:00
Daniele Rondina
513f441bb3
Add option config_from_host
2020-11-07 18:56:25 +01:00
Daniele Rondina
ebe7466fdc
Respect rootfs path for load config
2020-11-07 18:28:23 +01:00
Ettore Di Giacinto
46ed6423ad
Merge pull request #147 from mudler/fix-protect-uninstall
...
Fix protect uninstall
2020-11-07 12:28:24 +01:00
Daniele Rondina
d5df40512b
installer: Improve message for protected files
2020-11-07 12:27:18 +01:00
Daniele Rondina
d219a2e0fb
Run travis task with/without buildkit
2020-11-07 11:41:44 +01:00
Daniele Rondina
4048138dcb
Add test suite for ConfigProtect
2020-11-07 11:39:31 +01:00
Daniele Rondina
e5f44eee09
ConfigProtect: support annotation without initial /
2020-11-07 11:39:13 +01:00
Daniele Rondina
6819a28f07
Add support to DOCKER_BUILDKIT on test
2020-11-07 11:37:58 +01:00
Daniele Rondina
24eb6eaef5
Fix test with docker buildkit
2020-11-07 11:37:58 +01:00
Daniele Rondina
c72565e019
Integrate tests for config protects with uninstall
2020-11-06 23:30:37 +01:00
Daniele Rondina
68bc8d4d27
ConfigProtect: Permit to obtain the list of files without initial /
2020-11-06 23:29:08 +01:00
Daniele Rondina
b24d335538
GetProtectFiles() is used also for tree tarball without specs
2020-11-06 23:00:37 +01:00
Ettore Di Giacinto
99bf9e291d
Use LStat and attempt removing before bailing out on first failure
2020-11-06 21:34:56 +01:00
Daniele Rondina
51417ecb5d
pkg/compiler/artifact.go: permit to support config protect with only annotation
2020-11-06 20:23:46 +01:00
Daniele Rondina
130eb8de1a
Integrate config protection on uninstall too
2020-11-06 20:14:25 +01:00
Ettore Di Giacinto
5b5735266a
Calculate provides for parallel solver too
2020-11-05 21:00:24 +01:00
Ettore Di Giacinto
984366d3a5
Consider provides during upgrades
2020-11-05 20:52:02 +01:00
Ettore Di Giacinto
25f69d4f1c
Bump topsort
2020-11-03 17:20:52 +01:00
Ettore Di Giacinto
102a788c91
Revert "Revert "Stabilize ordering graph""
...
This reverts commit 2b23016a51
.
2020-11-02 15:43:35 +01:00
Ettore Di Giacinto
2b23016a51
Revert "Stabilize ordering graph"
...
This reverts commit 940f553e1c
.
2020-11-02 15:43:15 +01:00
Ettore Di Giacinto
940f553e1c
Stabilize ordering graph
...
In this way when we order, we always return the same solution order in
case there are weak deps.
The following is optional - it doesn't change the "correctness" of the
solver results: We add an extra edge between deps that
share common dependendencies. This makes the link more stronger and
balances the graph so it doesn't show different results for the same query, as they
could be shuffled as don't have a direct connection.
2020-11-02 14:30:41 +01:00
Ettore Di Giacinto
c3ef549673
Warn user only when required when uninstalling directories
2020-10-31 11:56:03 +01:00
Ettore Di Giacinto
0e764e525e
Filter packages to install instead of looping solver result
2020-10-31 01:25:18 +01:00
Ettore Di Giacinto
f401e2b37f
Add install benchmark test for solver
2020-10-30 22:20:08 +01:00
Ettore Di Giacinto
91dfb8ce3a
Enhance CLI output
2020-10-30 19:15:04 +01:00
Ettore Di Giacinto
f6a4b634c1
Don't always walk all World() packages
...
With this change the solver during install now considers only the part
of the tree which is required to calculate the solution, it doesn't
consider anymore World() as the search space.
The search space now is narrowed down to the packages that related to
the one which we are considering.
In this subset of changes we are also optimizing the Parallel solver
avoiding an useless loop.
This change boost overall performance on large datasets which don't
necessarly have relations touching the whole tree.
2020-10-30 19:12:12 +01:00
Ettore Di Giacinto
39bc74fc73
Add boltDB test and fixup range over interface cast
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
99c59643a1
Add benchmarks tests
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
ffea4d8cf9
Fix priority constraint formula
...
The parallel solver made the issue more visible, the constraints needed
to be less relaxed and needed to be exclusive so our candidate is looked
up at it first
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
e459ddf470
Optimize BoltDB World() call
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
eb2c240e84
Adapt installer tests
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
95e640c9d0
Make solver type switchable
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
9f1a182eee
Add tests and various fixes to parallel implementation
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
9a7d92b02e
Make the parallel solver completely parallel in building formulas from dataset
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
c5ed36b2bd
Sketch concourrent solver when building formulas
2020-10-29 16:32:13 +01:00
Daniele Rondina
6806103b3e
installer: Start spinner of upgrade calculation
2020-10-25 14:01:45 +01:00
Ettore Di Giacinto
0aa0411c6e
Bump copy dep and handle shallow symlinks
2020-10-19 17:58:43 +02:00
Daniele Rondina
c0cc9ec703
convert: Now use slot for category name
2020-10-18 19:58:15 +02:00
Daniele Rondina
07dff7f197
installer: log packages ignored on create-repo
2020-10-12 08:42:19 +02:00