-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Intermittent false negatives (silently exiting without any output) #53
Comments
Thanks, I can reproduce!
|
I checked which URLs failed, out of the 50. The 4 ones that never came back were to |
It seems to be that Seems to be related to the signal. No hang happens without an abort signal: |
I’m thinking there’s some race condition in play as well. Perhaps YouTube is, when it detects many requests, slow in sending the HTML body. The request went fine but the body is slow and then aborted. This may be an undici bug though, that it just aborts silently, instead of throwing. No clue. |
This comment has been minimized.
This comment has been minimized.
released in |
Hmm, tried
This PR also adds Maybe still intermittently failing for another reason? I can reduce the reproduction to simplify if it would help. |
Please do, thanks! |
I simplified the repro now: Failed the first time, but then after merging to the It's not So maybe:
I'll try re-running after a few minutes and few hours. And also try adding back parts of the original, more complex reproduction, in case those were indeed relevant. |
Yeah, it seems like the 2nd file
Interestingly, it is now very consistent in its failures: |
Hm... one other change that I did while copying the original reproduction back, was this change: /** @type {import('unified-engine').Preset} */
const config = {
- plugins: ['remark-mdx', 'remark-lint', 'remark-lint-no-dead-urls'],
+ plugins: [
+ 'remark-mdx',
+ [
+ 'remark-lint-no-dead-urls',
+ {
+ skipUrlPatterns: [
+ 'chrome://',
+ 'codesandbox-link://',
+ 'embedded-html-codesandbox://',
+ 'embedded-css-codesandbox://', Maybe this omission of Edit: No, I guess not, still intermittently exiting silently with |
I did not reproduce anything else. If you want me to spend time on this, can you please please make a tiny reproduction that I can work with? Removing everything unrelated? |
The To me, this seems pretty minimal - but maybe you have another opinion on what should still be simplified here. It's:
|
@wooorm I'm really not sure what I should change to make this more minimal, but happy to learn if you have some ideas. Should this issue be reopened, since it's still failing in the same way? Or I could open this as a new issue if that's preferred. |
Here’s how I work through your code:
|
Wow nice, that's a great simplification, thanks for the deep dive! I think I'm not versed enough on how to use Next time that I do a repro in any of the remark / unified things, I'll be sure to try out simpler combinations of packages using these steps. |
I can confirm that the silent exiting behavior is no longer reproducible in my first 5 test runs, after I upgraded to |
Upgrading to
I'll see if this continues, and if it does, I'll try to find time to create a minimal repro. |
Initial checklist
Affected packages and versions
remark-cli@12.0.1, remark-lint@10.0.0, remark-lint-no-dead-urls@2.0.0
Link to runnable example
https://github.com/karlhorky/repro-remark-lint-no-dead-urls-intermittent-silent-failures
Steps to reproduce
.mdx
content in https://github.com/karlhorky/repro-remark-lint-no-dead-urls-intermittent-silent-failures/blob/main/src/pages/a/c/y.mdxOriginally investigated in #52
Runtime: Latest Node.js LTS (v20.17.0)
Expected behavior
remark-lint-no-dead-urls
checks all URLs in all specified files and shows the resultsActual behavior
remark-lint-no-dead-urls
exits with code 0 and no output in some runsRuntime
Other (please specify in steps to reproduce)
Package manager
pnpm
OS
Linux
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: