-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Some PRs listed on Dependency Dashboard are not linked to individual PRs when more than 1000 PRs old #4803
Comments
First check: are all the unlinked ones actually opened? Or perhaps are they mistakenly listed as opened when they're not? |
Some are for sure. For instance Automattic/wp-calypso#35623 is listed on the master issue, but not linked. Also Automattic/wp-calypso#34935 |
Up to date master issue link: Automattic/wp-calypso#37527 Screenshot of master issue open issues (some are unliked): Screenshot of actual open issues, sorted from newest to oldest: |
I don't think it's a coincidence that the unlinked ones are the oldest ones. I'm guessing it's because we don't fetch every PR, and this repository has a really high number of PRs. |
Confirmed, we fetch only 1000 PRs:
Unfortunately I can't fix this without first refactoring how we fetch PRs, which is a little bit of technical debt I've been meaning to get to. I'll leave this open for addressing afterwards. |
Thanks for looking into this! |
This comment has been minimized.
This comment has been minimized.
@MaronHatoum are you sure? I thought we limit our fetch to 1000 PRs, so not sure how we would otherwise find them? |
After checking the code I don't see any limitation and getting PRs from GitHub has been refactored recently, |
Our pagination defaults to 10 pages by default and I think it's used for PRs too |
hi @rarkins |
renovate/lib/modules/platform/github/pr.ts Lines 93 to 107 in ae9714a
This is the refactored code and it is using the new I can see the pagination limitation in the old |
It should fetch 20 per page only until a date is hit. Otherwise if the cache is empty it uses @zharinov please confirm. Also can you check that we're still fetching 100 per page when the cache is missing? |
What Renovate type are you using?
App, Github
Describe the bug
See Automattic/wp-calypso#37419
Some renovate updates there are not linked to the individual PRs. It would be nice if they were all linked.
Did you see anything helpful in debug logs?
Nope
To Reproduce
See Automattic/wp-calypso#37419
Additional context
The text was updated successfully, but these errors were encountered: