Skip to content

cherry-pick: Fix deploy silently truncating tarball on dangling symlink (#1718)#1732

Merged
kriszyp merged 1 commit into
v5.1from
cherry-pick/v5.1/pr-1718-redo
Jul 9, 2026
Merged

cherry-pick: Fix deploy silently truncating tarball on dangling symlink (#1718)#1732
kriszyp merged 1 commit into
v5.1from
cherry-pick/v5.1/pr-1718-redo

Conversation

@kriszyp

@kriszyp kriszyp commented Jul 9, 2026

Copy link
Copy Markdown
Member

Manual redo of the automated cherry-pick (#1722), which left unresolved conflict markers in DESIGN.md from a stale branch point.

The conflict was between #1718's own new "dangling symlink" DESIGN.md section and an unrelated, unlabeled set_configuration replication doc section (from #1556, not patch-labeled) that had been absorbed into #1718's branch via a stale merge main — dropped that section, kept only #1718's genuine content.

Verified: unitTests/components/packageComponent.test.js + unitTests/bin/cliOperations.test.js — 12/12 passing.

Closes the stalled #1722.

Fix deploy silently truncating tarball on dangling symlink

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

Copy link
Copy Markdown
Contributor

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 addresses an issue where dangling symlinks silently truncate the deploy tarball during packaging. It introduces a pre-walk of the directory via scanPackageDirectory to identify dangling symlinks and estimate the package size in a single pass. These dangling symlinks are then ignored during the actual packaging process in streamPackagedDirectory to prevent tar-fs from terminating early, and a warning is printed to the user. Additionally, comprehensive unit tests have been added to cover these scenarios. There are no review comments to address, so no further feedback is provided.

@claude

claude Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Reviewed; no blockers found.

@kriszyp kriszyp merged commit cec8ffe into v5.1 Jul 9, 2026
47 checks passed
@kriszyp kriszyp deleted the cherry-pick/v5.1/pr-1718-redo branch July 9, 2026 03:47
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