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
Fix #456: Missing tags when a project has more than 100 tags #458
Conversation
Thanks for your pull request, @WebFreak001! |
How are we doing on this? The bug to be fixed has broken all buildkite builds because of a dependency on a really old dub version. I can create a temporary fix for dub if needed, but I'm hoping this can be merged soon instead. See for instance https://buildkite.com/dlang/phobos/builds/3239#8a55202b-60b6-4cc8-a467-7642e8175643/109-1009 ping @s-ludwig @WebFreak001 |
uhh just waiting on review, test case failure doesn't seem related to my PR because it's some botan failures |
Doh! I thought you were talking about my linked case, but you are talking about the test failure for this PR. Nevermind. |
I think this might also fix some maybe-issues with dub registry constantly refetching old versions |
@s-ludwig do you want me to put out the uritemplate.d in some separate package? |
That would be better. If possible. Thanks! |
Would definitely be nice, but I wouldn't make this a requirement for the PR. We should keep this on the radar, though. From my side this is good to go after a rebase. Just need to rememeber to clear the cache after this gets deployed to get all headers cached. |
the package is now released: https://github.com/WebFreak001/URITemplate |
@s-ludwig I have upgraded the code onto latest master, included the request_modifier (for adding authentication) and use uritemplate as dub package now. I haven't run the unittests with MongoDB enabled though (for cache test) and haven't tried out if this works yet. I don't have a dub registry setup right now so it would be nice if you could do that for me here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested locally, both unit tests and running the actual registry, and all seems to work fine, including fetching projects with >100 tags. This just needs another rebase due to dub.selections.json and can be merged. I'll wait with the deployment until tomorrow though, to first see how the effect of the update queue fixes is in practice.
ok rebased, ready for merge |
This is deployed now. |
For #456 to be properly fixed in this exact case right after deployment, either a new ETag must be sent by github (which is probably done on next release) or the db.urlcache.entries in vpmreg needs to be dropped by a DB administrator (s-ludwig) and all URLs should automatically be regrabbed. I think doing the latter will prevent some pain as cache may be cached for up to a year and I'm not exactly sure when GitHub will send new ETag values.
On localhost this fix now made mir-algorithm have 332 versions instead of 114 (100 tags + branches) again.