Skip to content

Conversation

@scbedd
Copy link
Member

@scbedd scbedd commented Aug 4, 2025

As soon as I saw the error I thought I had missed something.

…wait on the EntryLock for the session so that when tests actually start they're seeing the same value for the matcher
@scbedd scbedd self-assigned this Aug 4, 2025
Copilot AI review requested due to automatic review settings August 4, 2025 23:00
@scbedd scbedd requested review from benbp and mikeharder as code owners August 4, 2025 23:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds thread-safe access to setting a matcher for recording sessions by introducing an entry lock around the matcher assignment operation.

  • Converts SetMatcherForRecording from synchronous to asynchronous to support async lock operations
  • Adds proper lock acquisition and release around the critical section where the custom matcher is set
Comments suppressed due to low confidence (1)

tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs:1107

  • Missing opening brace after the finally statement. The code should be finally { to properly open the finally block.
            finally

@scbedd scbedd moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys ❄️🎄🎁🎅✨ Aug 4, 2025
@scbedd scbedd merged commit 1f807aa into Azure:main Aug 4, 2025
11 checks passed
@weshaggard weshaggard moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys ❄️🎄🎁🎅✨ Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants