Skip to content

fix: Do not emit :registryUpdated on failure#3949

Merged
FrederikBolding merged 1 commit intomainfrom
fb/dont-emit-on-failure
Apr 10, 2026
Merged

fix: Do not emit :registryUpdated on failure#3949
FrederikBolding merged 1 commit intomainfrom
fb/dont-emit-on-failure

Conversation

@FrederikBolding
Copy link
Copy Markdown
Member

@FrederikBolding FrederikBolding commented Apr 9, 2026

BugBot indicated that my previous PR had a infinite loop in case of the registry failure state: #3948 (comment)

We do not need to emit :registryUpdated on failure, which should fix this problem.


Note

Low Risk
Low risk: a small behavioral change to event emission that only affects failure paths, reducing the chance of update-trigger loops when the registry is unavailable.

Overview
Prevents SnapRegistryController from publishing the SnapRegistryController:registryUpdated event when #update() fails (e.g., fetch/verify errors), while still marking databaseUnavailable in state.

Successful updates and no-op updates (recent fetch or unchanged signature) continue to emit :registryUpdated as before.

Reviewed by Cursor Bugbot for commit 8af7c86. Bugbot is set up for automated code reviews on this repo. Configure here.

@FrederikBolding FrederikBolding requested a review from a team as a code owner April 9, 2026 17:37
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.56%. Comparing base (d952951) to head (8af7c86).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3949      +/-   ##
==========================================
- Coverage   98.56%   98.56%   -0.01%     
==========================================
  Files         427      427              
  Lines       12345    12344       -1     
  Branches     1939     1939              
==========================================
- Hits        12168    12167       -1     
  Misses        177      177              

☔ 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.

@FrederikBolding FrederikBolding added this pull request to the merge queue Apr 10, 2026
Merged via the queue into main with commit dcb35ff Apr 10, 2026
130 checks passed
@FrederikBolding FrederikBolding deleted the fb/dont-emit-on-failure branch April 10, 2026 09:02
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.

2 participants