Skip to content

fix(fs): ignore ETIMEDOUT in scandir on network mounts#1217

Open
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/cli-1zb-scandir-errors
Open

fix(fs): ignore ETIMEDOUT in scandir on network mounts#1217
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/cli-1zb-scandir-errors

Conversation

@sentry

@sentry sentry Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Previously, ETIMEDOUT errors encountered during readdir operations on network or cloud-mounted filesystems (e.g., CloudStorage, Ubuntu server mounts) were being reported to Sentry. While the filesystem scan itself gracefully recovers from these transient errors by returning an empty list and continuing, the isIgnorableFileError() function did not include ETIMEDOUT in its allow-list. This led to noisy, spurious error reports in Sentry.

This change updates src/lib/dsn/fs-utils.ts to add ETIMEDOUT to the list of ignorable file system error codes. This ensures that transient connection timeouts during filesystem scans are no longer captured by Sentry, reducing noise without altering the scan's behavior.

Fixes CLI-1ZB

Comment @sentry <feedback> on this PR to have Autofix iterate on the changes.

@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-1217/

Built to branch gh-pages at 2026-07-10 21:24 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 5334 uncovered lines.
✅ Project coverage is 81.82%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    81.81%    81.82%    +0.01%
==========================================
  Files          423       423         —
  Lines        29343     29343         —
  Branches     19118     19119        +1
==========================================
+ Hits         24006     24009        +3
- Misses        5337      5334        -3
- Partials      1989      1988        -1

Generated by Codecov Action

@sentry sentry Bot changed the title fix(fs-utils): ignore ETIMEDOUT and EINVAL during scandir fix(fs): ignore ETIMEDOUT in scandir on network mounts Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants