Repository navigation
[rush] Add tarball support to deploy archives - #6227
Conversation
Support .tar, .tar.gz, and .tgz deployment archives using the existing tar dependency. Preserve ZIP support and add archive coverage, documentation, and release changefiles. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
Copilot, address the comments. |
Share native tar discovery and execution between deployment and build caching, retaining the JavaScript path for unavailable/incompatible tar and in-memory archive-only assets. Check in fixtures, remove the Windows symlink test skip, use FileSystem streams and template paths, and apply changefile wording. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Memoize native tar discovery, separate archive format detection, and remove the Rush adapter in favor of direct shared callers. Extract JavaScript tar creation and use it for build cache creation fallback, retaining atomic publication and abort handling. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Use native tar exclusively and stage archive-only deployment assets in isolated common/temp folders with guaranteed cleanup. Remove the shared JavaScript writer and restore native-only cache behavior. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
Implemented the native-only decision in e5252b7. Archive-only tar deployments now stage assets in an isolated directory under the repository's This preserves Rush's native-only cache policy established by #3653: that removal was motivated by JavaScript extraction accepting corrupt/truncated cache archives and restoring incomplete outputs, rather than evidence that JavaScript archive creation itself was faulty. The pushed revision builds successfully and passes all 18 archive tests and 73 targeted cache/native tar tests. |
…ives Fix CI snapshots and Windows tar tests; handle early stdin EOF as a closed pipe. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
Pushed fixes for the reported CI failures: refreshed the deploy-help and command-spec snapshots, corrected the native symlink fixture to create a symbolic link rather than a Windows junction, and handled Windows stdin EOF alongside EPIPE when tar exits early. Added regression coverage for both closed-pipe errors. Both packages build successfully, and all 96 targeted tests pass locally on Linux. Windows validation is pending the new CI run. |
…oy archives Use file-path-only archive inputs and stage generated assets once in AssetHandler. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
Implemented the path-only design in 483d37c: removed fileData from ArchiveManager, moved staging and generated-file writes into AssetHandler, and register targetFilePath for materialized deployments. Archive-only tar assets are staged once; archive-only ZIP stages generated files only. Cleanup now also covers extraction failures before finalization. Added single-write, empty-file, target-content, and extraction-failure regression tests. Both packages build and all 114 targeted tests pass locally. |
Address latest archive review comments, preserving ZIP order and concurrent staging isolation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Pushed 4c43038 as a separate fixup and replied to all six latest review comments. Implemented ArchiveManager initialization memoization, parallel ZIP reads with preserved entry order, explicit success-only log cleanup, collision-safe timestamp staging, and allocation-free traversal validation. Retained archiveTempFolder as public because rush deploy uses it to honor RUSH_TEMP_FOLDER. Also made the executable-permission regression compare against the actual fixture mode rather than assuming checkout permissions. Validation on Linux: package-extractor and rush-lib both build with TypeScript/lint checks; all 43 targeted archive/extraction tests and 75 native-tar/build-cache tests pass (118 total). The worktree is clean, the pre-existing metadata commit is preserved, and CI including Windows is running. Leaving the PR open for review. |
Summary
Add
.tar,.tar.gz, and.tgzsupport torush deploy --create-archive, alongside ZIP support.Details
common/temp. For archive-only ZIP deployments, stage only generated files and read existing source files directly.How it was tested
On pushed revision
483d37c, on Linux:Impacted documentation