-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix failing CI tests #292
Comments
Fixing
|
Fixing
|
Fixing
|
Fixing
|
Fix the failing run-lint test by switching to Debian Bookworm for this step, and installing Poetry 1.2.2 from the official repos. This way, we circumvent a bug [1] in Poetry 1.3 (released on PyPI) and we greatly simplify this step [2]. [1]: python-poetry/poetry#7184 [2]: #292 (comment)
Debian has removed the python-all package from its Bookworm repos, which breaks our CI tests. Looking into why python-all is required in the first place, we found that it's an artificial stdeb requirement [1], prior to 0.9.1 versions The only platform affected by this issue is Ubuntu Focal, so our solution is to install python-all specifically for that platform. Finally, we further simplify our build tasks [2] (on Debian-like distros) by not letting dh-python run tests when building the packages. Doing so has two issues: 1. It requires installing all the runtime dependencies of Dangerzone, since it uses `python -m unittest discover` underneath. 2. It doesn't aid in the stability of the package, since unittest cannot run test cases for PyTest. [1]: astraw/stdeb#153 [2]: #292 (comment)
Fix the failing convert-test-docs step, by pinning Poetry to version 1.2.2. This way, we avoid a bug in Poetry 1.3 [1], which was recently released on PyPI. [1]: python-poetry/poetry#7184 Closes #292
Fix the failing run-lint test by switching to Debian Bookworm for this step, and installing Poetry 1.2.2 from the official repos. This way, we circumvent a bug [1] in Poetry 1.3 (released on PyPI) and we greatly simplify this step [2]. [1]: python-poetry/poetry#7184 [2]: #292 (comment)
Debian has removed the python-all package from its Bookworm repos, which breaks our CI tests. Looking into why python-all is required in the first place, we found that it's an artificial stdeb requirement [1], prior to 0.9.1 versions The only platform affected by this issue is Ubuntu Focal, so our solution is to install python-all specifically for that platform. Finally, we further simplify our build tasks [2] (on Debian-like distros) by not letting dh-python run tests when building the packages. Running the tests has some issues after all: 1. It requires installing all the runtime dependencies of Dangerzone, since it uses `python -m unittest discover` underneath. 2. It doesn't aid in the stability of the package, since unittest cannot run test cases for PyTest. [1]: astraw/stdeb#153 [2]: #292 (comment)
Temporarily skip building Debian Bookworm packages, due to an upstream deprecation of `python-all` package [1]. The proper fix is in the `main` branch, but we don't need to cherry-pick this in this hotfix branch. [1]: #292 (comment)
Temporarily skip building Debian Bookworm packages, due to an upstream deprecation of `python-all` package [1]. The proper fix is in the `main` branch, but we don't need to cherry-pick this in this hotfix branch. [1]: #292 (comment)
Remove a Poetry version pin to 1.2.2, which causes installation issues on systems with Python 3.11. The pin was originally introduced because Poetry 1.3 was deemed unstable, due to the following bugs: * #292 (comment) * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029156 The first problem still stands, but we can circumvent it with the `--no-ansi` flag, at no functionality cost. The second problem has been resolved, but it never affected Ubuntu Focal in the first place. Refs #292
Remove a Poetry version pin to 1.2.2, which causes installation issues on systems with Python 3.11. The pin was originally introduced because Poetry 1.3 was deemed unstable, due to the following bugs: * #292 (comment) * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029156 The first problem still stands, but we can circumvent it with the `--no-ansi` flag, at no functionality cost. The second problem has been resolved, but it never affected Ubuntu Focal in the first place. Refs #292
Remove a Poetry version pin to 1.2.2, which causes installation issues on systems with Python 3.11. The pin was originally introduced because Poetry 1.3 was deemed unstable, due to the following bugs: * #292 (comment) * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029156 The first problem still stands, but we can circumvent it with the `--no-ansi` flag, at no functionality cost. The second problem has been resolved, but it never affected Ubuntu Focal in the first place. Refs #292
Remove a Poetry version pin to 1.2.2, which causes installation issues on systems with Python 3.11. The pin was originally introduced because Poetry 1.3 was deemed unstable, due to the following bugs: * #292 (comment) * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029156 The first problem still stands, but we can circumvent it with the `--no-ansi` flag, at no functionality cost. The second problem has been resolved, but it never affected Ubuntu Focal in the first place. Refs #292
Our CI tests have recently started to fail on their own, due to upstream changes. See an example CI run here.
We see 3 tests that are failing:
run-lint
: Thepoetry install
command fails with exit code1
, and no log message.build-debian-bookworm
: The "Install dependencies (deb)" task fails withUnable to locate package python-all
.convert-test-docs
: The "Install poetry dependencies" step fails with:The text was updated successfully, but these errors were encountered: