Skip to content

Improve dashboard failure diagnostics#60

Merged
trask merged 3 commits into
open-telemetry:mainfrom
trask:dashboard-failure-diagnostics
Jul 9, 2026
Merged

Improve dashboard failure diagnostics#60
trask merged 3 commits into
open-telemetry:mainfrom
trask:dashboard-failure-diagnostics

Conversation

@trask

@trask trask commented Jul 9, 2026

Copy link
Copy Markdown
Member

Can't tell why this one failed: https://github.com/open-telemetry/shared-workflows/actions/runs/28982655040

Capture Copilot classification failure details and print structured dashboard failure diagnostics before refusing to publish failed state.

The Actions log now names the failed PR/thread, includes the classification error reason, preserves failed CLI stdout/stderr, and prints raw output in prefixed blocks so workflow-command-looking lines stay inert.

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.

Pull request overview

This PR improves failure diagnostics for the pull-request dashboard refresh script. When a dashboard refresh hits PR-level failures (and refuses to publish a failed state), it now emits structured, human-readable diagnostics to stderr that identify the failed PR/thread, the classification error reason, and the preserved CLI stdout/stderr. This helps operators debug otherwise opaque workflow failures like the linked Actions run.

Changes:

  • Added structured diagnostic logging helpers in dashboard.py (log_line_value, log_multiline_value, log_failed_classification_diagnostics, log_failed_result_diagnostics) that print raw CLI output in prefixed blocks so workflow-command-looking lines stay inert.
  • Captured richer failure context in classification.py by recording an error reason plus response_text/stderr when a Copilot CLI classification fails, times out, or throws.
  • Excluded the new stderr field from cached classification records for consistency.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/scripts/pull-request-dashboard/dashboard.py Adds diagnostic helper functions and invokes them before refusing to publish a failed dashboard state.
.github/scripts/pull-request-dashboard/classification.py Records error reason, response text, and stderr on classification failures/timeouts/exceptions, and excludes stderr from cached records.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@trask trask marked this pull request as ready for review July 9, 2026 00:29
@trask trask requested a review from a team as a code owner July 9, 2026 00:29
…iagnostics

# Conflicts:
#	.github/scripts/pull-request-dashboard/dashboard.py

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/scripts/pull-request-dashboard/classification.py

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@trask trask merged commit abc171d into open-telemetry:main Jul 9, 2026
5 checks passed
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.

4 participants