Skip to content

fs cp -r: back off during failure bursts - #7786

Draft
yuanjieding-db wants to merge 1 commit into
yuanjieding-db/fs-cp-stall-timeoutfrom
yuanjieding-db/fs-cp-breaker
Draft

yuanjieding-db wants to merge 1 commit into
yuanjieding-db/fs-cp-stall-timeoutfrom
yuanjieding-db/fs-cp-breaker

Conversation

@yuanjieding-db

@yuanjieding-db yuanjieding-db commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Stack. Each PR is based on the one before it, so its diff shows only its own change.

PR
1 #7711 Skip the per-file parent-directory check in fs cp -r
2 #7784 testserver: optional response headers on fault rules
3 #7712 fs cp -r: keep going past failed files (validation results are here)
4 #7785 fs cp -r: stop when files keep failing for 5 minutes
5 #7786 fs cp -r: back off during failure bursts
6 #7787 fs cp -r: retry transient directory errors

This is part 5.

Changes

After --concurrency consecutive retryable failures with no success in between, a circuit breaker opens:

  • While it's open, no new files start. One deferred file at a time is probed, waiting 2s, 4s, ... up to 30s between probes. A Retry-After hint is honored, capped at 30s.
  • The first success closes the breaker.
  • A probe that fails defers its file again, so during an outage a file can be tried more than twice, up to the stall timeout.
  • Logging: opening and closing the breaker is logged at info, each probe at debug.
  • With --concurrency 1, one retryable failure opens the breaker, so each transient error costs at least a 2s pause before the next file.
  • Probing is serial because admit runs on the walker goroutine (now noted in a comment).

DATABRICKS_FS_CP_PROBE_BACKOFF_MAX_MS is an undocumented override of the 30s cap, for tests. Sleeping is injectable.

Why

Keeping going during a burst of failures sends a failing request for every file and adds to the load on a service that is already struggling.

Tests

  • Unit tests (fake clock):
    • backoff of 2, 4, 8 and 16s, Retry-After above the backoff, and Retry-After capped at 30s, with the probe order and the log lines;
    • the breaker opening during the deferred pass, where the file itself is the probe;
    • opening only after consecutive failures, keeping the largest Retry-After until a success, and closing on success;
    • retryAfter for both SDKs, and the env override.
  • Acceptance:
    • burst-retry-after: six 500s with Retry-After: 1 open the breaker, and every file is copied.
    • outage-past-stall: uploads fail for longer than a 2s stall timeout, and the copy stops and reports. This is fs cp -r: stop when files keep failing for 5 minutes #7785's end-to-end scenario: it needs the breaker's waits to reach the timeout.
    • The burst uses 500s, not 503s, because the filer retries a 503 itself for about 75 seconds before the copy sees it. The 123K-file validation covers the real 503 path (see fs cp -r: keep going past failed files #7712).

Self-review

Isaac review, 1 finding:

  • Fixed: the probe where the job itself is the probe had no test. TestRecursiveCopyBreakerOnDeferredPass covers it now.

/code-review (medium), 8 findings:

  • Fixed: a deferred file can be uploaded more than twice while the breaker probes. That's how the copy retries during an outage, bounded by the stall timeout, and the struct doc now says so.
  • Not changed:
    • A probe can be a large file. This change is about many small files.
    • A DBFS Retry-After in the HTTP-date form is ignored. The DBFS SDK retries 429 and 503 itself, and the seconds form is honored.
    • The backoff doubles even when a sleep is cut short. That only happens when the copy is stopping.
    • The largest Retry-After is held until a success. That's intentional: a later 500 without a hint must not erase a 503's hint.
    • --concurrency 1 opens the breaker on one failure. The spec sets the threshold to --concurrency.
    • admit returns one bool for both "stopped" and "copied as the probe". Both mean "don't start it", admit records a not-started file itself, and it has one caller.
    • Copies started before the breaker opened keep running. They were already sent, and cancelling them would waste the work.
    • The outage unit test now covers one deferred file instead of five. The case where many deferred files keep their errors at a stall is covered in fs cp -r: stop when files keep failing for 5 minutes #7785 and fs cp -r: keep going past failed files #7712.

This pull request and its description were written by Isaac.

@yuanjieding-db
yuanjieding-db force-pushed the yuanjieding-db/fs-cp-stall-timeout branch from 6d97669 to 85e902d Compare November 18, 2026 18:14
@yuanjieding-db
yuanjieding-db force-pushed the yuanjieding-db/fs-cp-breaker branch from af4903e to 717bb8b Compare November 18, 2026 18:14
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: 6cdf97e47 | Workflow run

Selected 9 changed tests (limit=20, 0 not selected)

25 tests: regression=25 unreleased=0 coverage=0 failing=0
test branch main (f504773) latest (v1.28.0)
TestAccept/cmd/fs/cp-r-keep-going/burst-retry-after ✅ ❌ ❌
TestAccept/cmd/fs/cp-r-keep-going/outage-past-stall ✅ ❌ ❌
TestAccept/cmd/fs/cp-r-keep-going/persistent-500 ✅ ❌ ❌
TestAccept/cmd/fs/cp-r-keep-going/single-500 ✅ ❌ ❌
TestAccept/cmd/fs/cp-r-requests ✅ ❌ ❌
TestAccept/cmd/fs/cp/dir-to-dir ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=dbfs/SRC=dbfs ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=dbfs/SRC=local ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=dbfs/SRC=volume ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=local/SRC=dbfs ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=local/SRC=local ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=local/SRC=volume ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=volume/SRC=dbfs ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=volume/SRC=local ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/dir/DST=volume/SRC=volume ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=dbfs/SRC=dbfs ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=dbfs/SRC=local ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=dbfs/SRC=volume ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=local/SRC=dbfs ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=local/SRC=local ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=local/SRC=volume ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=volume/SRC=dbfs ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=volume/SRC=local ✅ ❌ ❌
TestAccept/cmd/fs/cp/matrix/file/DST=volume/SRC=volume ✅ ❌ ❌
TestAccept/cmd/sandbox/fs/cp ✅ ❌ ❌
TestAccept/cmd/fs/cp-r-keep-going/burst-retry-after: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:686
        	Error:      	Not equal: 
        	            	expected: "\n>>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 2\nCopied 6 files.\nlocaldir/f1.txt -> dbfs:/Volumes/main/default/keep-going/dst/f1.txt\nlocaldir/f2.txt -> dbfs:/Volumes/main/default/keep-going/dst/f2.txt\nlocaldir/f3.txt -> dbfs:/Volumes/main/default/keep-going/dst/f3.txt\nlocaldir/f4.txt -> dbfs:/Volumes/main/default/keep-going/dst/f4.txt\nlocaldir/f5.txt -> dbfs:/Volumes/main/default/keep-going/dst/f5.txt\nlocaldir/f6.txt -> dbfs:/Volumes/main/default/keep-going/dst/f6.txt\n\n=== Six uploads plus the six that hit the burst\n\n>>> print_requests.py --summary //api/2.0/fs/files/\n12\n"
        	            	actual  : "\n>>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 2\nError: databricks-api error: Fault injected by test.\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,14 +2,5 @@
        	            	 >>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 2
        	            	-Copied 6 files.
        	            	-localdir/f1.txt -> dbfs:/Volumes/main/default/keep-going/dst/f1.txt
        	            	-localdir/f2.txt -> dbfs:/Volumes/main/default/keep-going/dst/f2.txt
        	            	-localdir/f3.txt -> dbfs:/Volumes/main/default/keep-going/dst/f3.txt
        	            	-localdir/f4.txt -> dbfs:/Volumes/main/default/keep-going/dst/f4.txt
        	            	-localdir/f5.txt -> dbfs:/Volumes/main/default/keep-going/dst/f5.txt
        	            	-localdir/f6.txt -> dbfs:/Volumes/main/default/keep-going/dst/f6.txt
        	            	+Error: databricks-api error: Fault injected by test.
        	            	 
        	            	-=== Six uploads plus the six that hit the burst
        	            	+Exit code: 1
        	            	 
        	            	->>> print_requests.py --summary //api/2.0/fs/files/
        	            	-12
        	            	-
        	Test:       	TestAccept/cmd/fs/cp-r-keep-going/burst-retry-after
        	Messages:   	cmd/fs/cp-r-keep-going/burst-retry-after/output.txt vs /tmp/TestAcceptcmdfscp-r-keep-goingburst-retry-after2269870222/002/output.txt

latest (v1.28.0): same output as main (f504773)

TestAccept/cmd/fs/cp-r-keep-going/outage-past-stall: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:686
        	Error:      	Not equal: 
        	            	expected: "\n>>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 1\nCopy incomplete: 0 copied, 0 skipped (already existed), 1 failed, 3 not attempted.\nStopped: files kept failing and none was copied for 2 seconds, so no new files were started.\nFailed:\n  localdir/f1.txt -> dbfs:/Volumes/main/default/keep-going/dst/f1.txt: databricks-api error: Fault injected by test. (HTTP 500 Internal Server Error)\nError: copy stopped: files kept failing and none was copied for 2 seconds\n"
        	            	actual  : "\n>>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 1\nError: databricks-api error: Fault injected by test.\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,7 +2,3 @@
        	            	 >>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 1
        	            	-Copy incomplete: 0 copied, 0 skipped (already existed), 1 failed, 3 not attempted.
        	            	-Stopped: files kept failing and none was copied for 2 seconds, so no new files were started.
        	            	-Failed:
        	            	-  localdir/f1.txt -> dbfs:/Volumes/main/default/keep-going/dst/f1.txt: databricks-api error: Fault injected by test. (HTTP 500 Internal Server Error)
        	            	-Error: copy stopped: files kept failing and none was copied for 2 seconds
        	            	+Error: databricks-api error: Fault injected by test.
        	            	 
        	Test:       	TestAccept/cmd/fs/cp-r-keep-going/outage-past-stall
        	Messages:   	cmd/fs/cp-r-keep-going/outage-past-stall/output.txt vs /tmp/TestAcceptcmdfscp-r-keep-goingoutage-past-stall2286795567/002/output.txt

latest (v1.28.0): same output as main (f504773)

TestAccept/cmd/fs/cp-r-keep-going/persistent-500: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp-r-keep-going/persistent-500/output.txt
        +++ /tmp/TestAcceptcmdfscp-r-keep-goingpersistent-5001567364404/002/output.txt
        @@ -1,18 +1,10 @@
         
         >>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 2
        -Copy incomplete: 3 copied, 0 skipped (already existed), 1 failed, 0 not attempted.
        -Failed:
        -  localdir/f3.txt -> dbfs:/Volumes/main/default/keep-going/dst/f3.txt: HTTP 500 Internal Server Error
        -Error: 1 file was not copied
        +Error: write /Volumes/main/default/keep-going/dst/f3.txt: Files API returned HTTP 500 Internal Server Error
         localdir/f1.txt -> dbfs:/Volumes/main/default/keep-going/dst/f1.txt
        -localdir/f2.txt -> dbfs:/Volumes/main/default/keep-going/dst/f2.txt
        -localdir/f4.txt -> dbfs:/Volumes/main/default/keep-going/dst/f4.txt
         
         === Four uploads plus one retry of f3.txt
         
         >>> print_requests.py --summary --sort //api/2.0/fs/files/
         PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f1.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f2.txt overwrite=false
         PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f3.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f3.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f4.txt overwrite=false

latest (v1.28.0): same output as main (f504773)

TestAccept/cmd/fs/cp-r-keep-going/single-500: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp-r-keep-going/single-500/output.txt
        +++ /tmp/TestAcceptcmdfscp-r-keep-goingsingle-50020334833/002/output.txt
        @@ -1,20 +1,8 @@
         
         >>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 2
        -Copied 6 files.
        +Error: databricks-api error: Fault injected by test.
         localdir/f1.txt -> dbfs:/Volumes/main/default/keep-going/dst/f1.txt
         localdir/f2.txt -> dbfs:/Volumes/main/default/keep-going/dst/f2.txt
        -localdir/f3.txt -> dbfs:/Volumes/main/default/keep-going/dst/f3.txt
         localdir/f4.txt -> dbfs:/Volumes/main/default/keep-going/dst/f4.txt
        -localdir/f5.txt -> dbfs:/Volumes/main/default/keep-going/dst/f5.txt
        -localdir/f6.txt -> dbfs:/Volumes/main/default/keep-going/dst/f6.txt
         
        -=== Six uploads plus one retry
        -
        ->>> print_requests.py --summary --sort //api/2.0/fs/files/
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f1.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f2.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f3.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f3.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f4.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f5.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f6.txt overwrite=false
        +Exit code: 1

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp-r-keep-going/single-500/output.txt
        +++ /tmp/TestAcceptcmdfscp-r-keep-goingsingle-500220047904/002/output.txt
        @@ -1,20 +1,6 @@
         
         >>> cp_r localdir dbfs:/Volumes/main/default/keep-going/dst --concurrency 2
        -Copied 6 files.
        +Error: databricks-api error: Fault injected by test.
         localdir/f1.txt -> dbfs:/Volumes/main/default/keep-going/dst/f1.txt
        -localdir/f2.txt -> dbfs:/Volumes/main/default/keep-going/dst/f2.txt
        -localdir/f3.txt -> dbfs:/Volumes/main/default/keep-going/dst/f3.txt
        -localdir/f4.txt -> dbfs:/Volumes/main/default/keep-going/dst/f4.txt
        -localdir/f5.txt -> dbfs:/Volumes/main/default/keep-going/dst/f5.txt
        -localdir/f6.txt -> dbfs:/Volumes/main/default/keep-going/dst/f6.txt
         
        -=== Six uploads plus one retry
        -
        ->>> print_requests.py --summary --sort //api/2.0/fs/files/
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f1.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f2.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f3.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f3.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f4.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f5.txt overwrite=false
        -PUT /api/2.0/fs/files/Volumes/main/default/keep-going/dst/f6.txt overwrite=false
        +Exit code: 1
TestAccept/cmd/fs/cp-r-requests: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp-r-requests/output.txt
        +++ /tmp/TestAcceptcmdfscp-r-requests1329452435/002/output.txt
        @@ -1,6 +1,5 @@
         
         >>> [CLI] fs cp -r localdir dbfs:/Volumes/main/default/fs-cp-r-requests/dst
        -Copied 3 files.
         localdir/a.txt -> dbfs:/Volumes/main/default/fs-cp-r-requests/dst/a.txt
         localdir/b.txt -> dbfs:/Volumes/main/default/fs-cp-r-requests/dst/b.txt
         localdir/sub/c.txt -> dbfs:/Volumes/main/default/fs-cp-r-requests/dst/sub/c.txt
        @@ -8,6 +7,9 @@
         === Recursive copy: a directory PUT per directory, a file PUT per file, no directory HEAD per file
         
         >>> print_requests.py --sort //api/2.0/fs/
        +{"method":"HEAD","path":"/api/2.0/fs/directories/Volumes/main/default/fs-cp-r-requests/dst"}
        +{"method":"HEAD","path":"/api/2.0/fs/directories/Volumes/main/default/fs-cp-r-requests/dst"}
        +{"method":"HEAD","path":"/api/2.0/fs/directories/Volumes/main/default/fs-cp-r-requests/dst/sub"}
         {"method":"PUT","path":"/api/2.0/fs/directories/Volumes/main/default/fs-cp-r-requests/dst"}
         {"method":"PUT","path":"/api/2.0/fs/directories/Volumes/main/default/fs-cp-r-requests/dst/sub"}
         {"method":"PUT","path":"/api/2.0/fs/files/Volumes/main/default/fs-cp-r-requests/dst/a.txt"}

latest (v1.28.0): same output as main (f504773)

TestAccept/cmd/fs/cp/dir-to-dir: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:686
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] fs cp -r localdir dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir\nCopied 2 files.\nlocaldir/file1.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file1.txt\nlocaldir/file2.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file2.txt\n\n>>> [CLI] fs cat dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file1.txt\nfile1 content\n\n>>> [CLI] fs cat dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file2.txt\nfile2 content\n"
        	            	actual  : "\n>>> [CLI] fs cp -r localdir dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir\nlocaldir/file1.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file1.txt\nlocaldir/file2.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file2.txt\n\n>>> [CLI] fs cat dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file1.txt\nfile1 content\n\n>>> [CLI] fs cat dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file2.txt\nfile2 content\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,2 @@
        	            	 >>> [CLI] fs cp -r localdir dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir
        	            	-Copied 2 files.
        	            	 localdir/file1.txt -> dbfs:/Volumes/main/default/fs-cp-test-[UNIQUE_NAME]/uploaded-dir/file1.txt
        	Test:       	TestAccept/cmd/fs/cp/dir-to-dir
        	Messages:   	cmd/fs/cp/dir-to-dir/output.txt vs /tmp/TestAcceptcmdfscpdir-to-dir2585008403/002/output.txt

latest (v1.28.0): same output as main (f504773)

TestAccept/cmd/fs/cp/matrix/dir/DST=dbfs/SRC=dbfs: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=dbfsSRC=dbfs3341190631/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: A file or directory already exists at the input path /tmp/fs-cp-matrix-7excz5i2bzg5pjv25s5bqagftq/dst/my_target.
    acceptance_test.go:1180: 
        LOG.setup: src/query.sql -> dbfs:/tmp/fs-cp-matrix-7excz5i2bzg5pjv25s5bqagftq/src/query.sql
        LOG.setup: src/pyNb.py -> dbfs:/tmp/fs-cp-matrix-7excz5i2bzg5pjv25s5bqagftq/src/pyNb.py
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-7excz5i2bzg5pjv25s5bqagftq/src/a/b/c/hello.txt
        LOG.setup: target/my_target -> dbfs:/tmp/fs-cp-matrix-7excz5i2bzg5pjv25s5bqagftq/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-7excz5i2bzg5pjv25s5bqagftq/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-7excz5i2bzg5pjv25s5bqagftq/dst/skip/a/b/c/hello.txt

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=dbfsSRC=dbfs1500808202/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: A file or directory already exists at the input path /tmp/fs-cp-matrix-2ww7kddv65euhhqaj5xxn5seou/dst/my_target.
    acceptance_test.go:1180: 
        LOG.setup: src/pyNb.py -> dbfs:/tmp/fs-cp-matrix-2ww7kddv65euhhqaj5xxn5seou/src/pyNb.py
        LOG.setup: src/query.sql -> dbfs:/tmp/fs-cp-matrix-2ww7kddv65euhhqaj5xxn5seou/src/query.sql
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-2ww7kddv65euhhqaj5xxn5seou/src/a/b/c/hello.txt
        LOG.setup: target/my_target -> dbfs:/tmp/fs-cp-matrix-2ww7kddv65euhhqaj5xxn5seou/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-2ww7kddv65euhhqaj5xxn5seou/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-2ww7kddv65euhhqaj5xxn5seou/dst/skip/a/b/c/hello.txt
TestAccept/cmd/fs/cp/matrix/dir/DST=dbfs/SRC=local: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=dbfsSRC=local1269981939/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: A file or directory already exists at the input path /tmp/fs-cp-matrix-ll4ahsqrw5grfoiz4twrxyo5uq/dst/my_target.
    acceptance_test.go:1180: 
        LOG.setup: src/a/b/c/hello.txt -> local/src/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> local/src/pyNb.py
        LOG.setup: src/query.sql -> local/src/query.sql
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-ll4ahsqrw5grfoiz4twrxyo5uq/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/my_target -> dbfs:/tmp/fs-cp-matrix-ll4ahsqrw5grfoiz4twrxyo5uq/dst/my_target
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-ll4ahsqrw5grfoiz4twrxyo5uq/dst/skip/a/b/c/hello.txt

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=dbfsSRC=local3158338533/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: A file or directory already exists at the input path /tmp/fs-cp-matrix-zyejcbnkcrfdximsq5rczrvg5e/dst/my_target.
    acceptance_test.go:1180: 
        LOG.setup: src/a/b/c/hello.txt -> local/src/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> local/src/pyNb.py
        LOG.setup: src/query.sql -> local/src/query.sql
        LOG.setup: target/my_target -> dbfs:/tmp/fs-cp-matrix-zyejcbnkcrfdximsq5rczrvg5e/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-zyejcbnkcrfdximsq5rczrvg5e/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-zyejcbnkcrfdximsq5rczrvg5e/dst/skip/a/b/c/hello.txt
TestAccept/cmd/fs/cp/matrix/dir/DST=dbfs/SRC=volume: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=dbfsSRC=volume247280294/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: A file or directory already exists at the input path /tmp/fs-cp-matrix-mexlyzu5h5gx7l7zq2pbj2mnhm/dst/my_target.
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039847646,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-src-mexlyzu5h5gx7l7zq2pbj2mnhm",
        LOG.setup:   "name": "fs-cp-src-mexlyzu5h5gx7l7zq2pbj2mnhm",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa3-5522-5451-7a11-cfa35522554d",
        LOG.setup:   "updated_at": 1796039847646,
        LOG.setup:   "volume_id": "7a11cfa3-5522-5451-7a11-cfa35522554d",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/query.sql -> dbfs:/Volumes/main/default/fs-cp-src-mexlyzu5h5gx7l7zq2pbj2mnhm/query.sql
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-src-mexlyzu5h5gx7l7zq2pbj2mnhm/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> dbfs:/Volumes/main/default/fs-cp-src-mexlyzu5h5gx7l7zq2pbj2mnhm/pyNb.py
        LOG.setup: target/my_target -> dbfs:/tmp/fs-cp-matrix-mexlyzu5h5gx7l7zq2pbj2mnhm/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-mexlyzu5h5gx7l7zq2pbj2mnhm/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-mexlyzu5h5gx7l7zq2pbj2mnhm/dst/skip/a/b/c/hello.txt

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=dbfsSRC=volume1674796360/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: A file or directory already exists at the input path /tmp/fs-cp-matrix-7j3ukh2j3vf6hjlxqx44bip6fi/dst/my_target.
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039860259,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-src-7j3ukh2j3vf6hjlxqx44bip6fi",
        LOG.setup:   "name": "fs-cp-src-7j3ukh2j3vf6hjlxqx44bip6fi",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa6-44f4-59f0-7a11-cfa644f45b00",
        LOG.setup:   "updated_at": 1796039860259,
        LOG.setup:   "volume_id": "7a11cfa6-44f4-59f0-7a11-cfa644f45b00",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-src-7j3ukh2j3vf6hjlxqx44bip6fi/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> dbfs:/Volumes/main/default/fs-cp-src-7j3ukh2j3vf6hjlxqx44bip6fi/pyNb.py
        LOG.setup: src/query.sql -> dbfs:/Volumes/main/default/fs-cp-src-7j3ukh2j3vf6hjlxqx44bip6fi/query.sql
        LOG.setup: target/my_target -> dbfs:/tmp/fs-cp-matrix-7j3ukh2j3vf6hjlxqx44bip6fi/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-7j3ukh2j3vf6hjlxqx44bip6fi/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-7j3ukh2j3vf6hjlxqx44bip6fi/dst/skip/a/b/c/hello.txt
TestAccept/cmd/fs/cp/matrix/dir/DST=local/SRC=dbfs: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=localSRC=dbfs3720077785/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: mkdir local/dst/my_target: not a directory
    acceptance_test.go:1180: 
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-juyfnijomnbixp6czxlrygv4dm/src/a/b/c/hello.txt
        LOG.setup: src/query.sql -> dbfs:/tmp/fs-cp-matrix-juyfnijomnbixp6czxlrygv4dm/src/query.sql
        LOG.setup: src/pyNb.py -> dbfs:/tmp/fs-cp-matrix-juyfnijomnbixp6czxlrygv4dm/src/pyNb.py
        LOG.setup: target/skip/a/b/c/hello.txt -> local/dst/skip/a/b/c/hello.txt
        LOG.setup: target/my_target -> local/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> local/dst/overwrite/a/b/c/hello.txt
FAIL

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=localSRC=dbfs4238950041/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: mkdir local/dst/my_target: not a directory
    acceptance_test.go:1180: 
        LOG.setup: src/pyNb.py -> dbfs:/tmp/fs-cp-matrix-7yvunp7mrrbgllj4drvqo7oi6a/src/pyNb.py
        LOG.setup: src/query.sql -> dbfs:/tmp/fs-cp-matrix-7yvunp7mrrbgllj4drvqo7oi6a/src/query.sql
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-7yvunp7mrrbgllj4drvqo7oi6a/src/a/b/c/hello.txt
        LOG.setup: target/my_target -> local/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> local/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> local/dst/skip/a/b/c/hello.txt
FAIL
TestAccept/cmd/fs/cp/matrix/dir/DST=local/SRC=local: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=localSRC=local4239699617/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.my_target: Error: mkdir local/dst/my_target: not a directory
    acceptance_test.go:1180: 
        LOG.setup: src/query.sql -> local/src/query.sql
        LOG.setup: src/a/b/c/hello.txt -> local/src/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> local/src/pyNb.py
        LOG.setup: target/skip/a/b/c/hello.txt -> local/dst/skip/a/b/c/hello.txt
        LOG.setup: target/my_target -> local/dst/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> local/dst/overwrite/a/b/c/hello.txt

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=localSRC=local165196665/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.my_target: Error: mkdir local/dst/my_target: not a directory
    acceptance_test.go:1180: 
        LOG.setup: src/query.sql -> local/src/query.sql
        LOG.setup: src/a/b/c/hello.txt -> local/src/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> local/src/pyNb.py
        LOG.setup: target/overwrite/a/b/c/hello.txt -> local/dst/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> local/dst/skip/a/b/c/hello.txt
        LOG.setup: target/my_target -> local/dst/my_target
TestAccept/cmd/fs/cp/matrix/dir/DST=local/SRC=volume: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=localSRC=volume1043513226/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: mkdir local/dst/my_target: not a directory
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039850727,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-src-2brtgh3fa5ardmdp4xjekbt7uq",
        LOG.setup:   "name": "fs-cp-src-2brtgh3fa5ardmdp4xjekbt7uq",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa4-0ccc-0521-7a11-cfa40ccc0647",
        LOG.setup:   "updated_at": 1796039850727,
        LOG.setup:   "volume_id": "7a11cfa4-0ccc-0521-7a11-cfa40ccc0647",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/pyNb.py -> dbfs:/Volumes/main/default/fs-cp-src-2brtgh3fa5ardmdp4xjekbt7uq/pyNb.py
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-src-2brtgh3fa5ardmdp4xjekbt7uq/a/b/c/hello.txt
        LOG.setup: src/query.sql -> dbfs:/Volumes/main/default/fs-cp-src-2brtgh3fa5ardmdp4xjekbt7uq/query.sql
        LOG.setup: target/my_target -> local/dst/my_target
        LOG.setup: target/skip/a/b/c/hello.txt -> local/dst/skip/a/b/c/hello.txt
        LOG.setup: target/overwrite/a/b/c/hello.txt -> local/dst/overwrite/a/b/c/hello.txt

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=localSRC=volume2684596510/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: mkdir local/dst/my_target: not a directory
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039863063,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-src-sdxotyg7cve2tbzvsrcqgp6ehm",
        LOG.setup:   "name": "fs-cp-src-sdxotyg7cve2tbzvsrcqgp6ehm",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa6-ec10-9e10-7a11-cfa6ec109f3c",
        LOG.setup:   "updated_at": 1796039863063,
        LOG.setup:   "volume_id": "7a11cfa6-ec10-9e10-7a11-cfa6ec109f3c",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/query.sql -> dbfs:/Volumes/main/default/fs-cp-src-sdxotyg7cve2tbzvsrcqgp6ehm/query.sql
        LOG.setup: src/pyNb.py -> dbfs:/Volumes/main/default/fs-cp-src-sdxotyg7cve2tbzvsrcqgp6ehm/pyNb.py
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-src-sdxotyg7cve2tbzvsrcqgp6ehm/a/b/c/hello.txt
        LOG.setup: target/my_target -> local/dst/my_target
        LOG.setup: target/skip/a/b/c/hello.txt -> local/dst/skip/a/b/c/hello.txt
        LOG.setup: target/overwrite/a/b/c/hello.txt -> local/dst/overwrite/a/b/c/hello.txt
TestAccept/cmd/fs/cp/matrix/dir/DST=volume/SRC=dbfs: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=volumeSRC=dbfs2982654191/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: file already exists: /Volumes/main/default/fs-cp-dst-g73dhkn3a5ctffy3pctwbf3rgy/my_target
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039848662,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-dst-g73dhkn3a5ctffy3pctwbf3rgy",
        LOG.setup:   "name": "fs-cp-dst-g73dhkn3a5ctffy3pctwbf3rgy",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa3-91b1-16f3-7a11-cfa391b11878",
        LOG.setup:   "updated_at": 1796039848662,
        LOG.setup:   "volume_id": "7a11cfa3-91b1-16f3-7a11-cfa391b11878",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-g73dhkn3a5ctffy3pctwbf3rgy/src/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> dbfs:/tmp/fs-cp-matrix-g73dhkn3a5ctffy3pctwbf3rgy/src/pyNb.py
        LOG.setup: src/query.sql -> dbfs:/tmp/fs-cp-matrix-g73dhkn3a5ctffy3pctwbf3rgy/src/query.sql
        LOG.setup: target/my_target -> dbfs:/Volumes/main/default/fs-cp-dst-g73dhkn3a5ctffy3pctwbf3rgy/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-g73dhkn3a5ctffy3pctwbf3rgy/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-g73dhkn3a5ctffy3pctwbf3rgy/skip/a/b/c/hello.txt

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=volumeSRC=dbfs2091269359/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: file already exists: /Volumes/main/default/fs-cp-dst-oehkmn2hm5cqhdhpvocl5t4x74/my_target
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039861272,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-dst-oehkmn2hm5cqhdhpvocl5t4x74",
        LOG.setup:   "name": "fs-cp-dst-oehkmn2hm5cqhdhpvocl5t4x74",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa6-8150-54af-7a11-cfa681505601",
        LOG.setup:   "updated_at": 1796039861272,
        LOG.setup:   "volume_id": "7a11cfa6-8150-54af-7a11-cfa681505601",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/pyNb.py -> dbfs:/tmp/fs-cp-matrix-oehkmn2hm5cqhdhpvocl5t4x74/src/pyNb.py
        LOG.setup: src/query.sql -> dbfs:/tmp/fs-cp-matrix-oehkmn2hm5cqhdhpvocl5t4x74/src/query.sql
        LOG.setup: src/a/b/c/hello.txt -> dbfs:/tmp/fs-cp-matrix-oehkmn2hm5cqhdhpvocl5t4x74/src/a/b/c/hello.txt
        LOG.setup: target/my_target -> dbfs:/Volumes/main/default/fs-cp-dst-oehkmn2hm5cqhdhpvocl5t4x74/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-oehkmn2hm5cqhdhpvocl5t4x74/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-oehkmn2hm5cqhdhpvocl5t4x74/skip/a/b/c/hello.txt
TestAccept/cmd/fs/cp/matrix/dir/DST=volume/SRC=local: branch ✅ | main (f504773) ❌ | latest (v1.28.0) ❌

main (f504773):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=volumeSRC=local3489003901/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: file already exists: /Volumes/main/default/fs-cp-dst-umkp7mfh65hppdl5ex4xworrgm/my_target
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039849052,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-dst-umkp7mfh65hppdl5ex4xworrgm",
        LOG.setup:   "name": "fs-cp-dst-umkp7mfh65hppdl5ex4xworrgm",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa3-a8ee-4745-7a11-cfa3a8ee4891",
        LOG.setup:   "updated_at": 1796039849052,
        LOG.setup:   "volume_id": "7a11cfa3-a8ee-4745-7a11-cfa3a8ee4891",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/query.sql -> local/src/query.sql
        LOG.setup: src/pyNb.py -> local/src/pyNb.py
        LOG.setup: src/a/b/c/hello.txt -> local/src/a/b/c/hello.txt
        LOG.setup: target/my_target -> dbfs:/Volumes/main/default/fs-cp-dst-umkp7mfh65hppdl5ex4xworrgm/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-umkp7mfh65hppdl5ex4xworrgm/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-umkp7mfh65hppdl5ex4xworrgm/skip/a/b/c/hello.txt

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/fs/cp/matrix/dir/output.txt
        +++ /tmp/TestAcceptcmdfscpmatrixdirDST=volumeSRC=local3212274548/002/output.txt
        @@ -1,5 +1,3 @@
        -Copied 3 files.
        -Copied 3 files.
         
         === Copying a directory needs --recursive, even an empty one
         
        @@ -9,7 +7,6 @@
         === Copy a directory into an existing one
         
         >>> [CLI] fs cp -r [SRC] [DST]/copy
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/copy/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/copy/pyNb.py
         [SRC]/query.sql -> [DST]/copy/query.sql
        @@ -27,7 +24,6 @@
         === An existing file is skipped without --overwrite
         
         >>> [CLI] fs cp -r [SRC] [DST]/skip
        -Copied 2 files, skipped 1 that already existed.
         [SRC]/a/b/c/hello.txt -> [DST]/skip/a/b/c/hello.txt (skipped; already exists)
         [SRC]/pyNb.py -> [DST]/skip/pyNb.py
         [SRC]/query.sql -> [DST]/skip/query.sql
        @@ -45,7 +41,6 @@
         === --overwrite replaces an existing file
         
         >>> [CLI] fs cp --recursive --overwrite [SRC] [DST]/overwrite
        -Copied 3 files.
         [SRC]/a/b/c/hello.txt -> [DST]/overwrite/a/b/c/hello.txt
         [SRC]/pyNb.py -> [DST]/overwrite/pyNb.py
         [SRC]/query.sql -> [DST]/overwrite/query.sql
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: LOG.my_target: Error: file already exists: /Volumes/main/default/fs-cp-dst-e52enqc77bbgbmjwfzksuuxsem/my_target
    acceptance_test.go:1180: 
        LOG.setup: {
        LOG.setup:   "catalog_name": "main",
        LOG.setup:   "created_at": 1796039861811,
        LOG.setup:   "created_by": "tester@databricks.com",
        LOG.setup:   "full_name": "main.default.fs-cp-dst-e52enqc77bbgbmjwfzksuuxsem",
        LOG.setup:   "name": "fs-cp-dst-e52enqc77bbgbmjwfzksuuxsem",
        LOG.setup:   "owner": "tester@databricks.com",
        LOG.setup:   "schema_name": "default",
        LOG.setup:   "storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/120efa64-9b68-46ba-be38-f319458430d2/volumes/7a11cfa6-a16b-cbf5-7a11-cfa6a16bcd1c",
        LOG.setup:   "updated_at": 1796039861811,
        LOG.setup:   "volume_id": "7a11cfa6-a16b-cbf5-7a11-cfa6a16bcd1c",
        LOG.setup:   "volume_type": "MANAGED"
        LOG.setup: }
        LOG.setup: src/query.sql -> local/src/query.sql
        LOG.setup: src/a/b/c/hello.txt -> local/src/a/b/c/hello.txt
        LOG.setup: src/pyNb.py -> local/src/pyNb.py
        LOG.setup: target/my_target -> dbfs:/Volumes/main/default/fs-cp-dst-e52enqc77bbgbmjwfzksuuxsem/my_target
        LOG.setup: target/overwrite/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-e52enqc77bbgbmjwfzksuuxsem/overwrite/a/b/c/hello.txt
        LOG.setup: target/skip/a/b/c/hello.txt -> dbfs:/Volumes/main/default/fs-cp-dst-e52enqc77bbgbmjwfzksuuxsem/skip/a/b/c/hello.txt

11 more failure details omitted, see the full report in the run.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 6cdf97e

Run: 46412940198

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 193 16 3:35
💚​ aws-windows-latest-4core-16gb 1 193 16 6:21
💚​ azure linux-2core-8gb 1 192 16 3:44
💚​ azure-windows-latest-4core-16gb 1 192 16 6:00
💚​ gcp linux-2core-8gb 1 193 16 3:38
💚​ gcp-windows-latest-4core-16gb 1 193 16 5:38
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:22 aws-windows-latest-4core-16gb TestAccept
3:05 azure-windows-latest-4core-16gb TestAccept
2:47 gcp-windows-latest-4core-16gb TestAccept

@denik

denik commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Heads-up: #7975 removed the errcode acceptance helper, so the errcode calls this PR adds will fail with errcode: command not found once it's tested against current main.

To fix: use musterr CMD for a command that must fail, and run commands expected to succeed without a wrapper. When the exact exit code is what the test checks, print it after musterr with printf '\nExit code: %s\n' "$MUSTERR_EXIT_CODE". cmd || true is only for best-effort cleanup. Details are in .agents/rules/testing.md.

Keeping going during a burst of failures sends a failing request for
every file. After --concurrency consecutive retryable failures with no
success in between, a circuit breaker now opens: no new files start, and
one deferred file at a time is probed, waiting 2s, 4s, ... up to 30s
between probes. A Retry-After hint is honored, capped at 30s. The first
success closes the breaker. Opening and closing it is logged at info,
each probe at debug.

DATABRICKS_FS_CP_PROBE_BACKOFF_MAX_MS is an undocumented test-only
override of the 30s cap. Sleeping is injectable, and unit tests use a
fake clock.

The acceptance tests cover a 500 burst with Retry-After, and an outage
longer than the stall timeout, which needs the breaker's waits to reach
the timeout.

Co-authored-by: Isaac <no-reply@databricks.com>
@yuanjieding-db
yuanjieding-db force-pushed the yuanjieding-db/fs-cp-breaker branch from 54d8012 to 6cdf97e Compare November 30, 2026 11:48
@yuanjieding-db
yuanjieding-db force-pushed the yuanjieding-db/fs-cp-stall-timeout branch from 5dbeb76 to 275cebc Compare November 30, 2026 11:48

This branch has not been deployed

No deployments
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.

3 participants