Sjoerd Simons
f61514edaf
Allow disabling bzip2 compression for index files
...
Using bzip2 generates smaller index files (roughly 20% smaller Packages
files) but it comes with a big performance penalty. When publishing a
debian mirror snapshot (amd64, arm64, armhf, source) without contents
skipping bzip speeds things up around 1.8 times.
```
$ hyperfine -w 1 -L skip-bz2 true,false -m 3 -p "aptly -config aptly.conf publish drop bullseye || true" "aptly -config aptly.conf publish snapshot --skip-bz2={skip-bz2} --skip-contents --skip-signing bullseye"
Benchmark 1: aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
Time (mean ± σ): 35.567 s ± 0.307 s [User: 39.366 s, System: 10.075 s]
Range (min … max): 35.311 s … 35.907 s 3 runs
Benchmark 2: aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye
Time (mean ± σ): 64.740 s ± 0.135 s [User: 68.565 s, System: 10.129 s]
Range (min … max): 64.596 s … 64.862 s 3 runs
Summary
'aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye' ran
1.82 ± 0.02 times faster than 'aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye'
```
Allow skipping bz2 creation for setups where faster publishing is more
important then Package file size.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-22 11:25:45 +02:00
Lorenzo Bolla
035d5314b0
Convert tests to Python 3
...
Fix #938
2022-01-27 15:06:33 +01:00
Andrey Smirnov
61e00b5fbd
Test updates for Travis CI
...
Travis is running Trusty with GPG 2.0.x, which is
much different from 2.1.x.
Add tests for default key signing.
Add test for gpg1/2 in functional.
2018-10-10 01:34:58 +03:00
Andrey Smirnov
747b9752ce
Keep checksum of not compressed index file even if it's not uploaded
...
Fixes : #756
2018-07-14 00:17:36 +03:00
Andrey Smirnov
5b85522400
Implement 'legacy' Contents indexes to match Ubuntu <=16.04
...
Another index is created which unifies data for all the components.
This certainly requires more resources as we have to build yet another
index.
2018-04-11 00:57:15 +03:00
Oliver Sauder
b4f3573d11
Add acquire by hash when updating publish
2017-11-30 09:46:02 +01:00
Ludovico Cavedon
d6a3917141
Add -skip-cleanup option for publish commands.
...
Allow skipping unreferenced files cleanup on publish switch/update/drop
via the -skip-cleanup command line option.
Also support API SkipCleanup parameter.
Fixes #570 .
2017-08-15 19:08:17 -07:00
Andrey Smirnov
77be7b9e3b
Support for SHA-512 hashes on publishing/downloads.
2016-02-18 12:01:51 +03:00
Andrey Smirnov
933b019f71
Fix -skip-contents + system tests. #142
2015-04-05 21:55:41 +03:00
Andrey Smirnov
10876b99f5
Check for contents file generation. #142
2015-04-02 01:00:28 +03:00
Andrey Smirnov
99f6ffe1ca
Fix system test for content generation. #142
2015-04-02 00:29:49 +03:00
Andrey Smirnov
bb6593d21e
Add -force-overwrite flag to publish update, switch, snapshot and repo commands. #90
...
Includes new and updated system tests.
2014-08-05 17:01:18 +04:00
Andrey Smirnov
5b8390c644
Uncomment and fix publish updat tests.
2014-08-05 15:58:47 +04:00
Andrey Smirnov
856dd7021c
System tests for publish update empty -> empty. #66
2014-06-11 20:42:13 +04:00
Andrey Smirnov
e554d8befa
Update tests with introduction of Release files under each arch/component. #61
2014-06-07 17:01:37 +04:00
Andrey Smirnov
e3a71c81e1
Both components should contain same architectures. #36
2014-06-06 03:05:22 +04:00
Andrey Smirnov
bf900deb4b
Remove whitespace.
2014-06-06 03:03:58 +04:00
Andrey Smirnov
142387311b
Tests for aptly publish update and multi-component repository. #36
2014-06-06 03:00:44 +04:00
Andrey Smirnov
1200e9cc95
Command aptly publish update: update local repo published in-place. #8
2014-04-22 18:35:20 +04:00