Skip to content

Improve PR failure annotations - #5239

Draft
Ashley Stanton-Nurse (analogrelay) wants to merge 4 commits into
Azure:mainfrom
analogrelay:ashleyst/pr-annotations
Draft

Ashley Stanton-Nurse (analogrelay) wants to merge 4 commits into
Azure:mainfrom
analogrelay:ashleyst/pr-annotations

Conversation

@analogrelay

@analogrelay Ashley Stanton-Nurse (analogrelay) commented Sep 3, 2026

Copy link
Copy Markdown
Member

Parse Cargo JSON diagnostics into location-aware Azure DevOps issues so compiler and Clippy failures can flow into GitHub Check annotations with Rust’s full rendered error message.

Add structured annotations for failed tests and spelling errors, retain JUnit test publication, cap noisy commands at 50 annotations, and validate the repository-local parsers in the analysis job. No changes are made under eng/common/.

The compiler, spelling, and test annotation paths were verified with temporary failures that have now been removed.

Parse Cargo JSON diagnostics into location-aware Azure DevOps issues while retaining full Rust output in task logs.

Add structured annotations for failed tests and spelling errors, preserve JUnit publication, and validate the repository-local parsers in the analysis job.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 83c61f96-2dd3-4eb8-a4f2-ec7c35d1acbd
Introduce a deliberate type mismatch in azure_core so the draft PR pipeline can verify that Rust compiler diagnostics appear as GitHub annotations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 83c61f96-2dd3-4eb8-a4f2-ec7c35d1acbd
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
3 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions github-actions Bot added the Azure.Core The azure_core crate label Sep 3, 2026
Replace the intentional compiler failure with a misspelled comment and a failing azure_core unit test so the draft PR can validate both annotation paths.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 83c61f96-2dd3-4eb8-a4f2-ec7c35d1acbd

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a temporary test measure just to prove it's possible before I port the changes over to eng/common via the central tools repo. I'll revert this before merging and we'll get it if/when it lands there.

Remove the temporary spelling and unit-test failures now that both PR annotation paths have been verified.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 83c61f96-2dd3-4eb8-a4f2-ec7c35d1acbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Azure.Core The azure_core crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant