Skip to content

fix(init): skip artifact dirs in project listing#1081

Merged
betegon merged 2 commits into
mainfrom
fix/init-skip-artifact-dirs
Jun 8, 2026
Merged

fix(init): skip artifact dirs in project listing#1081
betegon merged 2 commits into
mainfrom
fix/init-skip-artifact-dirs

Conversation

@betegon

@betegon betegon commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

Keeps generated output directories from spending the init list-dir entry budget. The directories still appear in the listing, but init no longer recurses into artifact-heavy folders.

This also moves high-confidence generated/cache folders into the shared scanner DEFAULT_SKIP_DIRS list, including package-manager caches, Python tool caches, framework outputs, native/.NET build output, and coverage outputs. Init keeps only the more debatable budget-only extras (bin, tmp, temp, Pods) on top of that shared policy.

This is intentionally narrower than #1080: no traversal rewrite, no response-shape changes, no depth change, and no platform-specific filename additions.

Test Plan

  • pnpm exec vitest run test/lib/init/tools/list-dir.test.ts test/lib/init/tools/filesystem-tools.test.ts test/lib/scan/constants.property.test.ts test/lib/scan/walker.test.ts
  • pnpm exec biome check src/lib/scan/constants.ts src/lib/init/tools/list-dir.ts test/lib/init/tools/list-dir.test.ts test/lib/scan/constants.property.test.ts

@github-actions

github-actions Bot commented Jun 8, 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-1081/

Built to branch gh-pages at 2026-06-08 15:40 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

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

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    81.53%    81.53%        —%
==========================================
  Files          374       374         —
  Lines        26173     26174        +1
  Branches     17080     17080         —
==========================================
+ Hits         21339     21340        +1
- Misses        4834      4834         —
- Partials      1768      1768         —

Generated by Codecov Action

@betegon betegon marked this pull request as ready for review June 8, 2026 15:41
@betegon betegon merged commit 9e9fe0f into main Jun 8, 2026
28 checks passed
@betegon betegon deleted the fix/init-skip-artifact-dirs branch June 8, 2026 15:48
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.

1 participant