Skip to content

Conversation

shenxianpeng
Copy link
Member

@shenxianpeng shenxianpeng commented Aug 12, 2025

closes #21

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@shenxianpeng
Copy link
Member Author

Add job name to sidebar

image

Add job name to console output

image image

Check the return code

image

@shenxianpeng shenxianpeng added the enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Aug 12, 2025
@shenxianpeng shenxianpeng requested a review from Copilot August 12, 2025 00:21
Copilot

This comment was marked as outdated.

@shenxianpeng shenxianpeng requested a review from Copilot August 12, 2025 00:41
Copy link
Contributor

@Copilot Copilot AI left a comment

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 adds job name context to log entries throughout the explain error plugin to improve debugging when multiple jobs are running concurrently. The key change introduces job context information in the format [JobName #BuildNumber] to logging messages and UI titles.

  • Created a new JobContextUtil class for standardized job context formatting
  • Updated all logging statements to include job context information
  • Modified UI elements to display job context in card titles

Reviewed Changes

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

Show a summary per file
File Description
JobContextUtil.java New utility class for creating standardized job context strings
JobContextUtilTest.java Comprehensive test coverage for the JobContextUtil functionality
ErrorExplanationAction.java Added getJobContext() method to provide job context for UI display
ErrorExplanationActionTest.java Added tests for job context functionality
BaseAIService.java Updated to accept Run parameter and include job context in logging
AIService.java Added overloaded method to support job context parameter
ErrorExplainer.java Updated all logging statements to include job context
ConsolePageDecorator.java Added getJobContext() method for console page job context
ConsoleExplainErrorAction.java Updated logging to include job context
ConsoleExplainErrorActionFactory.java Updated error logging to include job context
index.jelly Modified card title to display job context
footer.jelly Updated card titles to include job context

@shenxianpeng shenxianpeng marked this pull request as ready for review August 12, 2025 00:53
@shenxianpeng shenxianpeng requested a review from a team as a code owner August 12, 2025 00:53
@shenxianpeng shenxianpeng marked this pull request as draft August 20, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add job name in log file when logging an error.
1 participant