Skip to content

Reuse base request execution in hot reload - #11646

Merged
Amaury Levé (Evangelink) merged 2 commits into
mainfrom
copilot/duplicate-code-cleanup
Sep 30, 2026
Merged

Amaury Levé (Evangelink) merged 2 commits into
mainfrom
copilot/duplicate-code-cleanup

Conversation

Copilot AI commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

The hot-reload invoker duplicated the base invoker’s telemetry broker, request-completion, and cleanup logic. Its semaphore also started signaled, allowing a cycle to end before the framework reported completion.

  • Execution: Delegate each hot-reload iteration to base.ExecuteRequestAsync(...), keeping one implementation of the request lifecycle.
  • Regression coverage: Add a test that checks the cycle remains active until the framework signals request completion.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 05:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 06:05
Copilot AI changed the title [WIP] Refactor ExecuteRequestAsync logic to eliminate duplication Reuse base request execution in hot reload Sep 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused refactor removes duplication and includes deterministic regression coverage.

Review effort: Balanced
Findings: None

@Evangelink
Amaury Levé (Evangelink) marked this pull request as ready for review September 30, 2026 08:16
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Sep 30, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Sep 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. labels Sep 30, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit ea32180 into main Sep 30, 2026
39 of 42 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the copilot/duplicate-code-cleanup branch September 30, 2026 09:35
@microsoft-github-policy-service microsoft-github-policy-service Bot removed the state/approved Proposal approved; ready for implementation. label Sep 30, 2026
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.

[duplicate-code] Duplicated ExecuteRequestAsync telemetry-broker/cleanup logic between TestHostTestFrameworkInvoker and HotReloadTestHostTestFram

4 participants