Enable verbose logging when System.Debug is set in Azure Pipelines#4027
Enable verbose logging when System.Debug is set in Azure Pipelines#4027
Conversation
When System.Debug is true in Azure DevOps, set RUST_LOG=trace and Logging__LogLevel__Default=Debug to enable verbose logging from both the Rust test code and the ASP.NET Core test-proxy process. Also adds the "Dump Test Proxy Audit Logs" step from PR #4025. Fixes #4026 Co-authored-by: heaths <1532486+heaths@users.noreply.github.com> Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-rust/sessions/a6b116bf-9dde-4eeb-a0ae-b45a876adc6a
There was a problem hiding this comment.
Pull request overview
Updates the Rust CI/live-test Azure Pipelines job templates so that enabling System.Debug turns on more verbose diagnostics for both Rust tests and the test-proxy process, improving failure triage.
Changes:
- Add a conditional step (when
System.Debug == true) to setRUST_LOG=traceandLogging__LogLevel__Default=Debugso subsequent steps inherit verbose logging. - In CI test jobs, add a conditional step to dump test-proxy audit logs (
GET /Audit/Logs) whenSystem.Debug == true.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| eng/pipelines/templates/jobs/live.tests.yml | Adds conditional verbose logging variable setup for live test jobs. |
| eng/pipelines/templates/jobs/ci.tests.yml | Adds conditional verbose logging variable setup and a conditional step to dump test-proxy audit logs. |
@copilot also change variables/rust.yml so that we set "trace" instead of "debug" if System.Debug is true, and set the default level = currently just "" - to "info". Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Instead of duplicating RUST_LOG in each job template, update the shared variables template to use 'trace' when System.Debug is true and 'info' otherwise (previously 'debug' / empty string). Co-authored-by: heaths <1532486+heaths@users.noreply.github.com> Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-rust/sessions/48fbd5b7-0e05-4d88-af2c-410dade8cf74
Done in aa6e5b8. Updated |
|
@copilot summarize the pull request description. Why do you keep leaving your task list in there? It's useless! |
Updated the PR description with a proper summary. |
|
/check-enforcer evaluate |
When
System.Debugis enabled in Azure DevOps, enable verbose logging for both Rust tests and the test-proxy process to improve failure diagnostics.eng/pipelines/templates/variables/rust.yml: SetRUST_LOG=tracewhenSystem.Debugis true,RUST_LOG=infootherwise (single source of truth for Rust log level).eng/pipelines/templates/jobs/ci.tests.ymlandlive.tests.yml: Add a conditional step to setLogging__LogLevel__Default=Debug(ASP.NET Core log level for test-proxy) whenSystem.Debugis true.eng/pipelines/templates/jobs/ci.tests.yml: Add a conditional step to dump test-proxy audit logs viaInvoke-WebRequestwhenSystem.Debugis true, with error handling so failures don't mask test results.Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.