Skip to content

fix(resource-usage): forward pre/post_run_triggers via super() for correct MRO chaining#113

Merged
alubbock merged 1 commit into
mainfrom
fix/run-trigger-super-chain
Apr 26, 2026
Merged

fix(resource-usage): forward pre/post_run_triggers via super() for correct MRO chaining#113
alubbock merged 1 commit into
mainfrom
fix/run-trigger-super-chain

Conversation

@alubbock
Copy link
Copy Markdown
Owner

Summary

  • MBResourceUsage.pre_run_triggers and post_run_triggers now call super() cooperatively, so composing MBResourceUsage with another mixin that also implements these hooks no longer silently drops the second mixin's callbacks.
  • Adds a regression test: composes MBResourceUsage with a second hook-bearing mixin and asserts both fire and that resource_usage is still populated correctly.
  • CHANGELOG entry added under Bug fixes.

@alubbock alubbock merged commit 6c0e189 into main Apr 26, 2026
20 checks passed
@alubbock alubbock deleted the fix/run-trigger-super-chain branch April 26, 2026 12:21
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.

1 participant