Bogdanp / awesome-advent-of-code

A collection of awesome resources related to the yearly Advent of Code challenge.
2.85k stars 878 forks source link

Fix external link parsing and implement request retrying #1846

Closed ndunnett closed 3 months ago

ndunnett commented 3 months ago

Regarding issue https://github.com/Bogdanp/awesome-advent-of-code/issues/1842, I've changed otherDomain in index.js to match a regex pattern to determine if a line is a Github repo rather than comparing to predefined domains to determine if it is not. I've gone through the changes to .md files since pull request https://github.com/Bogdanp/awesome-advent-of-code/pull/1838 was merged to fix links that were broken in the process.

Regarding issue https://github.com/Bogdanp/awesome-advent-of-code/issues/1845, I was able to reproduce the error locally sometimes. I've reduced chunkSize in updateRepos.js back to 200 to reduce the risk of timing out, and implemented request retrying in queryRepos so that on the event of spurious request failures it will retry a few times before giving up.

Bogdanp commented 3 months ago

Thanks for all your work on this!