Skip to content

shell(cp): copy the file a symlink operand points at unless -R is given - #37954

Closed
robobun wants to merge 4 commits into
mainfrom
farm/dc61eb8d/shell-cp-dereference-source
Closed

robobun wants to merge 4 commits into
mainfrom
farm/dc61eb8d/shell-cp-dereference-source

Conversation

@robobun

@robobun robobun commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

  • The shell cp builtin (the default on Windows, BUN_ENABLE_EXPERIMENTAL_SHELL_BUILTINS=1 on POSIX) copies a symlink operand as a link even without -R. cp(1) follows the operand unless -R (or -P) is given and produces a regular file:
    mkdir -p d/inner && echo hi > d/inner/target && ln -s inner/target d/rel
    BUN_ENABLE_EXPERIMENTAL_SHELL_BUILTINS=1 bun -e 'await Bun.$`cp d/rel out`; console.log(require("fs").lstatSync("out").isSymbolicLink())'
    # bun 1.4.0: true        /bin/cp: out is a regular file containing "hi"
    
  • For the same reason cp dangling out and cp link-to-dir out exit 0 and create a link (cp: "cannot stat" / "omitting directory").
  • The builtin also copies a file onto itself whenever the two operands are spelled differently: cp link target-of-link, cp file hardlink, cp file dir with dir/file hard-linked, cp -R file hardlink, and so on exit 0 (cp: "are the same file"). The only same-file check compares the two path strings. On macOS a file over 128 KiB is copied by unlinking the destination and cloning the source, so in these cases the file's only name is removed before the clone and the data is lost.
  • Cause: ShellCpTask::run_from_thread_pool_impl (src/runtime/shell/builtin/cp.rs) classifies the source with lstat (GetFileAttributesW on Windows) whether or not -R was given, and the native copy it hands the operand to, NodeFS::copy_single_file_sync (src/runtime/node/node_fs.rs), never follows a symlink: it opens with O_NOFOLLOW and recreates the link on ELOOP (Linux/FreeBSD), copies with COPYFILE_NOFOLLOW_SRC (macOS), or takes the reparse-point branch (Windows). So the builtin always behaves as cp -P; the flag parser also rejects -H/-L/-P, so there is no way to opt out.

Fix

  • cp.rs: the source operand is classified with stat without -R (follows the link, on every platform) and lstat with -R, so a link to a directory is reported as a directory and a dangling link as "No such file or directory", while cp -R link dest still copies the link itself. The -R classification is what the POSIX build already did; on Windows it moves from GetFileAttributesW to lstat, which changes no outcome (checked by hand: directory symlinks and junctions are still recreated as links under -R, since the native copy decides that on its own).
  • cp.rs: once the final destination path is known, it is compared by st_dev/st_ino with the source, looked at the same way the source was (stat without -R, lstat with it), and refused with "a and b are identical (not copied)" when it is the same file, in both modes. Under -R, when exactly one operand is a link, that side is additionally followed and compared, because the destination is written through a link and a link source would be recreated over the file it points at (cp -R f link-to-f, cp -R link-to-f f); two different links to one file remain copyable, since the link itself is what gets copied. This gives the same exit code as GNU cp 9.7 on every shape tried (listed in the review thread). The message names the destination the copy would have landed on (operand plus basename when one was appended). An inode number of 0 (a filesystem without file identity) disables the check; the existing path comparison stays as the fallback.
  • node_fs.rs: args::CpFlags gets dereference, set by the shell when -R is absent and left off by the fs.cp/fs.cpSync binding. copy_single_file_sync honours it per platform:
    • Linux/FreeBSD: cp_open_dereferenced_source checks the kind from a following stat and then opens without O_NOFOLLOW. The kind is checked before the open because open(2) on a FIFO blocks until a writer appears; a non-regular target fails with ENOTSUP, the error the existing post-open fstat check already uses for non-regular sources.
    • macOS: the classifying stat comes from cp_source_stat, which re-stats a symlink when dereferencing (callers pass their lstat as reuse_stat). clonefile(.., 0) and the plain open in the existing regular-file paths already follow links; the copyfile fallback drops COPYFILE_NOFOLLOW_SRC when dereferencing.
    • Windows: a reparse-point source takes the CopyFileW branch when dereferencing; CopyFileW copies the target of a symlink source.
  • Why this is right: both halves match cp(1) (coreutils and BSD follow operands unless -R is given, and refuse a source and destination that are one file), and the native change is confined to the dereferencing mode: with the flag off, every arm of copy_single_file_sync runs the code it ran before (cp_source_stat(.., false) returns reuse_stat or takes the same lstat), and fs.cp never sets the flag (its JS layer implements dereference itself and only sends regular files to the native copy). Comparing inodes in the mode's own follow semantics is what makes the check meaningful under -R too: there the operand is a link that is copied as a link, so it is the link's own inode that must not be the destination (cp -R link .).
  • Not changed: -H/-L/-P are still rejected as unsupported, the link-target rewriting under -R that shell(cp): copy symlinks with their targets as written #37942 fixes is untouched, copying a directory into itself is shell(cp): refuse copying a directory into itself and walk trees without recursion #37927, and the destination operand is still classified without following links (reported separately).
  • Verified with test/js/bun/shell/commands/cp.test.ts, new block "bunshell cp operands that are links" (each cp runs in a child bun with the builtin enabled). Following: a file link, several links into a directory, a link to a 300 KiB file (the clonefile path on macOS), on macOS a link to /usr/share/dict/words (another volume, so clonefile fails with EXDEV and the copyfile fallback runs), a dangling link, a link to a directory, a link to a FIFO (POSIX), and -R still copying the links themselves. Same file: link and target (small and 300 KiB), target and link, two links, a hard link, a file into its own directory, a link into the directory holding its target, one identical operand among several (the others are still copied), and under -R a hard link, a file into a directory holding a hard link of it, a 300 KiB file through a directory symlink, a link into its own directory, a file onto a link to it, a link onto its target, and (allowed) one link over another link to the same file. On bun 1.4.0 on Linux 20 of the 22 applicable tests fail (the two that pass pin behaviour that is meant to stay: -R copying links as links, and the two-link case); the whole file passes with the fix on a Linux and a Windows debug build (51 pass / 2 skip on Windows, including the pre-existing cp suite that only runs there; on the Windows canary the same cases fail except the link-to-directory one, which was already an error there).
  • test/js/node/fs/cp.test.ts and cp-symlink-target.test.ts pass with the fix (one test in cp.test.ts hits its 5 s budget on this debug/ASAN build; its child completes successfully in about 4 s when run directly, and it exercises the JS-layer recursive copy, which this diff does not touch). cargo check -p bun_runtime passes for the darwin, windows-msvc and freebsd targets; clippy is clean. On CI (build 94338 for this head) the macOS 14 and 26, Windows and Linux test lanes all pass, which covers the macOS arm (including the cross-volume copyfile test) on real hardware; the one red lane is test/cli/run/require-cache.test.ts on the x64 ASAN lane, which fails on main as well and is unrelated to this change.
  • Note for shell(cp): refuse FIFO, socket and device sources instead of hanging in open() #37937: its test "behind a symlink is copied as a symlink" runs cp link out without -R and expects a link; after this change that command refuses the FIFO behind the link instead (covered by the FIFO test here), so whichever PR lands second needs that one expectation updated.

Background

  • Shell cp builtin: ShellCpTask runs on the work pool, resolves the operands to absolute paths, decides which of the POSIX cp synopses applies (file to file, -R sources to target, files into a directory), and then starts a ShellAsyncCpTask, the same NewAsyncCpTask that fs.promises.cp uses. For a non-directory source that task calls copy_single_file_sync once; for a directory it walks the tree and calls it per entry.
  • copy_single_file_sync is the per-file primitive shared by fs.cp, fs.cpSync and the shell. Its contract so far was "copy the entry as it is", which is what a recursive copy wants for the links inside a tree; dereference adds the "copy what the operand points at" mode that a non-recursive cp wants for its operands.
  • reuse_stat: callers that already lstated the source (to tell directories from files) pass that stat down so the primitive does not repeat the syscall. When dereferencing, a stat that says "symlink" describes the wrong object, which is why cp_source_stat replaces it with a following stat.
  • stat vs lstat: stat reports the file a symlink points at, lstat reports the link itself (symlinks in the middle of the path are followed by both). Two paths name one file when their st_dev and st_ino match; hard links and paths through directory symlinks are the cases a string comparison misses. libuv fills these in on Windows from the volume serial number and file index, so the same comparison works there.
  • cp(1) symlink rules: operands are followed by default; -R switches to copying links as links (-P), with -H/-L as opt-ins to follow; and a source and destination that resolve to the same inode are refused as the same file.
  • The builtin is enabled by default only on Windows; on POSIX the system cp is normally spawned and BUN_ENABLE_EXPERIMENTAL_SHELL_BUILTINS=1, read once per process, switches the builtin on, which is why the tests spawn a child bun per case.
Earlier version of this PR

The first revision only ran the same-file check without -R, framed as a consequence of dereferencing. Review pointed out that the -R half then kept the old per-platform behaviour for cp -R file hardlink and friends (including the macOS unlink-before-clone data loss), that the destination-side refusals were untested, and that the copyfile fallback on macOS was unexercised; the second commit addresses all three.

The cp builtin classified every source operand with lstat and handed it
to the native copy, which never follows symlinks, so `cp link dest`
recreated the link instead of copying the file (cp -P behaviour), a
dangling link or a link to a directory copied successfully, and
`cp link target-of-link` did nothing.

Without -R the shell now classifies the operand with stat, refuses a
target that is the same file as the dereferenced source, and asks the
native copy to dereference via a new CpFlags::dereference, which the
POSIX arms of copy_single_file_sync honour by stat-checking the kind and
opening without O_NOFOLLOW (or letting clonefile/copyfile follow on
macOS) and the Windows arm by letting CopyFileW follow the link. -R and
fs.cp are unchanged.
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@robobun, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 8 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 91a80c68-00ee-49e5-a877-d05ff560d497

📥 Commits

Reviewing files that changed from the base of the PR and between f426a8e and 581c359.

📒 Files selected for processing (3)
  • src/runtime/node/node_fs.rs
  • src/runtime/shell/builtin/cp.rs
  • test/js/bun/shell/commands/cp.test.ts

Comment @coderabbitai help to get the list of available commands.

@robobun

robobun commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator Author
Updated 6:45 AM PT - Aug 13th, 2026

❌ @robobun, your commit 581c359 has 1 failures in Build #94338 (All Failures):


🧪   To try this PR locally:

bunx bun-pr 37954

That installs a local version of the PR into your bun-37954 executable, so you can run:

bun-37954 --bun

@robobun

robobun commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Status: reproduced on bun 1.4.0 (Linux) with BUN_ENABLE_EXPERIMENTAL_SHELL_BUILTINS=1: cp d/rel out left out a symlink, cp dangling out and cp dirlink out exited 0, and cp d/rel d/inner/target (like cp file hardlink, with or without -R) exited 0 after copying the file onto itself; /bin/cp produces a regular file for the first and refuses the rest.

The block "bunshell cp operands that are links" in test/js/bun/shell/commands/cp.test.ts fails 20 of 22 applicable cases on 1.4.0 on Linux and 18 of 21 on the Windows canary (the rest pin behaviour that is meant to stay), and passes with this branch on Linux and Windows debug builds locally and on the Linux, Windows, macOS 14 and macOS 26 CI lanes (build 94338). The only red lane on that build is test/cli/run/require-cache.test.ts on the x64 ASAN lane, which also fails on main and is unrelated to this change. Ready for review. Fix: #37954.

@claude claude 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.

I reviewed this PR and didn't find any bugs. Because it changes the shared copy_single_file_sync primitive across four platform branches (Linux, macOS, FreeBSD, Windows) and the Windows path is not yet verified per the status comment, a human look would still be worthwhile.

What was reviewed:

  • dereference: false keeps every existing arm of copy_single_file_sync byte-for-byte, and the only other CpFlags constructor (fs.cp's from_js) sets it to false, so fs.cp/fs.cpSync are unaffected.
  • The same-file guard: bun_sys::stat on Windows goes through sys_uv::stat, and libuv populates st_ino/st_dev from the file index / volume serial, so the inode comparison is meaningful there too; st_ino == 0 disables the check.
  • The FIFO hazard on the dereferencing Linux/FreeBSD path — cp_open_dereferenced_source stats before open and rejects non-regular targets with ENOTSUP, so it can't block; covered by the new FIFO test.
  • The macOS clonefile unlink-then-clone path for >128 KiB files — the same-file guard runs before the copy is scheduled, so cp link target-of-link can't reach the unlink.
Extended reasoning...

Overview

The PR makes the shell cp builtin follow symlink operands (matching cp(1)) unless -R is given. It touches three files: src/runtime/shell/builtin/cp.rs (classify the source with stat instead of lstat when not recursive, add a same-file guard by st_dev/st_ino), src/runtime/node/node_fs.rs (add a dereference flag to CpFlags and honour it in each platform branch of copy_single_file_sync), and test/js/bun/shell/commands/cp.test.ts (nine new tests spawning a child bun with the builtin enabled).

Security risks

None identified. This is file-copy semantics for the shell builtin; no auth, crypto, or untrusted-input parsing is involved. The one safety-adjacent concern — the macOS >128 KiB path unlinks the destination before clonefile, which with dereferencing could delete the only copy of a file when copying a link onto its own target — is handled by the new same-file guard in run_from_thread_pool_impl, which runs before the copy is scheduled.

Level of scrutiny

Medium-high. copy_single_file_sync is the per-file primitive shared by fs.cp, fs.cpSync, and the shell, and it has four platform-specific arms. The change is carefully gated on the new flag (with the flag off, cp_source_stat(.., false) returns reuse_stat or takes the same lstat as before, and the Linux/FreeBSD/Windows arms take exactly their old code paths), and I confirmed the only other CpFlags construction site sets dereference: false. But per-platform file I/O with subtle OS semantics (O_NOFOLLOW/ELOOP vs EMLINK, COPYFILE_NOFOLLOW_SRC, reparse points, clonefile) is exactly the class of change REVIEW.md flags for cross-platform scrutiny.

Other factors

  • The robobun status comment says the Windows build has not yet been run against the new tests; the builtin is the default on Windows, so that lane matters most.
  • The PR description notes a test-expectation conflict with #37937 depending on merge order — a human should coordinate.
  • One minor observation: the macOS branch previously attached the source path to an lstat failure via sync_error_buf; cp_source_stat now propagates the raw Syscall::stat/lstat error with ?. In practice the shell path always passes reuse_stat, and callers wrap errors, so this is unlikely to be user-visible — but it's the kind of small behaviour delta a maintainer may want to confirm.
  • Test coverage is thorough (file link, links-into-dir, 300 KiB clonefile path, dangling link, dir link, both same-file forms, FIFO, and -R still copying links), and the tests follow harness conventions (tempDir, bunEnv spread, subprocess with drained pipes, test.concurrent).

@robobun

robobun commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

Two follow-ups on the review above:

  • Windows is now verified: with this branch built on Windows x64, test/js/bun/shell/commands/cp.test.ts passes (38 pass, 1 skip for the POSIX-only FIFO case), including the pre-existing bunshell cp suite that only runs there. On the Windows canary, 6 of the 8 applicable new cases fail. I also checked by hand that -v prints the link operand, that 20 copies of the same link into one directory still exit 0 (the EBUSY suppression keys on the same absolute paths as before), and that cp link target is refused as identical on NTFS.
  • The macOS lstat error path: bun_sys::stat/lstat attach the path themselves (check_p! on Darwin/FreeBSD, with_path in the Linux wrapper), so the removed with_path(sync_error_buf) call was re-attaching the same bytes; the error a caller sees is unchanged. The same applies to the errors the new dereferencing path returns.

Take the source stat in both modes (stat without -R, lstat with -R) and
compare it with the destination looked at the same way, so hard links,
links and paths through directory symlinks are refused as identical
whether or not -R is given. The message shows the destination as cp
would land on it (operand plus basename, unnormalized).

Tests cover the destination-side shapes (hard link, link, two links,
file into its own directory, one identical operand among several, the
-R forms) and, on macOS, a link to a file on another volume, which
exercises the copyfile fallback.
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/shell/builtin/cp.rs Resolved
Comment thread src/runtime/shell/builtin/cp.rs Resolved
Comment thread src/runtime/shell/builtin/cp.rs Resolved
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/node/node_fs.rs Resolved
Comment thread src/runtime/shell/builtin/cp.rs Resolved
Comment thread src/runtime/shell/builtin/cp.rs Resolved
@robobun

robobun commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

Pushed two more commits after a review pass over the first revision:

  • 0e62b6b: the same-file check now runs in both modes. The source is stat'd without -R and lstat'd with it, and the destination is looked at the same way, so cp file hardlink, cp file dir (with dir/file hard-linked), cp -R file hardlink, cp -R link . and a file reached through a directory symlink are all refused as identical, like cp(1) does. The first revision only did this without -R, which left the -R half on the old per-platform behaviour (on macOS that includes unlinking the destination before cloning a file over 128 KiB). The message shows the destination as the copy would have landed on it (rel and ./rel), using the non-normalizing join. Tests were added for the destination-side shapes, the -R shapes, one identical operand among several, and, on macOS only, a link to /usr/share/dict/words, which sits on another volume so clonefile fails with EXDEV and the copyfile fallback (the one macOS line this PR changes in the large-file path) actually runs.
  • 3d2f087: shorter comments on the new helpers.

Re-verified on Windows x64 (this branch built there): the file passes, 48 pass / 2 skip, and the -R classification moving from GetFileAttributesW to lstat changes no outcome for directory symlinks or junctions (compared against the canary by hand); the only new refusals are the identical cases above. On Linux, 18 of the 19 applicable new tests fail on 1.4.0; on the Windows canary 16 of 18. The PR description is updated to describe the current state.

Comment thread src/runtime/shell/builtin/cp.rs Resolved
With -R the destination is still written through a link, and a link
source would be recreated over the file it points at, so when exactly
one operand is a link the link side is followed before comparing
inodes. Two links to one file stay copyable, as in cp(1).
Comment thread src/runtime/shell/builtin/cp.rs Resolved
Comment thread src/runtime/shell/builtin/cp.rs Resolved
@robobun

robobun commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

581c359 refines the -R half of the same-file check after the line comment above: when exactly one operand is a link, the link side is followed before comparing inodes, so cp -R f link-to-f and cp -R link-to-f f are refused, while one link copied over another link to the same file stays allowed. The builtin now returns the same exit code as GNU cp 9.7 for every same-file shape I tried, with and without -R. Three tests added (two refusals, one allowed case); Windows x64 re-run on this head: 51 pass / 2 skip. Description updated.

@claude claude 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.

Thanks — 581c359 addresses the earlier note: is_same_file now also follows the link on whichever side has one under -R, and the two new tests (cp -R inner/target rel and cp -R rel inner/target) pin both directions. This automated review pass found no further issues.

Because the change threads a new dereference mode through copy_single_file_sync across four platform arms (Linux/FreeBSD open, macOS clonefile/copyfile, Windows reparse-point → CopyFileW) and that primitive is shared with fs.cp, a human look at the per-platform branches would still be worthwhile.

What was reviewed:

  • Verified dereference: false leaves every existing arm of copy_single_file_sync byte-identical in behaviour, and fs.cp's Cp::from_js never sets it.
  • Traced the new is_same_file under -R: the (link, file) / (file, link) arms now catch the cases the earlier revision missed; (link, link) is intentionally allowed and covered by "with -R, two links to one file are copied".
  • Checked the FIFO guard: kind is checked via stat before opening without O_NOFOLLOW, so the dereferencing open cannot block on a FIFO.
Extended reasoning...

Overview

The PR changes the shell cp builtin to follow symlink source operands unless -R is given (matching cp(1)), and adds an inode-based same-file check so copying a file onto itself via a link/hardlink/directory-symlink is refused. To do so it adds a dereference flag to args::CpFlags and teaches NodeFS::copy_single_file_sync (in src/runtime/node/node_fs.rs) to honour it in each platform arm; ShellCpTask::run_from_thread_pool_impl (in src/runtime/shell/builtin/cp.rs) now classifies the source with stat/lstat per -R and runs the new is_same_file guard once the final destination path is known. ~250 lines of new tests in test/js/bun/shell/commands/cp.test.ts cover both halves.

Progress since the last review

My earlier inline note pointed out that under -R the identity check compared lstat(src) against lstat(tgt), so cp -R f l with l -> f (and its reverse) slipped through. Commit 581c359 adds the match (ISLNK(src), ISLNK(tgt)) fall-through in is_same_file that follows whichever side is a link and re-compares, plus two tests pinning both directions and one confirming that two distinct links to the same file are still allowed under -R. That resolves the note.

Security risks

Nothing sensitive is exposed. The change makes symlink handling in the shell builtin stricter (dangling links and links to directories are now errors without -R; copying onto self is refused), and the FIFO pre-check prevents the newly-following open from blocking. The fs.cp binding leaves dereference at its false default, so its behaviour is unchanged. The one thing worth a human eye is that copy_single_file_sync is a shared primitive: each per-platform arm (macOS clonefile/copyfile flag, Windows reparse-point vs CopyFileW, Linux/FreeBSD open flags) is gated on the new flag and the flag-off path is meant to be identical to before, which is what my read confirms — but only Linux and Windows have been run.

Level of scrutiny

Moderate–high. This is not a mechanical change: it alters symlink semantics in native filesystem code across four OS-specific branches of a primitive shared with fs.cp, and the same-file logic is subtle enough that it took two follow-up commits (0e62b6b to extend it to -R, 581c359 to catch link-on-one-side) to converge. The test coverage is thorough (23 new cases including large-file/clonefile, cross-volume copyfile fallback, FIFO, dangling link, hardlinks, directory symlinks, both modes) and the PR has been verified on Linux and Windows debug builds, but macOS and FreeBSD are asserted by cross-target cargo check only.

Other factors

The two unresolved comment-cop bot notes on cp.rs:591/614 flag the new 2–3-line invariant comments on is_same_file; these are the same automated pattern-match the author already justified for earlier instances and are not substantive. Given the cross-platform native surface and the shared primitive, I'm deferring rather than approving.

@robobun

robobun commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. On the platform coverage point: Linux and Windows have been run locally on this head (debug builds; the file passes on both, and the Windows run includes the pre-existing cp suite that is Windows-only). macOS and FreeBSD are indeed only cargo checked locally; the macOS arm is what the two large-file tests and the /usr/share/dict/words cross-volume test are for, and they run on the darwin CI lanes. On the previous build those lanes were canceled without ever getting an agent (the test-darwin queue was starved); the current build (94338) still has them queued, so the macOS result is the one piece of evidence outstanding. The one red job on 94338, test/cli/run/require-cache.test.ts timing out on the x64 ASAN lane, does not involve cp or the copy primitive and has been reported separately.

@robobun

robobun commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

The macOS lanes have now run on this head (build 94338): macOS 14 and 26 both pass, so the macOS arm, including the cross-volume copyfile fallback test, is verified on real hardware as well. The single remaining red lane is the pre-existing require-cache.test.ts failure on the x64 ASAN lane, which also fails on main.

@github-actions

Copy link
Copy Markdown
Contributor

Closing this PR because it has been inactive for more than 90 days.

@github-actions github-actions Bot closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant