Skip to content
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

Introduce dropwizard/metrics integration test #894

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

oxkitsune
Copy link
Contributor

No description provided.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@rickie rickie changed the title Initial metrics integration test Introduce dropwizard/metrics integration test Nov 26, 2023
Copy link
Member

@rickie rickie left a comment

Choose a reason for hiding this comment

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

Try to make sure it runs for Java 11 and 17. We discussed this offline :).

Some comments but in general this looks really nice!

integration-tests/metrics-v4.2.19.sh Outdated Show resolved Hide resolved
integration-tests/integration-test.sh Outdated Show resolved Hide resolved
private String username = "";
private String password = "";
- private Set<MetricAttribute> disabledMetricAttributes = Collections.emptySet();
+ private Set<MetricAttribute> disabledMetricAttributes = emptySet();
Copy link
Member

Choose a reason for hiding this comment

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

Interesting, are we not rewriting this to ImmutableSet.of?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CollectorMutability is disabled, because there's a few edge cases iirc. I can supress those edge cases 👍 and re-enable.

@@ -0,0 +1,8 @@
metrics-core/src/main/java/com/codahale/metrics/CsvReporter.java:[382,36] [FormatStringConcatenation] Defer string concatenation to the invoked method
metrics-graphite/src/main/java/com/codahale/metrics/graphite/GraphiteReporter.java:[429,18] [Slf4jLogStatement] Log statement contains 0 placeholders, but specifies 1 matching argument(s)
Copy link
Member

Choose a reason for hiding this comment

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

Oh nice, this will be interesting to fix upstream! As this is literally a bug!

integration-tests/integration-test.sh Outdated Show resolved Hide resolved
@rickie rickie self-requested a review November 26, 2023 14:50
@rickie
Copy link
Member

rickie commented Nov 26, 2023

(Sorry didn't mean to approve yet 😬.)

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

2 similar comments
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@oxkitsune oxkitsune force-pushed the gdejong/metrics-integration-test branch from 0ebea1f to afe7925 Compare December 13, 2023 10:47
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@oxkitsune oxkitsune force-pushed the gdejong/metrics-integration-test branch from 064a1cb to f16db40 Compare January 10, 2024 08:46
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

2 similar comments
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link
Member

@rickie rickie left a comment

Choose a reason for hiding this comment

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

Some comments 😄.

integration-tests/metrics-v4.2.19-init.patch Outdated Show resolved Hide resolved
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
</compilerArgs>
- <annotationProcessorPaths>
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't work if we leave this one here combined with the "append" usage in the other profile?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Leaving this here results in a error: plug-in not found: ErrorProne

<compilerArgs>
<arg>-Xlint:all</arg>
<arg>-XDcompilePolicy=simple</arg>
- <arg>-Xplugin:ErrorProne -XepExcludedPaths:.*/target/generated-sources/.*</arg>
Copy link
Member

Choose a reason for hiding this comment

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

Do we use this? Otherwise I'd say we can leave this untouched to minimize the diff.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above

integration-tests/integration-test.sh Outdated Show resolved Hide resolved
integration-tests/checkstyle-10.12.4.sh Outdated Show resolved Hide resolved
.github/workflows/run-integration-tests.yml Outdated Show resolved Hide resolved
integration-tests/integration-test.sh Outdated Show resolved Hide resolved
integration-tests/metrics-v4.2.19.sh Outdated Show resolved Hide resolved
integration-tests/metrics-v4.2.19.sh Outdated Show resolved Hide resolved
@rickie rickie self-requested a review January 10, 2024 09:25
@rickie rickie marked this pull request as ready for review January 10, 2024 09:25
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@oxkitsune
Copy link
Contributor Author

/integration-test

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

2 similar comments
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@oxkitsune oxkitsune force-pushed the gdejong/metrics-integration-test branch from faea805 to 2ef8268 Compare January 24, 2024 09:21
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

1 similar comment
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@rickie rickie force-pushed the gdejong/metrics-integration-test branch from 47bbaa7 to 65dbef0 Compare January 31, 2024 12:33
@rickie
Copy link
Member

rickie commented Jan 31, 2024

Rebased and resolved conflict.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@rickie rickie force-pushed the gdejong/metrics-integration-test branch from 65dbef0 to 123c2bd Compare February 13, 2024 08:29
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@oxkitsune oxkitsune force-pushed the gdejong/metrics-integration-test branch from ed7545c to ee00181 Compare March 20, 2024 08:35
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

sonarcloud bot commented Mar 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@oxkitsune
Copy link
Contributor Author

I'm unable to figure out why the refaster options aren't being used in the metrics integration test.
I've tried JDK11 to JDK21, and the exact options given in #654, but I cannot get the ImmutableSet rules to disable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants