Skip to content

Fix refreshing service bus resources after deleting their namespace#4539

Merged
Zaid-Ajaj merged 1 commit into
masterfrom
zaid/fix-refresh-after-deleting-service-bus
Feb 25, 2026
Merged

Fix refreshing service bus resources after deleting their namespace#4539
Zaid-Ajaj merged 1 commit into
masterfrom
zaid/fix-refresh-after-deleting-service-bus

Conversation

@Zaid-Ajaj

Copy link
Copy Markdown
Contributor

When creating this resource hierarchy

ServiceBus_Namespace
 | -- ServiceBus_Topic
 | -- ServiceBus_Queue

And deleting the ServiceBus_Namespace, performing pulumi refresh fails to detect that the sub resources have been deleted. Instead fails with "ParentResourceNotFound" . This is similar to the problem mentioned in #4528 as noted by @tsbala in their comment

This PR fixes that problem by recognizing ParentResourceNotFound as proper not found errors and tests the exact scenario via a YAML integration test.

@Zaid-Ajaj Zaid-Ajaj requested a review from a team February 25, 2026 15:37
@github-actions

Copy link
Copy Markdown
Contributor

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@codecov

codecov Bot commented Feb 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.53%. Comparing base (e874224) to head (c2d231a).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4539      +/-   ##
==========================================
+ Coverage   62.51%   62.53%   +0.01%     
==========================================
  Files          90       90              
  Lines       10795    10797       +2     
==========================================
+ Hits         6749     6752       +3     
+ Misses       3404     3403       -1     
  Partials      642      642              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Zaid-Ajaj Zaid-Ajaj merged commit 5d9a65b into master Feb 25, 2026
24 checks passed
@Zaid-Ajaj Zaid-Ajaj deleted the zaid/fix-refresh-after-deleting-service-bus branch February 25, 2026 16:54
@pulumi-bot

Copy link
Copy Markdown
Contributor

This PR has been shipped in release v3.14.0.

Sign up for free to 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