-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Exclude wrong sponsor image temporary #4570
Conversation
Signed-off-by: Outsider <[email protected]>
@outsideris Why has the build of yesterday's fix run successfully and the deploy-review shows sponsors/backers, but the production build fails. What is the difference? If one image is broken, shouldn't both builds fail? |
@juergba Because production build run optimization. So, the optimization failed because of the sponsor imaged. In terms of commands, difference between |
I cherry-picked this commit to the |
Great! I confirmed our sponsor/backer section is back. |
IMO we shouldn't be bothered about the incorrect image. It's the one we get by opencollective (see |
I had a quick look at opencollective's API. The information |
I've asked about the wrong image on OC OC said the sponsors didn't submit their logo. So, current wrong image is a fallback.(I don't know why it is netlify logo). Additionly, the image that we received is fine. I mean it is not a broken image.(just netlify logo, not codepilot.ai) The error occurred from our optimization to make css sprite-image. I don't know why yet.
I didn't know about |
@outsideris Your backer image is behaving very dominant. 😉 |
With the URL |
Handling the excluding sponsors/backers in another issue is better. |
@outsideris I think this PR #4362 is related. |
We don't need this anymore. |
We fixed a bug for the supporter section on mochajs.org in #4569 .
Production build is still failed, but it is not related to #4569.
No sponsors nor backers image on mochajs.org is critical. So, I made a temporary fix by excluding that sponsor.
my tracking
As my tracking, downloaded sponsor image is fine, but Buffer data for the sponsor image is broken during making sprite-image.
This is the data we received from open collective and this avatar image(
https://images.opencollective.com/codepilotai/732befb/logo/64.png
) occurred the error.This image saved to
docs/_site/images/supporters/eeng0kzd-yvor4pz5-grpbma83-7xlw95jl.png
. And this image is fine.The stacktrace is like:
This is happened during our
nps docs.postbuild
.On asseetgraph-sprite(see here),
imageAsset.rawSrc
isBuffer
and Buffer data is broken.This is from our index.html. So, I guess
buildProduction
load theBuffer
data from/docs/_site/images/supporters/eeng0kzd-yvor4pz5-grpbma83-7xlw95jl.png
. But I don't how assetgraph in details,I believe @Munter can find a hint.
MCVE
This is MVCE to reproduce the issue.
The below image is
/docs/_site/images/supporters/eeng0kzd-yvor4pz5-grpbma83-7xlw95jl.png
.If you run
./node_modules/.bin/buildProduction index.html --outroot _dist
, you can see same error.Additional issue.
This sponsor is CodePilot.ai, but the avatar image(https://images.opencollective.com/codepilotai/732befb/logo/64.png) is Netlify.
I believe this is open collective issue. I made an issue on Open Collective.