-
Notifications
You must be signed in to change notification settings - Fork 34
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
CI: update Ubuntu and Perl versions #1305
CI: update Ubuntu and Perl versions #1305
Conversation
The CI pipeline was still being run on Ubuntu 20.04. Update it to the latest LTS version, 22.04. In the same vein, move to more recent versions of Perl.
Add more diagnostics of why the “PO files are tidy” fails by means of a git diff.
CI fails because of a failing test in |
Seems like I was correct. The new |
Upgrading the OS used by Github Actions to run tests on PRs from Ubuntu 20.04 to 22.04 caused an upgrade in the gettext package. However, the msgcat tool uses a slightly different line-breaking algorithm that now works correctly with words between double quotations marks. In order to make our automated tests pass, we need to fix the offending PO files ourselves. In the French translation, this commit also fixes two typos in msgstrs already affected by line breaking changes. It therefore seems that the code introduced by pull request zonemaster#1195 is more fragile than one might think. This means that other users, especially those who might want to install Zonemaster::Engine from CPAN, have an increased risk of failing unit tests for something that will not cause Zonemaster::Engine to malfunction. It might be desirable to disable the PO file formatting tests by default, and only run them on Github Actions, so that a user who installs Zonemaster::Engine from CPAN will succeed even if they happen to have a version of gettext different from the developers’ systems’.
3039158
to
7f6495d
Compare
Purpose
This PR updates the versions of Ubuntu and Perl to use in Github actions.
Context
Discussion during work group meeting.
Changes
How to test this PR
The Github Action should succeed.