-
Notifications
You must be signed in to change notification settings - Fork 198
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
refine CDN invalidations after build #1861
Comments
Failed builds affect the version list in the crate dropdown (at least without #1772). Also the version list on the left of the |
invaliding when we use |
@jsha perhaps I'm missing something because of the early morning, but: I'm mostly talking about the |
correction: I just see I might have solved it myself in #1864 , so this doesn't block increasing the TTL any more. |
Following up on #1825:
I notice there are a few
?
operators that come after the build happens, but before the CDN invalidation. For instance, purging the build dir and the local cache:https://github.com/rust-lang/docs.rs/pull/1825/files#diff-b06b44e6583254ce69af8cedabc04a73a97599d593676e1bbad7ee442240ccf1R502-R506
In the unlikely event one of these fails, we would fail to invalidate. Probably the CDN invalidation should happen regardless of those errors.
Relatedly: Right now it looks like we'll do a CDN invalidation even for a build that failed. But a failed build won't affect any page except
/crate/<name>/<version>/builds
. Depending on how frequent failed builds are, we could save some money on invalidations by making /builds max-age=0, and not invalidating cache on builds.The text was updated successfully, but these errors were encountered: