Commit graph

919 commits

Author SHA1 Message Date
ac21074243
set MMDEBSTRAP_APT_CONFIG, MMDEBSTRAP_MODE and MMDEBSTRAP_HOOKSOCK for hook scripts 2021-01-09 19:41:59 +01:00
Josh Triplett
5a7dbc10c7
Optimize mmtarfilter to handle many path exclusions
mmtarfilter uses fnmatch to handle path exclusions and inclusions.
Python's fnmatch handles shell patterns by translating them to regular
expressions, with a 256-entry LRU cache. With more than 256 path
exclusions or inclusions, this LRU cache no longer works, and every
invocation of fnmatch on every file in every package will re-translate
and re-compile a regular expression, resulting in much worse
performance.

Translate all the shell patterns to regular expressions once. For an
mmdebstrap invocation with around 500 path filters, this speeds up
mmdebstrap by more than a minute.
2021-01-06 14:58:10 +01:00
9484107392
set PATH if it's unset or empty 2021-01-06 11:49:29 +01:00
8c42daad92
README.md: update benchmark numbers with new debootstrap 2021-01-06 11:49:14 +01:00
2d03a81997
coverage.sh: reenabling tests because bugs got fixed
- systemd didn't get fixed but somehow the order matches again (bug #963788)
 - python is installable again (bug #968217)
 - apt immediate configure was not fixed but src:glibc changed to not
   trigger the bug anymore (bugs #973305, #973325 and #972552)
2021-01-06 11:33:37 +01:00
0dc8321094
coverage.sh: the output of getcap differs depending on the version 2021-01-06 11:19:15 +01:00
e9e5f15f61
coverage.sh: remove tarball earlier to free some space 2021-01-06 11:18:46 +01:00
0b2a0c5a55
release 0.7.3 2020-12-02 06:15:54 +01:00
43ca8a5211
it is wrong to match the suite for the package set selection if more than one apt index is given (because the suite name might be equal) instead check whether there is more than zero matching and more than zero not-matching suites 2020-12-02 00:47:16 +01:00
2ccd025a25
coverage.sh: don't execute test modifying /etc/hosts without qemu 2020-12-02 00:44:57 +01:00
7c15185dfd
work around debootstrap merge_request/48 by setting link_dir 2020-12-02 00:43:45 +01:00
2c232e0661
don't ignore packages added via --include if multiple apt indices are used 2020-12-02 00:33:18 +01:00
3a2b3c142a
coverage.sh: remove stray 'exit 0' 2020-12-01 16:10:21 +01:00
9e56353661
coverage.sh: assemble ELF header according to bits and endian 2020-11-29 22:24:01 +01:00
077d8cdd9a
coverage.sh,make_mirror.sh: add i386 support 2020-11-29 21:39:08 +01:00
85328c5c7e
mmdebstrap: check for defined-ness before integer comparison 2020-11-29 20:54:50 +01:00
165cc82f97
preserve permissions of /etc/resolv.conf and /etc/hostname and resolve symlinks as debootstrap does it 2020-11-29 20:54:31 +01:00
a7c557644e
coverage.sh: check for unshare and proot 2020-11-29 15:13:59 +01:00
cf695c4a21
coverage.sh: fix total number ant print_header position 2020-11-29 11:41:36 +01:00
ac48ff6672
coverage.sh: also test variant=custom with dropping archives into /var/cache/apt/archives 2020-11-29 11:40:26 +01:00
beb0b8c177
name solver mmdebstrap-dump-solution in official apt path 2020-11-29 02:30:03 +01:00
904b79be06
coverage.sh: fix total number of tests 2020-11-29 01:55:35 +01:00
c760661de3
coverage.sh: test using /mnt requires qemu 2020-11-28 15:22:56 +01:00
f76bcb5750
release 0.7.2 2020-11-28 14:32:14 +01:00
732fde54f8
documentation improvements, add OPERATION section 2020-11-28 14:30:50 +01:00
da449be3fe
fix missing I in front of <> 2020-11-28 00:49:46 +01:00
2e19a8bda4
remove nonsense code comment 2020-11-28 00:48:38 +01:00
96f45ec2e7
info messages start with lower case character 2020-11-28 00:48:18 +01:00
b7e257871d
use Debian::DistroInfo if available 2020-11-28 00:46:48 +01:00
b2ea7b230f
remove no-op if statement 2020-11-28 00:45:54 +01:00
1e7e002eb1
print explicit info message about installing essential packages 2020-11-28 00:45:32 +01:00
2c5d902822
coverage.sh: the proot+pam problem is no more since pam 1.3.1-1 2020-11-28 00:34:48 +01:00
d96d0e0e16
coverage.sh: if a test cannot be executed mark it as skipped instead of ignoring it 2020-11-27 22:52:18 +01:00
529e8076c4
make_mirror.sh: allow setting qemu disk image size with DISK_SIZE 2020-11-27 08:18:27 +01:00
df04cf91f2
coverage.sh: only copy or test files that actually exist 2020-11-27 01:00:56 +01:00
0b27660468
make_mirror.sh: install mmdebstrap if ./mmdebstrap doesn't exist 2020-11-27 00:54:23 +01:00
2df8581bf9
make_mirror.sh: use CMD instead of ./mmdebstrap 2020-11-27 00:51:45 +01:00
c51c69ca13
tarfilter/taridshift: use argparse 2020-11-27 00:32:14 +01:00
3731393c7a
coverage.sh: fix HOSTARCH -> ONLINE 2020-11-26 23:45:32 +01:00
d947f765df
run_qemu.sh: add 20m timeout and print qemu log on failure 2020-11-26 23:45:08 +01:00
126c399d30
run_qemu.sh: explicitly convert to qcow2 2020-11-26 23:44:42 +01:00
692f687928
coverage.sh: skip tests affected by #973305 and #973325 2020-11-26 23:42:29 +01:00
0b4f8ca7db
replace armhf with arm64 in the testsuite because builds of gcc on armhf can take more than 2 days, resulting in a long m-a:same version skew 2020-11-26 23:16:36 +01:00
3babdb04cb
coverage.sh: /etc/apt/apt.conf.d/01autoremove-kernels is not anymore always created 2020-11-26 23:10:38 +01:00
ad56754a2a
pkgs_to_install might contain duplicates when multiple suites are used -- avoid that by using a hash instead of an array 2020-11-15 22:58:26 +01:00
94459eafbe
make_mirror.sh: write /usr/lib/SYSLINUX/mbr.bin to the first 440 bytes 2020-11-15 22:57:13 +01:00
0c990abc48
coverage.sh: only consider non-POD parts for maximum line length check 2020-11-15 11:30:04 +01:00
534798dbd2
add example for how to use a cache directory 2020-11-15 11:27:51 +01:00
12b26a8817
use /usr/share/distro-info/debian.csv to figure out the security mirror for bullseye and beyond 2020-11-15 10:14:03 +01:00
9d32dee3f5
if a suite name was specified, use the matching apt index to figure out the package set to install 2020-11-14 23:25:07 +01:00