-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Request for reversal of the addition of an HTTP server #1314
Comments
Equally importantly, that change caused a significant regression that users would be bothered by:
It is not even using maxAge caching, which we were using. Also, what is this at the end? |
Hmm, the maxAge caching should be there as long as Completely agreed, the second HTTP server definitely should not run on the server. It's intended for dev only. There were a couple changes to environment variables on the server (badges/ServerScript#2) but otherwise the server startup process is the same as before,
Can certainly work on these. I'm puzzled though, seems like something is not caching correctly. Are you looking at https://shields.io/ or the build on one of the servers? The Dynamic section was added in #820! It's a powerful badge that lets you pull dynamic content from JSON endpoints. |
I checked locally before testing with one server in production, and stopped there because of what I saw. How would I go about having a production build locally? The readme suggests
That part's a good idea, and I saw it in the PR, but the focus of my screenshot was on the lost padding between badges, fields and the button. Sorry if I was unclear. (Unrelated to this issue, and not a blocker: could you avoid printing all the GitHub tokens to the logs please? I saw that you added an endpoint to fetch them, which is a better solution, especially since the tokens are too numerous and get partially cut by console.log with a |
Looks like those docs were missed. Sorry about that. It's
Gotcha. Probably there was whitespace there before which is getting stripped out in JSX. I will look into it.
That's configurable in the environment with For what it's worth: while the API endpoint gets the real tokens, the logging output is sanitized. You're seeing hashes of the GitHub tokens, not the actual tokens. |
This is puzzling. I would think they'd be pulled from the browser cache for the life of the page. Clearly that doesn't seem to be the case. Probably this is not an issue when |
As discussed in badges/shields#1314.
Thank you for working on those issues. I added GITHUB_DEBUG_ENABLED environment variables to the setup script. Did you find a pleasant compromise for the performance of the search? The trick I used was to simply hide needless rows in the table. |
As argued for in #1314 (comment). It populates large quantities of text in the logs, where I wish to only see errors.
As argued for in #1314 (comment). It populates large quantities of text in the logs, where I wish to only see errors.
Yea, that's certainly possible. It sounds like you feel this is a release blocker. DOM updates are part of the reason it feels frustratingly slow to start, though I think the bigger part is that the browser is loading lots of badges. Once the badges are loaded, it's slower than the current site, though not bad. It's also throttled, so the re-render fires at most once every 500 ms. I would love to get this out, especially since once we have server logging, I should be able to deploy! However it's likely that tomorrow morning, NY time, is the soonest I will be able to solve this. |
All the badges loading and displayed on the shields.io webpage are actually fresh generated "live" badges? |
#1385 has a proposed fix. I haven't had much time the last couple of weeks. Sorry this took so long! |
Merged an alternate fix #1393 instead. |
I hope we can see a fresh deploy after all this performance improvements... Do you feel more comfortable now @espadrine? Or do you still think there are some road blocks/issues? |
All swell! I deployed master to s0 for testing, tweaked some rate limiting values, and saw no major issue. So, master is now live everywhere. |
Glad to hear it! |
@paulmelnikow I am discontent by the increased strain that you put on the servers in 4b5bf03 (#1273) and I'd like us to discuss it before I deploy a new version of the server.
Increased load means both increased costs and increased maintenance, and I disagree with the idea that we need two HTTP servers to run an SVG image service, a glorified string concatenator.
I'd like to discuss our options here.
The text was updated successfully, but these errors were encountered: