Skip to content
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

Force full crawl on spec when previous crawl reported an error #1602

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Jun 19, 2024

Reffy happily reused the result of a previous crawl on a spec when a spec wasn't modified even though these results indicated an error.

In most cases, the error is a network error, and reusing the result is actually quite fine because that result was for when the spec could be crawled without error, and we should just forget about the error.

In some cases though, the error is for something else, and reusing the result while pretending the error is gone would be wrong.

These cases are not straightforward to distinguish. This update does not try to be smart and simply forces a full crawl on specs for which the previous result contains an error.

Reffy happily reused the result of a previous crawl on a spec when a spec
wasn't modified even though these results indicated an error.

In most cases, the error is a network error, and reusing the result is
actually quite fine because that result was for when the spec could be
crawled without error, and we should just forget about the error.

In some cases though, the error is for something else, and reusing the
result while pretending the error is gone would be wrong.

These cases are not straightforward to distinguish. This update does not try
to be smart and simply forces a full crawl on specs for which the previous
result contains an error.
@tidoust tidoust merged commit 6740757 into main Jun 19, 2024
1 check passed
@tidoust tidoust deleted the error branch June 19, 2024 11:02
tidoust added a commit that referenced this pull request Jun 19, 2024
Dependencies bumped:
- Bump undici from 6.18.2 to 6.19.2 (#1596)
- Bump respec from 35.1.0 to 35.1.1 (#1597)
- Bump ws from 8.17.0 to 8.17.1 (#1598)
- Bump puppeteer from 22.10.0 to 22.11.2 (#1598)

Patches:
- Force full crawl on spec when previous crawl reported an error (#1602)
- Don't sleep between specs when useCrawl option is set (#1600)
- Bump braces from 3.0.2 to 3.0.3 (#1592)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants