-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc-guide submodule issues #62739
Comments
Sorry, CI has been have rate-limiting issues recently. There is supposed to be a cron job that checks the links every day, but issues are masked by the rate-limiting. I will try to get on this today.
Our CI on the rust-lang/rustc-guide repo runs them for each PR and a CI cron job is supposed to run them nightly. Unfortunately, I don't think we can do much better. Links just break sometimes.
This link broke very recently. Unfortunately, since I haven't had time to look into CI failures, I missed this one. It should be fixed now. In general, most breakage comes from compiler code changes, so I expect the CI to find them quickly.
Sorry about this. @Michael-F-Bryan would it be possible to get linkcheck to default to reqwest? Or expose such a feature? That would help tremendously.
Huh? @pietroalbini any ideas? (Sorry, I have pinged you a lot recently)
This is the first time such a thing has happened. Also, to my knowledge, it ahould not block a PR but trigger link toolstate. Clearly, I have done something wrong. |
cc @kennytm for toolstate |
My point is, there is no reason for rustc-guide to be in toolstate if it never runs. Without being tested, there's no "state" to add to the toolstate. Tools usually run here to generate that state.
When a tool is added, it has to be manually added to the toolstate (like I did here). But to be clear, I do not want to add rustc-guide to the toolstate as-is. If it is testing external links, it will likely fail too often. I think that will be too disrupting to update PRs. |
@ehuss Ah, I guess that is why toolstate is not working properly. I very much want the guided added to toolstate. It's incredibly hard to discover these sorts of breakage with stumbling over it in other PRs to the guide. This makes it harder to keep the guide up to date and it also makes contribution to the guide more painful. I'll also add that I don't think it will be a regular problem. It was somewhat unlucky that the compiler-team repo broke at the same time as your PR. I would ask that we do an experiment: enable toolstate for the guide, and if it breaks another PR, we can disable it. |
@ehuss If it is any comfort, I enabled github restrictions on rustc-guide that prevent merging PRs/pushing to master without green CI. |
That's fair, I'm fine with trying for a while and see how it goes. Also, I'm not advocating removing it from the toolstate (sorry I'm not being clear). I meant that changing it so that it is allowed to fail when the submodule is updated at all times (even week before release). That is, changing Can you take care of the two updates I mentioned above (adding it to the json file, and updating |
Yes, that was the original goal, but clearly, I'm not doing that right. Is this the necessary change? Or do I need to explicitly allow it to fail somewhere? https://github.com/rust-lang/rust/compare/master...mark-i-m:rustc-guide-toolstate-check?expand=1 |
Also, I opened: rust-lang-nursery/rust-toolstate#12 |
Oh, if that's the goal, there are a few changes I think:
I would verify with @kennytm exactly what to do there, but that's how I see it. |
@mark-i-m I'm not quite sure what you mean here. Are you looking for the |
@Michael-F-Bryan No, we are looking for a way to make the linkchecker platform-agnostic. Currently, it seems to depend on libssl, which is only available on x86_64 linux. If there was an option to build it with reqwest, this could be alleviated. |
OpenSSL supports all the main targets so it should be easy to make linkchecker work everywhere. |
I don't use OS X or MSVC but it looks relatively easy to make it work on 32 bit Linux and 32/64 bit |
@mati865 That would be awesome! Thanks 🎉 |
That should imply |
@Michael-F-Bryan I guess, but if that is the case, then why is it not working on some platforms? See the errors in #59772 |
@mark-i-m it didn't work on i686 Linux because it's cross compiled from x86_64 Linux and there was no 32 bit openssl installed. I think I've fixed it but I'm waiting on the build to finish. |
Check rustbook links on all platforms when running locally cc rust-lang#62739
I think all the issues have been sufficiently fix, so I'm going to close this. |
Recent PR (#62733) failed due to some issues with updating the rustc-guide submodule. It's not clear exactly the extent of what's wrong, but here are some issues I see:
I'll also note that I am concerned that running external link checks on CI will likely be unreliable, and I do not want PRs to be blocked because of it.
cc @mark-i-m
The text was updated successfully, but these errors were encountered: