Skip to content
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

Build failures occurring when no string file exists for the sim+locale #83

Open
jbphet opened this issue Feb 26, 2018 · 17 comments
Open

Comments

@jbphet
Copy link
Contributor

jbphet commented Feb 26, 2018

There were two build failures that occurred today, both for the Swedish locale (sv), one for atomic-interactions and one for concentration. After some investigation on this, I have a theory: This is a bit of an unusual case - atomic-interactions and concentration both have only one string in their string files - their title. That's because the bulk of each of these simulation's strings are in some other sim - states-of-matter for atomic-interactions, beers-law-lab for concentration. In both of these cases, the Swedish translator didn't translate that one string, so there is no string file for atomic-interactions_sv nor for concentration_sv. This is probably a case that was never tested, i.e. the translator submits all of the shared strings but nothing for the primary sim. We should investigate the code path in the build server where strings exist for common/shared code but there is nothing for the specified locale for the primary sim.

@jbphet jbphet changed the title Build failures occurring when no file exists for the primary sim Build failures occurring when no string file exists for the sim+locale Feb 26, 2018
@jbphet
Copy link
Contributor Author

jbphet commented Feb 26, 2018

Assigning to @mattpen for initial investigation, he can bring in @jonathanolson and/or me as needed.

@mattpen
Copy link
Contributor

mattpen commented Feb 27, 2018

This failed during the grunt production step, and isn't directly related to the build-server. @jonathanolson can you please take a look? The failures occured during the after-requirejs build step.

Running "after-requirejs-build" task
Fatal error: Cannot read property 'ATOMIC_INTERACTIONS/atomic-interactions.title' of undefined 
Running "after-requirejs-build" task
Fatal error: Cannot read property 'CONCENTRATION/concentration.title' of undefined

@mattpen mattpen assigned jonathanolson and unassigned mattpen Feb 27, 2018
@jbphet
Copy link
Contributor Author

jbphet commented Feb 27, 2018

Another thought: this may be a problem for any sim where the title is not translated.

@jbphet
Copy link
Contributor Author

jbphet commented Feb 27, 2018

I'm going to add @oliver-phet as an assignee so that he can tell the Swedish translator to please resubmit atomic-interactions and concentration with the titles translated. The title is the first item that appears on the translation page.

@oliver-phet - let me know if you need any more details on the translator. Once he/she has been notified, you can unassign yourself.

@oliver-phet
Copy link

Translator notified.

@oliver-phet oliver-phet removed their assignment Feb 27, 2018
@jbphet
Copy link
Contributor Author

jbphet commented Feb 28, 2018

We got another one of these failures today, Feb 28 2018 at 10:01 am (approximately). It was for phet-scale-basics, locale = mr (Marathi). It appears to be exactly the same pattern, i.e. translators are submitting translations that exclude the title. To help illustrate the problem, this is what you see right now if you go to the translation page, select ph-scale-basics for the sim and Marathi for the language:

image

It's odd that we are suddenly getting a rash of these, but we are, so I'm going to elevate the priority.

@jbphet
Copy link
Contributor Author

jbphet commented Jun 8, 2018

We received two more of these this week, both were attempts to build a Maori (locale=mi) version of Circuit Construction Kit: DC - Virtual Lab. Again, the translator didn't fill in the title, and the build failed. Here's the build error message:

Build failure: Build aborted,Error: grunt build-for-server --brand=phet --locales=mi --allHTML in ../circuit-construction-kit-dc-virtual-lab failed with exit code 3 and stdout:
Running "lint-all" task

Running "clean" task

Running "requirejs-build" task

Running "after-requirejs-build" task
Fatal error: Cannot read property 'CIRCUIT_CONSTRUCTION_KIT_DC_VIRTUAL_LAB/circuit-construction-kit-dc-virtual-lab.title' of undefined  Sim = circuit-construction-kit-dc-virtual-lab Version = 1.0.2 Locales = mi Shas = ...(SHAs removed for brevity)...

Here's what the CCK DC - Virtual Lab page for the Maori translation:

image

@oliver-phet - can you please contact the Maori translator and let him know that the sim will get published if he adds a title and submits?

@oliver-phet
Copy link

Translator notified.

@jbphet
Copy link
Contributor Author

jbphet commented Mar 6, 2019

Two more of these failures occurred this week, one for a Swedish translation of Concentration, and another for a Georgian translation of the same sim. The Swedish translator appears to have figured it out because there is a Swedish version on the web site. There is not, however, a Georgian version, so I think this translator should be notified.

@oliver-phet - can you let the Georgian translator know what's up? Thanks. Please unassign yourself once you've done this.

@oliver-phet oliver-phet removed their assignment Mar 6, 2019
@oliver-phet
Copy link

Translator notified.

jonathanolson added a commit to phetsims/chipper that referenced this issue Oct 22, 2019
@jonathanolson
Copy link
Contributor

It looks like this happened again. The above commit should fix it for sims published from master. @ariel-phet should this patch/change be maintenance-released?

@jbphet
Copy link
Contributor Author

jbphet commented Oct 23, 2019

Yes, it did happen again. @oliver-phet - can you let the Turkish translator (locale = tr), know that their translation of Area Model Decimals failed because they need to translate the title? I can get you the ID of the translator if you need more info to know exactly who it was.

@oliver-phet
Copy link

Email to translator sent.

@oliver-phet oliver-phet removed their assignment Oct 23, 2019
@ariel-phet
Copy link

@jonathanolson no, this is not appropriate for a maintenance release since it is a rare problem.

If in future the rate of this bug increases we will reconsider.

@ariel-phet ariel-phet removed their assignment Oct 24, 2019
@ariel-phet
Copy link

As issues come up we will continue to document in this issue, but leaving as deferred for the moment

@jbphet
Copy link
Contributor Author

jbphet commented Mar 24, 2020

We had three occurrences of this issue this week, all for the recently published diffusion sim, locales were iw, nb, and nn.

@jbphet
Copy link
Contributor Author

jbphet commented Mar 24, 2020

I added code to prevent submissions of empty string files for #83. I still think that this should be fixed in the build server, but at least for now rosetta should be preventing this sort of build request from occurring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants