-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fixes issue #1173 with translator.t + Downgrade Travis worker to make Mysql work #1175
Conversation
Well, on Debian 12 it seems to work. |
There is another unrelated error from Travis:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad you found the root cause. Those pesky environment variables!
Unfortunetely, there is more to it. |
Yes, for sure. For example on OSes where only one test fail, i.e a Backend specific message, where the locale is correctly set. |
Regarding the MySQL problem I noticed this: https://app.travis-ci.com/github/zonemaster/zonemaster-backend/jobs/623371555#L1060
|
e0fe0f8
to
a19f98c
Compare
* Sets correct environment to make it pass under all OSs. * Adds a breakout when run under Travis to work-around an issue under Travis not passing the tests.
a19f98c
to
2f27b7b
Compare
It should be fixed in a separate PR. |
@marc-vanderwal and @mattias-p, please re-review. I have used the model proposed by @mattias-p on our meeting. Disregard the Mysql issue for this PR. |
The MySQL service suddenly fails to start in Jammy, but it still works in Focal.
I've created matsduf#7 to update this PR with a fix for the MySQL problem. |
Downgrade Travis worker
It seem Jammy can't handle MySQL and Focal can't handle PostgreSQL. But it's possible to specify dist per job like this: ab41ad3. |
Already solved that in the same way, but with a different setting. |
@tgreenx @mattias-p @marc-vanderwal @MichaelTimbert: Please review, and then verify that "your" OS works correctly. See "how to test". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debian 12:
$ printenv | grep -i utf
$ git log -1 --oneline
81d55a4 (HEAD -> test-PR1175) Keeps Jammy for Postgresql
$ prove t/translator.t
t/translator.t .. ok
All tests successful.
Files=1, Tests=9, 2 wallclock secs ( 0.05 usr 0.00 sys + 1.69 cusr 0.08 csys = 1.82 CPU)
Result: PASS
Ubuntu 24.04:
$ printenv | grep -i utf
$ git log -1 --oneline
81d55a4 (HEAD -> test-PR1175) Keeps Jammy for Postgresql
zonemaster@zm-2024:~/zonemaster-backend$ printenv | grep -i utf
$ prove t/translator.t
t/translator.t .. ok
All tests successful.
Files=1, Tests=9, 3 wallclock secs ( 0.07 usr 0.02 sys + 2.78 cusr 0.43 csys = 3.30 CPU)
Result: PASS
Testing completed successfully on Rocky 9:
|
Co-authored-by: tgreenx <[email protected]>
fix work on Ubuntu 20.04.
|
fix work on Ubuntu 22.04.
|
Purpose
Purpose 1
This PR makes locale being set so that translation works in
t/translator.t
in all OSs.Travis is an exception where it has not been possible to make it work for all subtests. To prevent it from failing the script ends before all subtests have been run.
Purpose 2
The MySQL service suddenly fails to start in Jammy, but it still works in Focal. For Postgresql Jammy must be kept.
Context
Fixes #1173 and fixes issue with failing Mysql in Travis
How to test this PR
Purpose 1
translator.t
.printenv
to identify all set locale related keys (value beingC.UTF-8
,C
or some other value).translator.t
and all tests should pass.Purpose 2
Travis should pass.