Repository navigation
acc: correct Badness for {bundle/deploy/lock,cmd/api/{json,methods,response-text}} - #8196
Merged
Merged
Conversation
Contributor
Regression test report ✅Commit: Selected 4 changed tests (limit=20, 0 not selected) 5 tests: regression=0 unreleased=0 coverage=5 failing=0
|
Collaborator
✅ Integration test reportCommit: dbf24b2
Top 3 slowest tests (at least 2 minutes):
|
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
denik
force-pushed
the
badness-2026-11-30
branch
from
November 30, 2026 12:39
384dc59 to
4ae7849
Compare
denik
marked this pull request as ready for review
November 30, 2026 17:48
There was a problem hiding this comment.
Automated review at 4ae7849. Each finding was verified against the code.
No blocking issues found. 2 non-blocking comment(s) below.
This PR adds Badness notes to four acceptance tests: bundle/deploy/lock and cmd/api/{json,methods,response-text}. It changes no recorded output. I checked each note against its script and output.txt, and they match what the tests record. I have two wording fixes: the lock note leaves out what happens to the remote lock afterwards, and the json note puts the @- case under "On a GET" even though it happens on any method.
andrewnester
approved these changes
Nov 30, 2026
Co-authored-by: Isaac <no-reply@databricks.com>
andrewnester
approved these changes
Nov 30, 2026
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
Adds missing Badness notes to four acceptance tests (test.toml only; no output changes).
bundle/deploy/lock: deploy syncs over or deletes its own lock
Added in 4404b7f63 (#8059). The test puts
state_pathinsidefile_path, and its output records that deploy then uploads a localstate/deploy.lockover the lock it holds, or deletes the lock when that file is removed locally, and the release fails:The PR that added the test says the output "does not claim that this behavior is desirable". The note says what is wrong and what would be right: sync should not upload or delete the deploy lock, or validate should reject a
state_pathinsidefile_path.cmd/api/{json,methods,response-text}: behaviors #8192 records before changing them
Added in 3d6d09a97 (#8192), whose description lists these as current behaviors "that later PRs will change on purpose". None of the new tests had a note.
cmd/api/json: nested--jsonvalues on a GET use Go's%v, a path with a query string gets?inside a value, and@-is not stdin:cmd/api/methods: all 12 recorded requests sendContent-Type: application/json, including the 8 without a body (for exampleget without --json).cmd/api/response-text: a valid non-JSON body is reported as an SDK bug:Why
Badness marks expected output that records behavior which should change, so readers and fix work can find it.
Tests
go test ./acceptance -run 'TestAccept/<test>$'passes locally for each of the four tests (testserver; both DMS variants for bundle/deploy/lock). Badness does not affect how the test runs.Gaps and risks
@-part of the cmd/api/json note is my addition: acceptance: capture more behavior ofdatabricks apibefore changing it #8192 records it but does not list it among the behaviors to change.cmd/api/flags"An unknown method prints the help and succeeds" (databricks api optionsexits 0). It looks like general command-group behavior rather than something specific toapi.🤖 AI agent (opus5.5, isaac_claude)
This pull request and its description were written by Isaac.