Skip to content

fix(advisor): use ConcurrentDictionary in ApprovalManager and serialize runtime tests - #23

Merged
mcocdaa merged 1 commit into
mainfrom
fix/approval-manager-concurrency
Nov 7, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
fix/approval-manager-concurrency

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fix(advisor): use ConcurrentDictionary in ApprovalManager and serialize runtime tests

…ze runtime tests

fix(advisor): use ConcurrentDictionary for pending approval requests

Replace the static Dictionary with ConcurrentDictionary and use
TryRemove to make pending request bookkeeping thread-safe, since
callbacks and cancellation paths may run on different threads.
Also tag ColonyMacroPerceiverTests with the "Advisor runtime"
collection to avoid parallel test interference.
@mcocdaa
mcocdaa merged commit b0a29cf into main Nov 7, 2026
1 check passed
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mcocdaa
mcocdaa deleted the fix/approval-manager-concurrency branch November 7, 2026 03:57
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