Undocument public structs in std.range#5625
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
Yeah I can observe the following
This all started roundabout the time that we added the CODEOWNERS file and as this seemed to be very buggy and considering that a major outage would have been noticed by more people, maybe it's due to some bug in their CODEOWNER script that they don't send the correct payload (or don't send it all)? |
My theory is:
Although I could make DAutoTest try to use another method to fetch the PR (TBH it would be really annoying since it would require a bunch of layering violations due to an operation previously requiring only git now also requiring access to the GitHub API incl. auth and caching and all that), it won't fix the fact that some of our CI services may still be testing the wrong commit. Still no reply from GH support after 23 hours, FWIW. Maybe someone higher (Andrei/Walter) could try pinging them. |
|
Looks like a race condition, no? You added another commit and the status arrived before github updated their PR commit internally. Could happen when the CIs directly use git to fetch the PR branch instead of checking out the commit of the received webhook. |
That's what I thought when it happened the first time, but it's persistent.
It's not possible to fetch a specific commit from a remote, only a ref.
So far we haven't seen the mismatch get unstuck just by sitting there for a while. |
Right, looks like their head update failed altogether. Interestingly |
I don't know. In any case, we have no shortage of examples of this problem occurring across other PRs. |
d101711 to
e3113a9
Compare
|
Eh, I really don't see a reason to do this if we already have the new booktable in place. |
|
It doesn't seem a shotgun approach is good here - perhaps more of a case basis attitude. The litmus test is, does one want to store such a range as a field in a class or struct? If so, having the name available may be better than using A related matter: if the results are undocumented, their name still appears as the return type of the functions. E.g. What is the main motivation behind this? |
The others are more debatable, but when you're dealing with a function that's explicitly generating a range rather than one that's really doing some sort of algorithm that happens to use ranges, it's a lot more likely that being able to name the type is going to be useful. So, I'm inclined to argue that we just leave these be. Certainly, |
|
What's the status here.. seems stalled. |
Cleaning up the public docs. As @JackStouffer has pointed out, with the new booktables, there's less of a reason for hiding the structs from the user, so I close this for now. @ future: feel free to revisit this topic if it ever comes up again. |
|
@wilzbach |
From #5624 (review)
I have already done this, but it's not visible yet because 2.075.0 hasn't been released yet.
See: https://dlang.org/phobos-prerelease/std_range.html
-> This PR (I left
SortedRangepublic)We should wait until DAutoTest is working here.