Repository navigation
Conversation
gcp: TestAccept/bundle/resources/secrets/parent_rename Co-authored-by: Isaac <no-reply@databricks.com>
gcp: TestAccept/bundle/resources/secrets/parent_rename Co-authored-by: Isaac <no-reply@databricks.com>
gcp: TestAccept/bundle/resources/secrets/parent_rename Co-authored-by: Isaac <no-reply@databricks.com>
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 6 tests: regression=2 unreleased=4 coverage=0 failing=0
TestAccept/bundle/resources/secrets/delete_transient_500/DMS=: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/bundle/resources/secrets/delete_transient_500/DMS=true: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/bundle/resources/secrets/parent_rename/DMS=/READPLAN=: branch ✅ | main (5b9a0b6) ✅ | latest (v1.28.0) ❌latest (v1.28.0): TestAccept/bundle/resources/secrets/parent_rename/DMS=/READPLAN=1: branch ✅ | main (5b9a0b6) ✅ | latest (v1.28.0) ❌latest (v1.28.0): TestAccept/bundle/resources/secrets/parent_rename/DMS=true/READPLAN=: branch ✅ | main (5b9a0b6) ✅ | latest (v1.28.0) ❌latest (v1.28.0): TestAccept/bundle/resources/secrets/parent_rename/DMS=true/READPLAN=1: branch ✅ | main (5b9a0b6) ✅ | latest (v1.28.0) ❌latest (v1.28.0): |
…ments gcp: TestAccept/bundle/resources/secrets/parent_rename Co-authored-by: Isaac <no-reply@databricks.com>
The SDK retries 503 and some 504s inside one DoDelete call, so counting our own attempts missed the same case. The user can't act on a resource that is already gone, so the message is a debug one in every case. gcp: TestAccept/bundle/resources/secrets/parent_rename Co-authored-by: Isaac <no-reply@databricks.com>
✅ Integration test reportCommit: 32db942
Top 3 slowest tests (at least 2 minutes):
|
There was a problem hiding this comment.
Automated review at f09845e. Each finding was verified against the code.
No blocking issues found. 2 non-blocking comment(s) below.
This PR moves the "Treating ... as already deleted despite delete error" message in the direct engine's Delete and Recreate from warn to debug level, and adds an acceptance test and unit tests for it. The change itself is small and does what the description says. Two follow-ups: the new doc comment and changelog say a read confirmed the resource is gone, which isn't true for the IsGone path, and two of the three new unit test cases repeat what the new acceptance test already covers.
Sankalp-Mittal
left a comment
There was a problem hiding this comment.
[AI Generated] Review by review-factory (Claude Opus 5.5 + Claude Opus 5.5 + Claude Sonnet 5.5, cross-verified). Only points the reviewers agreed on are posted.
No issues found.
… the acceptance test covers gcp: TestAccept/bundle/resources/secrets/parent_rename Co-authored-by: Isaac <no-reply@databricks.com>
Sankalp-Mittal
left a comment
There was a problem hiding this comment.
[AI Generated] Follow-up review by review-factory (Claude Opus 5.5 + Claude Opus 5.5 + Claude Sonnet 5.5, cross-verified). Only points the reviewers agreed on are posted.
No new issues found.
Changes
Since #7708, the direct engine retries a delete on transient errors. The SDK also retries 503 and some 504s on its own. When the first attempt is applied but its response is lost, the retry fails on the missing resource. A NotFound already counts as success. UC secrets sometimes answer with a different error, though, and
Delete/Recreatethen fall back to reading the resource (added in #6061). The read confirmed the secret was gone, but the engine still printed a warning:This message is now logged at debug level. The resource is gone, so there is nothing for the user to act on (.agents/rules/style-guide-go.md: "diagnostics a user can't act on go to debug"). The same reasoning as #7926 for Files API deletes applies here.
Judgment calls:
DoDeletecall, so the engine can't tell it apart from a single attempt. A version that counted onlylibs/retryattempts still warned on an applied 503.Why
An output mismatch on a transient backend 500:
bundle destroyprinted a warning for a delete that succeeded.Dashboard:
Treating resources.secrets.secret1 id=... as already deleted despite delete error: Path resolution failed for the following paths:on GCP, 2026-11-26, afterretrying after 500 Internal Server Error from DELETE /api/2.1/unity-catalog/secrets/...Tests
New acceptance test
bundle/resources/secrets/delete_transient_500, with two phases:In each phase the first DELETE is applied and all three attempts answer 500. Both commands succeed without the warning. The recorded requests show the GET that confirms the secret is gone after the last DELETE. Without the fix, both phases print the warning.
Unit tests in
bundle/direct/apply_test.gouse a fake resource whose delete returns 500 and then 400, or a single 400, and whose read returns 404. They coverDeleteandRecreate. Without the fix, all three cases fail.Local acceptance tests for secrets, apps and postgres_projects pass. No golden contains the warning.
secrets/parent_renameandsecrets/basicpass on AWS.AI agent (opus5.5, isaac_claude)
This pull request and its description were written by Isaac.