Repository navigation
Conversation
Contributor
Auto-review did not completeThe
Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal): Show partial reviewYou've hit your session limit · resets 7:40am (UTC) |
A Crawl-delay-only group is kept since #996, so `Crawl-delay: -1` (or `1e999`, Infinity, which a published report serializes as null) reached the report as a delay. Only a finite, non-negative delay is stored now; any other is ignored like an unparseable one. Signed-off-by: Nik Cubrilovic <[email protected]>
The squash of #1136 kept all three drafts of its entry; the last one, which names the span caps, stays. Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/1145-crawl-delay
branch
from
October 26, 2026 07:03
f48081e to
fbc490d
Compare
Contributor
Auto-review did not completeThe
Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal): Show partial reviewYou've hit your session limit · resets 7:40am (UTC) |
Contributor
Author
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #1145.
Since #1079 and #996,
parseRobotsTxtkeeps a user-agent group whose only record isCrawl-delay, and it stored whateverNumber.parseFloatreturned:Crawl-delay: -1was stored as-1;1e999becameInfinity, which a published report serializes asnull.A strict reader of the report rejected the whole publish on either one. The cloud has dropped the value on its side since squirrelscan/repo#3399.
Change
packages/utils/src/robots-txt.tsstores a delay only when it is finite and at least 0.NaNbefore.0and fractions. So is the robots-txt rule's crawl-delay warning.Tests
packages/utils/tests/robots-txt-756.test.tschecks that these values are ignored:-1,1e999,-1e999,Infinity,NaNandsoon. Each is checked alone, and next to aDisallowline, where the group is kept without a delay.0,2.5and10are kept.robots-match-556(utils), androbots-txt-crawl-delayandai-crawlers(rules). 52 pass.tsgo --noEmitis clean.Also
A separate commit trims the CHANGELOG: #1136's squash kept all three drafts of its entry. The last draft, which names the span caps, stays.
Docs: no change; the robots-txt rule page describes valid delays only. Skill: no change.