Skip to content

mitmproxy addon: change config atomically - #272

Merged
richvdh merged 2 commits into
mainfrom
rav/fix_mitm_addon_race
Aug 7, 2026
Merged

mitmproxy addon: change config atomically#272
richvdh merged 2 commits into
mainfrom
rav/fix_mitm_addon_race

Conversation

@richvdh

@richvdh richvdh commented Aug 6, 2026

Copy link
Copy Markdown
Member

Hopefully, this will fix #249

@richvdh
richvdh force-pushed the rav/fix_mitm_addon_race branch 3 times, most recently from b1b848e to 250b3e3 Compare August 6, 2026 15:52
@codecov-commenter

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

Use an `attrs` class to store the config, and change it atomically.
@richvdh
richvdh force-pushed the rav/fix_mitm_addon_race branch from 250b3e3 to 0b0b2c1 Compare August 6, 2026 16:37

@andybalaam andybalaam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a nice change, but it seems pretty remarkable if this race happens more often than 1 in a million runs?

@richvdh

richvdh commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

Yeah, though we don't have any better suggestions for what could be causing it :/

@richvdh
richvdh merged commit fc83b91 into main Aug 7, 2026
10 of 15 checks passed
@richvdh
richvdh deleted the rav/fix_mitm_addon_race branch August 7, 2026 10:42
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.

Flaky test: TestSpoofedEventSenderHandling/rust/SpoofedMXIDSenderGivesRedShield

3 participants