Skip to content

refactor(@angular/build): add deleteFilesFromDisk utility and rename emit-files-to-disk - #34341

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:disk-files-util
Oct 14, 2026
Merged

alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:disk-files-util

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Rename emit-files-to-disk.ts to disk-files.ts and introduce deleteFilesFromDisk to delete removed output files with bounded concurrency.

Related to #34340.

…emit-files-to-disk

Rename 'emit-files-to-disk.ts' to 'disk-files.ts' and introduce 'deleteFilesFromDisk' to delete removed output files with bounded concurrency.
@alan-agius4 alan-agius4 self-assigned this Oct 14, 2026
@alan-agius4
alan-agius4 requested a review from clydin October 14, 2026 09:36
@alan-agius4 alan-agius4 removed their assignment Oct 14, 2026
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Oct 14, 2026
@alan-agius4
alan-agius4 marked this pull request as ready for review October 14, 2026 09:38

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request consolidates disk file operations by renaming emit-files-to-disk.ts to disk-files.ts and introducing a new deleteFilesFromDisk utility to handle file deletions with bounded concurrency. The inline deletion logic in the application builder has been refactored to use this new utility. Feedback suggests restoring the maxRetries: 3 option in the file deletion logic to prevent flaky failures on environments like Windows where files might be temporarily locked.

Comment thread packages/angular/build/src/utils/disk-files.ts
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 14, 2026
@alan-agius4
alan-agius4 merged commit 6b94a2c into angular:main Oct 14, 2026
44 checks passed
@alan-agius4
alan-agius4 deleted the disk-files-util branch October 14, 2026 14:24
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants