Skip to content

Simplify serialization/deserialization of elapsed time (SUREFIRE-2164 + SUREFIRE-2167)#645

Merged
asfgit merged 2 commits intomasterfrom
simplify-serialization-deserialization-of-elapsed-time
May 28, 2023
Merged

Simplify serialization/deserialization of elapsed time (SUREFIRE-2164 + SUREFIRE-2167)#645
asfgit merged 2 commits intomasterfrom
simplify-serialization-deserialization-of-elapsed-time

Conversation

@michael-o
Copy link
Copy Markdown
Member

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SUREFIRE-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace SUREFIRE-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean install).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@michael-o michael-o requested review from hboutemy and slachiewicz May 25, 2023 09:21
@michael-o michael-o changed the title Simplify serialization/deserialization of elapsed time Simplify serialization/deserialization of elapsed time (SUREFIRE-2164 + SUREFIRE-2167) May 25, 2023

ppw.addAttribute("time", report.elapsedTimeAsString());
if (report.getElapsed() != null) {
ppw.addAttribute("time", String.valueOf(report.getElapsed() / ONE_SECOND));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can depend on user locales like use dot or comma as separator - should we take care about it?

Copy link
Copy Markdown
Member Author

@michael-o michael-o May 25, 2023

Choose a reason for hiding this comment

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

No, it won't. That's the good point about it. It is a straight locale-neutral serialization of a float.

Copy link
Copy Markdown
Member

@hboutemy hboutemy left a comment

Choose a reason for hiding this comment

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

LGTM

@asfgit asfgit force-pushed the simplify-serialization-deserialization-of-elapsed-time branch from 8d50205 to 9e971d2 Compare May 28, 2023 09:45
@asfgit asfgit merged commit 9e971d2 into master May 28, 2023
@michael-o michael-o deleted the simplify-serialization-deserialization-of-elapsed-time branch May 28, 2023 09:47
@jira-importer
Copy link
Copy Markdown

Resolve #2750

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.

5 participants