Skip to content

test: add unit and e2e tests for monorepo symlinked assets - #34178

Open
clydin wants to merge 1 commit into
angular:mainfrom
clydin:test-symlink-assets-monorepo
Open

clydin wants to merge 1 commit into
angular:mainfrom
clydin:test-symlink-assets-monorepo

Conversation

@clydin

@clydin clydin commented Sep 25, 2026

Copy link
Copy Markdown
Member

Ensure asset resolution properly handles symbolic links targeting directories and files located outside the workspace root, as commonly found in monorepo structures with shared packages or hoisted dependencies. Both application and browser builders are covered to prevent regressions when traversing external symlinks, and the end-to-end assets test verifies nested directory copying for out-of-tree targets.

@clydin
clydin force-pushed the test-symlink-assets-monorepo branch 2 times, most recently from 09a1959 to 2296151 Compare September 25, 2026 15:54
@clydin
clydin marked this pull request as ready for review September 25, 2026 15:57
@clydin clydin added the target: minor This PR is targeted for the next minor release label Sep 25, 2026

@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 adds unit and end-to-end tests to verify that assets from symlinked directories and files pointing outside the workspace root are correctly copied during builds. The feedback points out that the symlink public/outsideAssets created in the e2e test is not cleaned up in the finally block, which could leave a dangling symlink in the workspace.

Comment thread tests/e2e/tests/build/assets.ts
Ensure asset resolution properly handles symbolic links targeting directories and files located outside the workspace root, as commonly found in monorepo structures with shared packages or hoisted dependencies. Both application and browser builders are covered to prevent regressions when traversing external symlinks, and the end-to-end assets test verifies nested directory copying for out-of-tree targets.
@clydin
clydin force-pushed the test-symlink-assets-monorepo branch from 2296151 to bf12265 Compare September 25, 2026 16:00
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 25, 2026
@clydin
clydin requested a review from alan-agius4 September 25, 2026 20:05
@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 Sep 29, 2026
@ngbot

ngbot Bot commented Sep 29, 2026

Copy link
Copy Markdown

I see that you just added the action: merge label, but the following checks are still failing:
    failure conflicts with base branch "main"
If you want your PR to be merged, it has to pass all the CI checks.
If you can't get the PR to a green state due to flakes or broken main, please try rebasing to main and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews 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