Closed jbphet closed 2 years ago
A few notes that might help:
git pull
in the main simulation repo after the build completed, and the log indicates that shortly before this occurs the grunt checkout-master-all
command was run, so perhaps there is some issue with that task getting the main repo back onto the master branch.Looking through the code, it looks like this probably failed in deployImages.js line 18/19. We run a git pull
on the repo being built directly after running grunt checkout-master-all
. This raises 2 questions, (a) why are we running image deploys for translation builds and (b) is grunt checkout-master-all
not actually completing before it returns and its process completes? It looks like even though we are using await
that it hasn't completed when we evaluate the next line.
(a) should be easy to fix, by putting a guard that skips the deployImages step if the build is for a single locale that is not equal to en
.
(b) will take some more investigation. That behavior is very unexpected.
Looks like another failure of the same type occurred yesterday evening. Here is the content of the email:
EDIT: typed a comment in the wrong issue.
Reviewed this again today, it definitely looks like there is an error in grunt checkout-master-all
or it is completing asyncronously.
The code in question: https://github.com/phetsims/perennial/blob/a17af9f4488f91027374d2e4e8b4e8cabd4415a9/js/build-server/deployImages.js#L19-L20
Output:
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: debug: stdout: Running "checkout-master-all" task
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: Done.
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: info: git pull on wave-interference
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: debug: Running git pull from ../wave-interference
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: debug: Command git finished. Output is below.
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: debug: stderr: You are not currently on a branch. Please specify which
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: branch you want to merge with. See git-pull(1) for details.
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: git pull <remote> <branch>
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: debug: stdout is empty.
Nov 30 09:27:25 phet-server.int.colorado.edu build-server[23489]: error: BUILD ABORTED! Error: git pull in ../wave-interference failed with exit code 1
Immediately after grunt checkout-master-all
reports "Done", wave-interference was still not on master and git pull
failed. I'm going to change this code to execute some native bash instead to get better guarantees on completion.
On the positive side, since the only thing that failed is the image deployment these were completely successful and don't need corrections for the sim file or translation credits.
I'll also add a guard to prevent image deployment for translation builds.
I submitted a translation for chains in yo with the above changes to the build-server, so I'm going to close this issue with tentative optimism.
We had three build failures that occurred over the weekend, and all three seemed to be trigged by translations. I've pasted the info from each of the emails into a separate details section below. We should figure out why these happened and whether there is anything we need to do about it.
Build Error Sun 10/17/2021 8:04 AM
``` Build failure: Error: Build aborted, Error: git pull in ../wave-on-a-string failed with exit code 1 stderr: You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pullBuild Error Sun 10/17/2021 8:12 AM
``` Build failure: Error: Build aborted, Error: git pull in ../wave-interference failed with exit code 1 stderr: You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pullBuild Error Sun 10/17/2021 8:17 AM
``` Build failure: Error: Build aborted, Error: git pull in ../unit-rates failed with exit code 1 stderr: You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pullOne thing that's weird about these is how close together in time they are. I'm not at all sure how that could happen with rosetta, unless three requests just happened to all get queued at the same time, which seems unlikely.