-
Notifications
You must be signed in to change notification settings - Fork 62
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
site.active_lang is occasionally wrong when parallel_localization is enabled #192
Comments
I am no longer working on anything related to F-Droid, having been given no choice but to leave the project several months ago. |
could be related to this prior change. But writing tests for some of this is rather challenging. The parallel localization approach to I would appreciate help with the current open PRs @obfusk started, but I also understand if ya also want nothing to do with this. I could use the help with open source software tho. @linsui did you upgrade any other parts of the site build process besides jekyll major versions by chance? different ci provider, new arm runners by chance? those can influence weird behavior problems like this given the |
https://gitlab.com/fdroid/fdroid-website/-/merge_requests/1030 I thought I didn't upgrade other parts. |
Hey @untra thanks for your response. I've been working with @linsui to troubleshoot this, but I'm not a Ruby or Jekyll programmer. Switching to
|
Here is the relevant code from the stacktrace:
So it seems that @seabass-labrax any ideas? |
try out v1.8.0, which should additionally provide further debugging output if sub processes are individually failing. |
We've tried it on staging.f-droid.org and it seems like it might reduce the likelihood of the sidebar element having the wrong language, but it doesn't completely stop it. I'm switching production to v1.8.0 and I uploaded it to Debian. |
It sounds this issue has been resolved, but let me know if this is still an issue. Cheers! |
It is unfortunately not resolved, but instead, we are relying on hacky workarounds. We're working on finding new contributors to help us get it fixed. Could you reopen it please? |
We upgraded Jekyll from 3.8.3 to 4.3.1 for https://f-droid.org/ and had to upgrade polyglot to get that working. Since then, site.active_lang is occasionally the wrong value, causing parts of the page to be rendered in the wrong language. It seems to always be a language that was processed as part of the same batch. For example, on our 12 CPU render machine,
de
occasionally getshe
andzh_Hans
occasionally getstr
.It seems that setting
parallel_localization: false
fixes it, but also drastically slows things down for a 24 language site.@obfusk Could you also take a look since you worked on parallel_localization? Thanks!
With
parallel_localization: false
, there is now a stacktrace involving polyglot:https://gitlab.com/fdroid/fdroid-website/-/jobs/6364604629
The text was updated successfully, but these errors were encountered: