Skip to content

volumes/uppercase-name: add bundle destroy to prevent resource leak - #5544

Merged
denik merged 3 commits into
mainfrom
denik/fix-volumes-test
Jun 11, 2026
Merged

volumes/uppercase-name: add bundle destroy to prevent resource leak#5544
denik merged 3 commits into
mainfrom
denik/fix-volumes-test

Conversation

@denik

Copy link
Copy Markdown
Contributor

Test added in #5531 never cleaned up MySCHEMA/MyVOLUME, so the first run leaked them into the shared main catalog. Every subsequent run found them pre-existing, skipped the POST calls, and failed the golden diff in all 4 ucws workspaces.

Fix: add a cleanup() trap that destroys the bundle on exit and removes out.requests.txt so the destroy requests don't show up as unexpected output.

Test added in #5531 never cleaned up MySCHEMA/MyVOLUME, causing every
subsequent run to find them pre-existing and skip the POST calls,
breaking the golden diff.
Co-authored-by: Denis Bilenko <denis.bilenko@databricks.com>
@denik
deniktemporarily deployed to test-trigger-is June 11, 2026 07:45 — with GitHub Actions Inactive
@denik
deniktemporarily deployed to test-trigger-is June 11, 2026 07:45 — with GitHub Actions Inactive
Replace hardcoded MySCHEMA/MyVOLUME with MySCHEMA_$UNIQUE_NAME via
envsubst so parallel runs on the same workspace don't step on each other.
Co-authored-by: Denis Bilenko <denis.bilenko@databricks.com>
@denik
deniktemporarily deployed to test-trigger-is June 11, 2026 07:48 — with GitHub Actions Inactive
@denik
deniktemporarily deployed to test-trigger-is June 11, 2026 07:48 — with GitHub Actions Inactive
@denik
denik enabled auto-merge June 11, 2026 07:50
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Commit: 67f9695

Run: 27335699686

Env🔄​flaky💚​RECOVERED🙈​SKIP✅​pass🙈​skipTime
🔄​aws linux431526196911:27
💚​aws windows71526396711:53
💚​aws-ucws linux7153578837:20
💚​aws-ucws windows71535988112:03
💚​azure linux1172649676:46
💚​azure windows1172669659:20
💚​azure-ucws linux1173628797:47
💚​azure-ucws windows11736487712:00
💚​gcp linux1172609707:51
💚​gcp windows11726296812:18
22 interesting tests: 15 SKIP, 4 flaky, 3 RECOVERED
Test Nameaws linuxaws windowsaws-ucws linuxaws-ucws windowsazure linuxazure windowsazure-ucws linuxazure-ucws windowsgcp linuxgcp windows
💚​TestAccept💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R
🙈​TestAccept/bundle/invariant/no_drift🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/permissions🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
💚​TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions💚​R💚​R💚​R💚​R🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🔄​TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct🔄​f💚​R💚​R💚​R
🔄​TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform🔄​f💚​R💚​R💚​R
💚​TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions💚​R💚​R💚​R💚​R🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🔄​TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct🔄​f💚​R💚​R💚​R
🔄​TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform🔄​f💚​R💚​R💚​R
🙈​TestAccept/bundle/resources/postgres_branches/basic🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/postgres_branches/recreate🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/postgres_branches/replace_existing🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/postgres_branches/update_protected🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/postgres_branches/without_branch_id🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/postgres_endpoints/basic🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/postgres_endpoints/recreate🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/postgres_projects/update_display_name🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/synced_database_tables/basic🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/vector_search_indexes/basic🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/vector_search_indexes/grants/select🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/ssh/connection🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
Top 30 slowest tests (at least 2 minutes):
durationenvtestname
6:22aws linuxTestSecretsPutSecretStringValue
6:05aws-ucws windowsTestAccept
6:04gcp windowsTestAccept
6:02aws windowsTestAccept
6:00azure-ucws windowsTestAccept
4:57azure windowsTestAccept
4:39gcp linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
4:28gcp windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
4:05gcp windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:58gcp linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:50aws windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:39aws-ucws windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:39aws windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:38azure-ucws linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:34azure-ucws windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:14aws-ucws windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:12aws-ucws linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:05azure-ucws windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:02aws linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:02aws linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:57aws-ucws linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:57gcp linuxTestAccept
2:57azure linuxTestAccept
2:54azure linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:51azure-ucws linuxTestAccept
2:48aws-ucws linuxTestAccept
2:42azure windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:41azure linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:30azure-ucws linuxTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:26azure windowsTestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct

@denik
deniktemporarily deployed to test-trigger-is June 11, 2026 08:57 — with GitHub Actions Inactive
@denik
deniktemporarily deployed to test-trigger-is June 11, 2026 08:57 — with GitHub Actions Inactive
@denik
denik added this pull request to the merge queueJun 11, 2026
Merged via the queue into main with commit 7e5bf16Jun 11, 2026
24 checks passed
@denik
denik deleted the denik/fix-volumes-test branch June 11, 2026 09:54
Sign up for freeto 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

@denik@eng-dev-ecosystem-bot@pietern