🐛 qooxdoo-kit: fix translation race in compiler (multi-app builds drop translations)#92
Merged
Merged
Conversation
odeimaiz
requested review from
GitHK,
bisgaard-itis,
giancarloromeo,
matusdrobuliak66,
pcrespov and
sanderegg
June 16, 2026 12:01
There was a problem hiding this comment.
Pull request overview
This PR vendors and applies a patch to @qooxdoo/compiler during the qooxdoo-kit image build to fix a concurrency bug where shared-library translation catalogs can be dropped in multi-app builds.
Changes:
- Add a patch (
qx-compiler-translation-race.patch) that ensures concurrent callers ofAnalyser.getTranslation()all awaittranslation.checkRead(). - Update the
qooxdoo-kitDocker image to installpatchand apply vendored patches to the installed compiler package at build time.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| qooxdoo-kit/patches/qx-compiler-translation-race.patch | Adds a targeted upstream patch to fix the translation read race in the compiler. |
| qooxdoo-kit/Dockerfile | Installs patch and applies the vendored patch(es) to @qooxdoo/compiler during image build. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
giancarloromeo
approved these changes
Jun 16, 2026
GitHK
reviewed
Jun 16, 2026
Member
Author
Because updating the compiler and framework have been in my list for a while, but it's not as easy as changing the number of the pinned version. This solution is faster. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Patches a race condition in
@qooxdoo/compilerthat causes translation catalogs to be dropped when several applications that share a library are compiled together. The fix is carried as a vendored patch applied to the compiler at image-build time.Why
In osparc-simcore all 9 products (
osparc,s4l,s4llite,s4lacad, …) share thesingle
osparclibrary and are compiled concurrently byqx compile. With the releasedSpanish (
es) translations, only one random product actually shipped the catalog; allthe others rendered English. On the deployed products
qx.$$translations.eswas empty(
Object.keys(...).length === 0) even though the bundle'sqx.$$packageData[0].translations.eswas correct — the catalog was simply never written into those apps.
Root cause
A race in
Analyser.getTranslation():