Revert _evaluate.py changes from #46436 on mohessie/standardize_output_schema#46835
Merged
m7md7sien merged 2 commits intoMay 11, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-python/sessions/8462065c-c6cf-473a-9421-84eaf0a44b5b Co-authored-by: m7md7sien <16615690+m7md7sien@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Revert changes to _evaluate.py from PR #46436
Revert May 11, 2026
_evaluate.py changes from #46436 on mohessie/standardize_output_schema
m7md7sien
approved these changes
May 11, 2026
36e0cbb
into
mohessie/standardize_output_schema
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes only the
_evaluate.pyportion of #46436 frommohessie/standardize_output_schemaso those edits can be handled in a separate PR. The target file is restored to exactly matchmain.Scope
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.pyWhat was reverted (inverse of Standardize Output Schema for Evalautors #46436 in this file)
EVALUATION_PASS_FAIL_MAPPINGimport.*_passedcolumns to*_resultcolumns.value_counts.get(EVALUATION_PASS_FAIL_MAPPING[True], 0)_aggregate_metricsexclusion logic from*_passedback to*_result."pass"vspassed) to matchmain.Result
_evaluate.pynow aligns byte-for-byte withmain, while keeping PR scope limited to the requested split.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
centralus-2.in.applicationinsights.azure.com/home/REDACTED/bin/azsdk /home/REDACTED/bin/azsdk ingest-telemetry --client-type copilot-cli --event-type skill_invocation --session-id 8462065c-c6cf-473a-9421-84eaf0a44b5b --skill-name find-package-skill(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This PR reverts the changes made to
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.pyin PR #46436 (#46436), so that those changes can be split into a separate PR. When this PR is merged into themohessie/standardize_output_schemabranch, the_evaluate.pyportion of PR #46436 will be undone.Goal
On a new branch created off
mohessie/standardize_output_schema, restoresdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.pyto exactly match its content on themainbranch (i.e., revert the_evaluate.pyedits introduced by PR #46436), then open a PR targetingmohessie/standardize_output_schema.Do not modify any other file in the repository. Do not run formatters, linters, or any tooling that may alter other lines. Do not touch the changelog, version files, or any other file changed in PR #46436.
Exact diff to apply
Apply this unified diff verbatim to
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.pyon themohessie/standardize_output_schemabranch. This is the inverse of the diff applied in PR #46436:Authoritative reference (simplest approach)
The fastest and safest way to do this is to copy the file from
mainand overwrite the file on the new branch. The content after revert must be byte-for-byte equal to the version of the file onmain:sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.pyAfter the commit,
git diff origin/main -- sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.pymust produce no output (the file matches main exactly).Branch and PR requirements
mohessie/standardize_output_schema(suggested name:m7md7sien/revert-evaluate-py-in-46436).mohessie/standardize_output_schemabranch (NOTmain). This is critical — the goal is to remove the_evaluate.pychanges from PR Standardize Output Schema for Evalautors #46436, so the PR base must be that PR's head branch.This pull request was created from Copilot chat.