Skip to content

JENKINS-76150 - Check for empty string before parsing endtime#90

Merged
asimell merged 1 commit intojenkinsci:masterfrom
balakine:duration_heuristics
Oct 9, 2025
Merged

JENKINS-76150 - Check for empty string before parsing endtime#90
asimell merged 1 commit intojenkinsci:masterfrom
balakine:duration_heuristics

Conversation

@balakine
Copy link
Copy Markdown
Contributor

@balakine balakine commented Oct 8, 2025

elapsedtime != 0 is not a conclusive test to determine whether we are converting the older version of the data file (without elapsedtime, which defaults to 0 when the @CheckForNull annotation is absent) or the newer version where elapsedtime just happens to be 0. In the latter case, we should not attempt to parse endtime, since it will be empty and will cause an error to be logged. This commit adds this check.

@asimell asimell added the bug label Oct 9, 2025
Copy link
Copy Markdown
Contributor

@asimell asimell left a comment

Choose a reason for hiding this comment

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

LGTM

@asimell asimell merged commit 1c89da8 into jenkinsci:master Oct 9, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants