Skip to content

acc: replace the errcode calls left in cmd/fs/basic cleanup - #8197

Merged
denik merged 1 commit into
mainfrom
denik/fs-basic-errcode
Nov 30, 2026
Merged

denik merged 1 commit into
mainfrom
denik/fs-basic-errcode

Conversation

@denik

@denik denik commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Changes

Replace the two errcode calls in the cleanup traps of cmd/fs/basic/dbfs and cmd/fs/basic/volume with best-effort || true.

Why

#7975 removed errcode, and #8065 landed after it with these two calls. The traps only run when the script exits early, so local and merge-queue runs pass. On a failing cloud run, though, the delete wouldn't run and the test would report exit code 127 instead of the real failure. These are the last errcode calls on main.

Tests

go test ./acceptance -run '^TestAccept/cmd/fs/basic' passes.

This pull request and its description were written by Isaac.

#7975 removed errcode, and #8065 landed after it with errcode in the
cleanup traps of cmd/fs/basic/{dbfs,volume}. The traps only run when the
script exits early, so on a failing cloud run the delete would not run
and the test would report exit code 127. Use best-effort `|| true` like
the other cleanup functions.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik requested review from a team as code owners November 30, 2026 11:48
@denik
denik enabled auto-merge November 30, 2026 11:48
@github-actions github-actions Bot added the test-only-fix PRs that update failing of flaky tests without changing CLI code. label Nov 30, 2026

@review-oss-bot review-oss-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review at 869178f. Each finding was verified against the code.

No blocking issues found.

This PR replaces the two leftover errcode calls in the EXIT-trap cleanup of cmd/fs/basic/dbfs and cmd/fs/basic/volume with best-effort || true. errcode no longer exists, so on an early exit those traps failed with "command not found" and skipped the delete. With || true the delete still runs and the script keeps its real exit status. The change looks correct and I have no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: 869178fbe | Workflow run

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

2 tests: regression=0 unreleased=0 coverage=2 failing=0
test branch main (a6c8694) latest (v1.28.0)
TestAccept/cmd/fs/basic/dbfs ✅ ✅ ✅
TestAccept/cmd/fs/basic/volume ✅ ✅ ✅

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 869178f

Run: 46412966911

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 92 6 2:07
💚​ aws-windows-latest-4core-16gb 1 92 6 4:21
💚​ azure linux-2core-8gb 1 92 6 2:25
💚​ azure-windows-latest-4core-16gb 1 92 6 4:16
💚​ gcp linux-2core-8gb 1 92 6 2:06
💚​ gcp-windows-latest-4core-16gb 1 92 6 4:08
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:29 aws-windows-latest-4core-16gb TestAccept
3:24 azure-windows-latest-4core-16gb TestAccept
3:20 gcp-windows-latest-4core-16gb TestAccept

@denik
denik added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 006a335 Nov 30, 2026
30 checks passed
@denik
denik deleted the denik/fs-basic-errcode branch November 30, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-only-fix PRs that update failing of flaky tests without changing CLI code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants