apport:main

Last commit made on 2024-11-28
Get this branch:
git clone -b main https://git.launchpad.net/apport

Branch merges

Branch information

Name:
main
Repository:
lp:apport

Recent commits

2d7590e... by Simon Chopin

test_signal_crashes: replace the use of ping with a custom binary

The tests were previously using `ping` under the assumption that it was
setuid or setcap. However, Debian has dropped all of those in
3:20240905-1 since those privileges aren't necessary anymore on recent
kernels with the proper sysctl knobs. (LP: #2089387)

V2:
* simplify file handling using pathlib
* skip the calling test if GCC isn't present
* drop iputils-ping from test dependencies

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2089387
Forwarded: https://github.com/canonical/apport/pull/406

63d0bf7... by Simon Chopin

test_signal_crashes: move suid binary creation into a function

This makes reuse easier.

5e6b206... by Simon Chopin

test_signal_crash: directly import Path from pathlib

We're going to use that class more so it makes sense for its name to be
short and to the point.

0e9e8bf... by Simon Chopin

test_signal_crashes: avoid modifying global cwd

We were modifying CWD of the global test runner rather than just
changing it when executing the relevant binary. That's not very clean.

2da9151... by Benjamin Drung

com.ubuntu.apport.policy: fix order of entries

The `/usr/share/polkit-1/actions/com.ubuntu.apport.policy` PolicyKit
actions file does not validate against the provided
`/usr/share/polkit-1/policyconfig-1.dtd`:

```
$ xmllint --noout --nonet --dtdvalid /usr/share/polkit-1/policyconfig-1.dtd /usr/share/polkit-1/actions/com.ubuntu.apport.policy
/usr/share/polkit-1/actions/com.ubuntu.apport.policy:10: element action: validity error : Element action content does not follow the DTD, expecting (vendor? , vendor_url? , description+ , message+ , icon_name? , defaults , annotate*), got (description message annotate defaults )
/usr/share/polkit-1/actions/com.ubuntu.apport.policy:22: element action: validity error : Element action content does not follow the DTD, expecting (vendor? , vendor_url? , description+ , message+ , icon_name? , defaults , annotate*), got (description message annotate annotate defaults )
Document /usr/share/polkit-1/actions/com.ubuntu.apport.policy does not validate against /usr/share/polkit-1/policyconfig-1.dtd
```

Move some annotations around to make it validate.

Let the CI depend on libxml2-utils for the xmllint binary and on polkitd
for providing `/usr/share/polkit-1/policyconfig-1.dtd`.

Bug: https://launchpad.net/bugs/2084152

0ba0e35... by Benjamin Drung

Increase required Python version to at least 3.11

Debian 12 "Bookworm" ships Python 3.11 and Ubuntu 24.04 "noble" ships
Python 3.12. So bump the baseline after dropping Ubuntu 22.04 "jammy".

171b444... by Benjamin Drung

apt_dpkg: drop support for systems without deb822 support

Ubuntu 22.04 "jammy" was the last system that does not have deb822
support.

9948118... by Benjamin Drung

Drop support for Ubuntu 22.04 "jammy"

Ubuntu 24.04 "noble" is the latest Ubuntu LTS version. So drop support
for Ubuntu 22.04 "jammy".

bdeacb8... by Benjamin Drung

ci: run installed tests on Ubuntu 24.04

Ubuntu 24.04 "noble" is the latest Ubuntu LTS version and the
GitHub-hosted runners support it.

27f7369... by Benjamin Drung

test: do not check for exact encoded gzip data in test_write_file

The test case `test_write_file` fails on s390x from time to time due to
the encoded chunks have a different on-disk representation. Instead of
the expected one compressed chunk

```
File: base64
 H4sICAAAAAAC/0ZpbGUA
 c3RyxIAMcBAFAK/2p9MfAAAA
```

there could be two compressed chunks:

```
File: base64
 H4sICAAAAAAC/0ZpbGUA
 cnTChAxwEA==
 BRgAr/an0x8AAAA=
```

The raw data is identical, but the zlib compressed data on disk differs!
So make the test case less picky by just checking that the data is
compressed and that the decompressed data is correct.

Bug: https://launchpad.net/bugs/2076269