Repository navigation
acc: replace the errcode calls left in cmd/fs/basic cleanup - #8197
Merged
Merged
Conversation
#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
enabled auto-merge
November 30, 2026 11:48
There was a problem hiding this comment.
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.
andrewnester
approved these changes
Nov 30, 2026
Contributor
Regression test report ✅Commit: Selected 2 changed tests (limit=20, 0 not selected) 2 tests: regression=0 unreleased=0 coverage=2 failing=0
|
Collaborator
✅ Integration test reportCommit: 869178f
Top 3 slowest tests (at least 2 minutes):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Replace the two
errcodecalls in the cleanup traps ofcmd/fs/basic/dbfsandcmd/fs/basic/volumewith 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 lasterrcodecalls on main.Tests
go test ./acceptance -run '^TestAccept/cmd/fs/basic'passes.This pull request and its description were written by Isaac.