phetsims / perennial

Maintenance tools that won't change with different versions of chipper checked out
MIT License
2 stars 5 forks source link

New sim isn't showing alt screenshots on the website #314

Closed amanda-phet closed 8 months ago

amanda-phet commented 1 year ago

image

This was a sim that was previously a prototype, and is now published.

mattpen commented 1 year ago

This has been happening for a while apparently. @arouinfar said in slack that "Screenshots are often wonky after publishing, I usually try the count alt images script and wait for the cache to clear". This definitely should not be the case. I suspect that the build-server order of operations has a bug, it is probably build sim -> notify website -> build images which would cause the image counts during the project sync step to fail because the images aren't built yet.

mattpen commented 8 months ago

In the above commit I fixed the problem with the order of operations. @chrisklus and I tested this on ox-dev and got a positive result. I currently don't have a reliable way to test for a negative result or a way to confirm that this was not a false positive result because the bug relied on race conditions to be present. But I feel confident that at a minimum this has not made things worse and is likely to have fied the problem.

mattpen commented 8 months ago

@zepumph agreed to do a quick review of the change tomorrow.

zepumph commented 8 months ago

@mattpen and I talked, and I had just a few minor improvements. Otherwise this looks like a nice change. Thanks!

mattpen commented 8 months ago

I added some improvements and deployed the fix to production.