Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix the usage of the stale repo test. It has not been running since March 2023. Looks like this one is the last issue that was created by it: #4809
See discussion at #4871 (comment)
Currently, the stale_repository_test is invoked incorrectly. It does not accept the file name:
From
go help test
If we look at the history of deletions, we will see that stuff is mostly added, and very occasionally deleted from this repo.
That results in lots of links to abandonware, which is not awesome at all.
Having that this website is mentioned at the very beginning of https://go.dev/wiki/, can we make it better?
Reproducible test plan:
export OAUTH_TOKEN=YOUR_TOKEN_FROM_GITHUB
go test -timeout 99999s -v -run ^TestStaleRepository$
(for this run I removed the limit on number of stale repos, which is currently set to 10. Also, this will trigger github API ratelimit, which is 5000 requests per hour. I had to add delay between the calls.)
Note that out of 2413 github links in readme.md, 1217 were flagged as stale.