Closed samreid closed 3 years ago
It seems like somehow the build-images step ran with an out-of-date perennial-alias (but I'm not sure how that would have happened).
Sim pages seem to make broken localhost image requests, which also results in breaking JS (if you go to a sim page with devtools open, and go back-and-forth between "About" and "Teaching Resources", it will error with this:
I copied images from graphing-quadratics 1.1.6 => 1.2.0. It looks like the images are showing up on the sim page now.
I also shut down the build-server and recloned perennial while working on this (shut down 17:05, started back 17:38).
A third issue we'll need to handle is incorrect user permissions (non-phet-admin) in build-server's phet-repos directory. We'll probably want to reclone all repos if possible @mattpen. Thoughts, or should we fix this by adjusting permissions and users?
Graphing Quadratics 1.2.0 was for --brands=phet,phet-io
, so this may also impact the PhET-iO website. The deployed links should be:
https://phet.colorado.edu/sims/html/graphing-quadratics/latest/graphing-quadratics_en.html https://phet-io.colorado.edu/sims/graphing-quadratics/1.2
we still see errors in the console, some of them trying to load from a hardcoded 127.0.0.1
These should be transient, but I opened https://github.com/phetsims/website-meteor/issues/337 to fix them.
I'm really confused why deploy-images would be using perennial-alias. The build server should check out chipper master branch and run the code from there. I'll look through the logs and see what happened.
It looks like the code that prepares to run build-images is still doing an npm prune && npm install
in annual, but chipper master now depends on perennial-alias, so this needs to be changed.
It looks like the rename of annual to perennial-alias in the build-server code was implemented but never deployed. The fixed in 32276f5b5e298e1ebcdc54f522665a63930f51da, but this wasn't ever deployed. As part of the GQ failure, this change was finally deployed (the build-server crashed and automatically restarted itself at master). I think this should have corrected the problem. I'll try a production deploy of chains, but since it doesn't include any images I don't know if this will be an effective test.
Somehow chains had a dependency on annual in branch 1.34 still, I just changed it to perennial-alias.
I'm not able to test chains at the moment due to some problems with my npm configuration. However, it looks like the only thing that failed is the images themselves, and @jonathanolson corrected this manually. I don't recommend a redeploy of GQ 1.2 as there is nothing to fix. I believe this problem self-corrected and won't happen again going forward, but I currently can't test to confirm.
A production of deploy for chains worked successfully. We still have not confirmed that the image deploys are working correctly, but that will need to be tested on a public facing sim.
@mattpen said:
I don't recommend a redeploy of GQ 1.2 as there is nothing to fix.
@mattpen Is that true for both the phet and phet-io brands? I'm trying to determine whether my work on Graphing Quadratics is indeed done, and whether https://github.com/phetsims/graphing-quadratics/issues/137 can be closed.
@pixelzoom I'm not familiar with what a correct phet-io deploy looks like these days, it would be good to have one of the experts confirm. However, the only thing that should happen after the step that failed is the final cleanup (checking out master in all repos and deleting temporary files), so I'm fairly confident it was successful.
Maybe @samreid or @zepumph could take a quick look?
I clicked through https://phet-io.colorado.edu/sims/graphing-quadratics/1.2/ and it seemed ok.
@jonathanolson said
I copied images from graphing-quadratics 1.1.6 => 1.2.0. It looks like the images are showing up on the sim page now.
I just went to https://phet.colorado.edu/en/simulations/graphing-quadratics and I don't see the alt images. I don't understand the full scope of the problems in this issue, but wanted to clarify that 1.2 is still not looking good to me.
This is likely because the image deployment failed and was corrected manually. I added the alt images to the database, but it will be a while before they appear due to server side caching (24hours).
I think the cache has finally lapsed:
Anything else here?
Thanks @mattpen and @zepumph ! I see the alt screenshots now too.
This problem looks like it is resolved. We can reopen the issue if the problem recurs.
@pixelzoom reported:
We confirmed that the perennial-alias sha is being recorded and it seems reasonable (from a few days ago). We think there is a problem in the image generation phase, since 1.2 seems like it deployed OK, except the image was broken.
@jonathanolson and I looked through the thumbnail generating code on the build server, but it was unclear where the problem lies.
Instead we added a "band-aid" of coping the images from the previous version of graphing quadratics (after checking that MD5 shas were matching up). Now the image is showing OK and launching OK, but we still see errors in the console, some of them trying to load from a hardcoded 127.0.0.1:
We also noticed problems on other sim pages, such as energy-skate-park:
@jonathanolson can you please add anything I missed?
@mattpen can you please take a look?