-
Notifications
You must be signed in to change notification settings - Fork 1
Add some initial fixes for stability after March 2026 crash #2
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
base: main
Are you sure you want to change the base?
Changes from all commits
69d1c8f
4b74082
5e2e1e3
efc7f73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -158,33 +158,22 @@ write_robots_txt <- function(pkgs, output_file = "/var/shared/robots.txt") { | |||||||
| "GPTBot", "AhrefsBot", "PetalBot", "ClaudeBot", | ||||||||
| "SemrushBot", "meta-externalagent", "SEOkicks", | ||||||||
| "AwarioRssBot", "AwarioSmartBot", "ImagesiftBot", | ||||||||
| "AliyunSecBot", "Aliyun", "Bytespider") | ||||||||
| "AliyunSecBot", "Aliyun", "Bytespider", "YandexBot", | ||||||||
| "AcademicBotRTU", "Claude-SearchBot", "dotbot", | ||||||||
|
||||||||
| "AcademicBotRTU", "Claude-SearchBot", "dotbot", | |
| "AcademicBotRTU", "Claude-SearchBot", "DotBot", "dotbot", |
Copilot
AI
Apr 8, 2026
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.
Allow: /search/ will also allow crawling of the results endpoint /search/search?... (the results template links to search?q=..., which resolves under /search/). To avoid crawlers generating large query loads, add a more specific Disallow: /search/search (and optionally other query-style paths) while still allowing the search landing page.
| writeLines("Allow: /browse/", con = con) | |
| writeLines("Allow: /browse/", con = con) | |
| writeLines("Disallow: /search/search", con = con) |
Copilot
AI
Apr 8, 2026
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.
In the User-agent: * block, Allow: /browse/ is a prefix match and effectively permits crawling of the entire browse subtree (including /browse/<repo>/blob/..., commits, etc.). If the goal is to reduce crawler load for stability, consider narrowing the allow rules (e.g., only the repo landing pages) and/or reintroducing explicit disallows for the expensive browse endpoints.
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.
activeDeadlineSeconds: 780will hard-kill the job if indexing runs longer than ~13 minutes. The mirror-updater scripts create a lock file and only clear it at normal exit; if the pod is terminated by the deadline, the stale lock will cause subsequent runs to exit for up to 18 hours (seecreateLockFile()behavior). Consider removing/raising the active deadline, and/or adding a shutdown trap in the container entrypoint to delete the lock file on SIGTERM.