investigate_ci: show build errors for all failed jobs#3014
Merged
jstarks merged 1 commit intomicrosoft:mainfrom Mar 16, 2026
Merged
investigate_ci: show build errors for all failed jobs#3014jstarks merged 1 commit intomicrosoft:mainfrom
jstarks merged 1 commit intomicrosoft:mainfrom
Conversation
Member
jstarks
commented
Mar 16, 2026
- Show build/job failure logs for all failed jobs, not just the first
- Always show build failures regardless of whether test artifacts exist
- Extract error-pattern lines (rustc, linker, etc.) from logs instead of dumping the raw tail
- Fall back to check-run annotations API when logs aren't available (e.g., run still in progress), so failures are visible immediately
- Show build/job failure logs for all failed jobs, not just the first - Always show build failures regardless of whether test artifacts exist - Extract error-pattern lines (rustc, linker, etc.) from logs instead of dumping the raw tail - Fall back to check-run annotations API when logs aren't available (e.g., run still in progress), so failures are visible immediately
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the CI failure investigation script to show build/job failure logs for all failed jobs instead of just the first one, and adds smarter error extraction from logs.
Changes:
- Iterate over all failed jobs (not just the first) and always show build failure logs regardless of test artifact availability
- Extract error-pattern lines (rustc, linker, etc.) from logs instead of dumping raw tail, with fallback to check-run annotations API
- Fix
gh()helper to return empty string on failure whencheck=False(previously fell through to return stdout), and addquietparameter
You can also share your feedback on Copilot code review. Take the survey.
chris-oo
approved these changes
Mar 16, 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.