-
Notifications
You must be signed in to change notification settings - Fork 211
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
Crates that are fetched but not added to the index because of a crash will be lost #628
Comments
Mentoring instructions:
|
If this is still open, I would like to work on it. |
@harrisonbrock go for it! If you have questions, feel free to reach out here or on Discord :) |
There was a new API added recently that will make this a little easier: https://docs.rs/crates-index-diff/6.2.0/crates_index_diff/struct.Index.html#method.set_last_seen_reference Also note that we currently use crates-index-diff 4.0, so it will need to be upgraded to at least 5 (preferably 6) to use this new API. |
Thanks. I have been a little sick and have not had a chance to start yet. |
Get well soon! Your health is more important than code :) |
I hope you are doing better, @harrisonbrock! |
This removes the dependency on libssh2-sys. It also makes it possible to implement rust-lang#628.
#746 only logged the failure, it will still not be added to the index. |
Ok, this is a slightly different issue than originally - we record the failure internally, it won't be lost, we just don't display it anywhere but in the logs. So it seems from the outside as if the build was never there, but we can still rerun it with |
Closing in favor of #903, the original bug this was for has been fixed. |
Secondary problem: apparently crates that are fetched but not added to the index will be lost and not build. Relevant code: https://github.com/rust-lang/docs.rs/blob/master/src/docbuilder/queue.rs#L13
Originally posted by @jyn514 in #626 (comment)
crates-index-diff
just released a change in 5.1.0 that will let us peek without consuming the changes 🎉 🎉 . This will give us much better durability in the event of a crash, I just need to implement using the new API.The text was updated successfully, but these errors were encountered: