Repository navigation
Add Azure Pipelines warning and error annotations - #1037
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
Code coverage overviewLanguages: Python Python / code-coverage/pytest
View coverage of the 2 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Replace the github_actions/azure_pipelines flags with one ci: CIPlatform | None parameter, since only one platform is active at a time. A single stderr handler formats warnings and errors as annotations, removing the extra handlers, record flag and skip filter, and keeping stdout free for command results captured by pipelines. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Live Azure Pipelines validation is needed to confirm stderr annotations are recognized while captured stdout remains usable by PowerShell pipeline consumers.
No open issues 🎉
What changed in this PR
Adds Azure Pipelines warning and error annotations to the shared logging library while preserving GitHub Actions support and keeping stdout available for command results.
Changes:
- Uses a single stderr handler with platform-specific annotation formatters.
- Rejects simultaneous CI platform flags and preserves secret redaction and Azure Pipelines command neutralization.
- Updates tests and documentation for annotation formatting, stream routing, and configuration.
| File | Description |
|---|---|
packages/bcbench-core/tests/test_logs.py |
Tests annotation formatting, escaping, stderr routing, redaction, and mutually exclusive flags. |
packages/bcbench-core/src/bcbench_core/logs.py |
Adds platform-specific formatters and consolidates logging into one stderr handler. |
packages/bcbench-core/README.md |
Documents CI annotation flags and stderr output behavior. |
Review effort: Balanced
Sun Haoran (haoranpb)
enabled auto-merge (squash)
November 27, 2026 07:34
martinsrui-msft
approved these changes
Nov 27, 2026
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.
Emit warning and error logs as CI annotations on Azure Pipelines (
##vso[task.logissue]), in addition to GitHub Actions.setup_loggingkeeps itsgithub_actions/azure_pipelinesflags and raisesValueErrorif both are set.$versions = uv run bcbench bc-versions). Both the ADO agent and the GitHub runner process logging commands from stderr.Not yet exercised in a live ADO pipeline.