-
Notifications
You must be signed in to change notification settings - Fork 208
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
Docs built during 2018-{10-12} link to the wrong url for static resources #1181
Comments
We could probably revert d8caa1c for now, that will result in us serving rustdoc's version of the font files instead of our own (because they have the same names but are hosted in different directories), but that should be fine since they're the same fonts. |
Eventually we should rebuild all these crates not to be buggy, but since there's 14k of them I think reverting in the meantime makes sense. |
Could you re-run the query again to find out how many affected builds are currently the latest version? If it was 3k in April 2020 I'm guessing it's much lower now. It is probably practical to rebuilt that subset and allow the non-latest builds to have broken CSS. |
@jsha still pretty high
|
INSERT INTO queue (name, version, priority, registry)
SELECT c.name, r.version , 10, ''
FROM crates as c
INNER JOIN releases as r on c.id = r.crate_id
WHERE r.doc_rustc_version like '%2018-1%'
ON CONFLICT (name, version) DO UPDATE
SET priority = EXCLUDED.priority,
registry = EXCLUDED.registry,
attempt = 0 This would be the rebuild / requeue statement, am I missing something? |
Yes, that looks right :) I think it will rebuild slightly more crates than needed but I don't think it's worth looking up the exact dates. |
I just ran the statement, all these releases are requeued now. I chose priority |
example for first successful rebuilds: |
The rebuilds are finished. Next thing I'll check how many releases failed to rebuild, while their original build succeeded. So we know how many would actually render wrong when we remove our workaround. |
So, I just checked the database.
Only looking at latest versions,
The releases I checked just can't be built anymore because the crates or releases they depend on don't exist any more. So the question for us is: do we keep the legacy-static-file workaround? cc @rust-lang/docs-rs |
I'm surprised we have so many failed rebuilds that previously built. Do you have an example crate which failed to rebuild I can look at? 35 latest versions seems very small. I would be ok with removing the hack if it's just those, I think. |
I agree with Joshua here! |
@jyn514 this is the list, just latest versions that were built, and couldn't be rebuilt.
|
Seeing the comments here I would propose that in the next axum migration step, which would include the hacked shared-resources-middleware, I leave it out. It's easy to add again if we need it. |
last axum PR is merged, closing this issue now. |
Noticed by @fasterthanlime: https://twitter.com/fasterthanlime/status/1328374357689765890
An example doc page: https://docs.rs/druid/0.1.1/druid/index.html
All docs built with these rustc versions hit the issue:
The issue is that these include bad paths to the static resources:
Previously this worked because the static file handler ignored the path, and just served these static resources from any directory if the filename matched, which I recently fixed: d8caa1c
This affects 14k releases, of which 3k were the latest version of a crate as of 7 months ago (which is the dataset I have available)
The text was updated successfully, but these errors were encountered: