-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated code lifecycle
: Fix handling of empty error text nodes in XML result parser
#9204
Conversation
WalkthroughThe recent change to the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant TestResultXmlParser
Client->>TestResultXmlParser: setDetailedMessage(detailedMessage)
alt detailedMessage is null
TestResultXmlParser-->>Client: detailedMessage is set to ""
else detailedMessage is not null
TestResultXmlParser-->>Client: detailedMessage is set to provided value
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
...n/java/de/tum/in/www1/artemis/service/connectors/localci/buildagent/TestResultXmlParser.java
Outdated
Show resolved
Hide resolved
Thanks coderabbit 🤣 @coderabbitai ignore please |
Tip For best results, initiate chat on the files or code changes. @just-max: Got it, I'll ignore this comment. |
Changes make sense. Can you also add your example as a test? |
Programming exercises
: fix handling of empty error/failure text nodes in XML result parserIntegrated code lifecycle
: Fix handling of empty error text nodes in XML result parser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good
…XML result parser (#9204)
Checklist
General
Server
Motivation and Context
Currently, Artemis fails if test reports contain empty error/failure nodes:
This is because JacksonXMLText deserializes empty text nodes as
null
instead of""
(or even e.g." "
when the node contains only whitespace). An exception is then raised byList.of
from trying to create aList.of
list withnull
s.Description
Empty error/failure nodes are instead turned into
""
.Steps for Testing
I have not had the chance to test this change myself.
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Exam Mode Test
Test Coverage
Screenshots
@coderabbitai ignore
Summary by CodeRabbit
null
assignments in the detailed message field.