Skip to content

enrich maintenance issue classification with step name from junit XML#105

Merged
vishnuchalla merged 2 commits intoredhat-performance:mainfrom
mohit-sheth:enrich-maintenance-issue-with-step-name
May 8, 2026
Merged

enrich maintenance issue classification with step name from junit XML#105
vishnuchalla merged 2 commits intoredhat-performance:mainfrom
mohit-sheth:enrich-maintenance-issue-with-step-name

Conversation

@mohit-sheth
Copy link
Copy Markdown
Collaborator

When build-log.txt lacks the "Logs for container test in pod" pattern (e.g. pod killed during init), fall through to check junit_operator.xml before returning a generic Maintenance Issue.
Extract the pod/step name from the junit failure message as a fallback when the test case name doesn't contain it. The categorization now shows which step failed (e.g. "Maintenance Issue: openshift-qe-orion-node-density failed in test phase") instead of a generic message.

"node-readiness": ("Node Readiness", "node-readiness check failure"),
"openshift-qe": ("Workload", "openshift-qe workload failure"),
"upgrade": ("Upgrade", "upgrade failure"),
"maintenance issue": ("Maintenance", "maintenance issue"),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatter?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If "orion" is checked before "maintenance issue" it matches first and returns "Changepoint" instead of "Maintenance". Moving to the front ensures it matches first

version = github_ctx.get(
"current_version", entry.get("ocpVersion", "unknown")
)
version = github_ctx.get("current_version", entry.get("ocpVersion", "unknown"))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here too. Can we just have the changes that enrich the message?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved formatter into its own commit so it is easier to review

Signed-off-by: Mohit Sheth <msheth@redhat.com>
When build-log.txt lacks the "Logs for container test in pod" pattern
(e.g. pod killed during init), fall through to check junit_operator.xml
before returning a generic Maintenance Issue. Extract the pod/step name
from the junit failure message as a fallback when the test case name
doesn't contain it. The categorization now shows which step failed
(e.g. "Maintenance Issue: openshift-qe-orion-node-density failed in
test phase") instead of a generic message.

Signed-off-by: Mohit Sheth <msheth@redhat.com>
@mohit-sheth mohit-sheth force-pushed the enrich-maintenance-issue-with-step-name branch from 7468f79 to de92538 Compare May 7, 2026 15:12
Copy link
Copy Markdown
Collaborator

@vishnuchalla vishnuchalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thank you

@vishnuchalla vishnuchalla merged commit a2631b6 into redhat-performance:main May 8, 2026
2 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.

2 participants