Commit Graph

8735 Commits

Author SHA1 Message Date
dependabot[bot] 8ff30bdf86
Bump com.diffplug.spotless from 6.13.0 to 6.14.0 (#7661)
Bumps com.diffplug.spotless from 6.13.0 to 6.14.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.diffplug.spotless&package-manager=gradle&previous-version=6.13.0&new-version=6.14.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-27 11:00:51 +01:00
Mateusz Rzeszutek ab3b608b57
Fix build status badge in the README (#7659) 2023-01-26 17:39:00 +01:00
dependabot[bot] 1baa5c80bc
Bump quarkus-bom from 2.15.3.Final to 2.16.0.Final (#7655) 2023-01-25 13:31:32 -08:00
Javier Salinas 99e600fff7
Ratpack services OpenTelemetry (#7477)
While using Ratpack Handlers, the context is added by the
`OpenTelemetryServerHandler`

While using Ratpack Services, we might need to add manually the OT
Context into the Ratpack Execution and try to get it from the Execution
in the Ratpack `HttpClient`
2023-01-25 10:28:44 -08:00
Trask Stalnaker fc81be47e5
Fix job name (#7654) 2023-01-25 10:13:00 -08:00
Trask Stalnaker 90209fe53b
Add labels for running openj9 and windows tests during PR builds (#7647)
Bringing back #6314 and extending to openj9
2023-01-25 09:53:54 -08:00
Trask Stalnaker 8b0880a8e3
Partition testLatestDeps to speed up CI (#7649) 2023-01-25 09:51:46 -08:00
Mateusz Rzeszutek 01ae90ff9f
Don't check instrumentation version in waitForTraces(), only when ass… (#7643)
…erting

A minor refactoring that delays the version check a bit
2023-01-25 17:01:06 +01:00
Trask Stalnaker b157f14666
Remove unnecessary suppression (#7648)
I accidentally added in #7538
2023-01-25 08:49:14 +01:00
Trask Stalnaker dab33810bb
Convert logging instrumentation tests to Java (#7631)
currently based on #7632
2023-01-24 15:18:39 -08:00
dependabot[bot] f847f35e45
Bump org.gradle.playframework from 0.12 to 0.13 (#7646) 2023-01-24 13:46:31 -08:00
Trask Stalnaker e869bd879b
Parallelize tests across multiple GitHub Actions jobs (#7639)
The build takes ~2 hours when there are changes to core modules that
force re-running of all tests.

Ran into the long test times (again) in #7632.

This also affects release times since the version bump PR build takes 2
hours to run, and then another 2 hours to run release (or wait 2 hours
for CI build to run and update gradle cache).
2023-01-24 12:22:42 -08:00
Trask Stalnaker 82ea80aba7
Skip openj9 in PR build (#7641)
to help offset new parallelization in #7639
2023-01-24 12:22:24 -08:00
dependabot[bot] 2027c7bf97
Bump groovyVersion from 4.0.7 to 4.0.8 (#7638) 2023-01-23 19:51:03 -08:00
Trask Stalnaker adbd9664f4
Fix some instrumentation scope names (#7632) 2023-01-23 19:46:06 -08:00
jason plumb bb092bf0e5
Fix build (change param type to builder) (#7640)
Looks like there were some merge conflicts around test code in the last
couple of PRs.
I think this will fix up the build.
2023-01-23 16:06:57 -08:00
jason plumb db6b764421
More HTTP testing refactor prework (#7630)
This is another follow-up from #7616. This makes the test options class
immutable and uses `@AutoValue` and `@AutoValue.Builder`. As a result, a
bunch of the configuration/setup code for these said options now flings
around a builder instance. This isn't great, but I think it's an
incremental improvement that can be seen in the `@BeforeAll
AbstractHttpClientTest.setupOptions()` method, where the immutable
options are (finally) instantiated.
2023-01-23 09:42:32 -08:00
Mateusz Rzeszutek 7657b75ddc
Migrate reactor-netty-0.9 tests to java (#7635)
Part of #7195
2023-01-23 09:34:11 -08:00
Mateusz Rzeszutek e1895e548c
Rename all methods in all Getters to use the `get*()` naming scheme (#7619)
Resolves #6562

This PR only contains renames; the actual content is in the `*Getter`
interfaces, the rest of changes is just IntelliJ doing its job.
2023-01-23 09:28:11 +00:00
Andrei Chugunov 9f9d6fee95
webflux 5.0 groovy to java tests part 1 (#7625)
I decided splitting changes on different PRs due to there are a lot of
lines of code in tests here and it should simplify review process.

Another option is I can add additional commit to this PR with conversion
of other groovy files.
2023-01-23 08:59:19 +01:00
jason plumb c5e384fe9f
Http testing refactor prework (#7623)
As part of discussions #7616, the idea of trying to do a more piecemeal
approach came up. A reasonable ask.

This is the first step in refactoring the http client tests. It factors
out the `HttpClientResult` inner class of the `AbstractHttpClientTest`
so that this can be reused by new test framework later. It also factors
the relevant abstract methods in the abstract class to a new type
adapter, which will also be reused.

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-01-20 18:20:42 +00:00
Mateusz Rzeszutek 0223dc3a28
Fix concurrency issue in OpenTelemetryDriver (#7628)
Fixes #7621
2023-01-20 13:28:22 +01:00
dependabot[bot] b49512d0e2
Bump spring-boot-starter-web from 3.0.1 to 3.0.2 (#7626)
Bumps
[spring-boot-starter-web](https://github.com/spring-projects/spring-boot)
from 3.0.1 to 3.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/spring-projects/spring-boot/releases">spring-boot-starter-web's
releases</a>.</em></p>
<blockquote>
<h2>v3.0.2</h2>
<h2>🐞 Bug Fixes</h2>
<ul>
<li>Failure analysis of NoUniqueBeanDefinitionException reports
&quot;defined in null&quot; when bean definition has no resource
description <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33876">#33876</a></li>
<li><code>@DeprecatedConfigurationProperty</code> has no effect when
declared on a record component's accessor method <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33871">#33871</a></li>
<li>Devtools sets non-existent property spring.reactor.debug <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33860">#33860</a></li>
<li>Failing calls to reactive health indicators are not logged <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33856">#33856</a></li>
<li>Spring Boot 3 Native: Fails to bind properties under
'spring.groovy.template' <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33847">#33847</a></li>
<li>Diagnostics are poor when the JMX port used by the Maven start goal
is in use <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33845">#33845</a></li>
<li>Inconsistent discovery of parameter names for selectors in custom
actuator endpoints <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33841">#33841</a></li>
<li>OpenTelemetryAutoConfiguration should use parent-based sampler by
default <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33821">#33821</a></li>
<li>SpringBootMockResolver causes AopTestUtils.getUltimateTargetObject
to recurse until the stack overflows when it calls it with Spring
Security's authentication manager bean <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33792">#33792</a></li>
<li>It is not possible to provide a custom TransactionProvider bean for
JOOQ <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33776">#33776</a></li>
<li>Remove usage of bean definition instance supplier since not
compatible with AOT <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33763">#33763</a></li>
<li>DevTools prevent startup in native image when using maven <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33760">#33760</a></li>
<li>NPE in RabbitProperties when user is given, but password not <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33753">#33753</a></li>
<li>EndpointRequestMatcher should have a toString method <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33729">#33729</a></li>
<li>SDKMAN should not use repo.spring.io for releases <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33723">#33723</a></li>
<li><code>@ConfigurationProperties</code> on a <code>@Bean</code> method
does not work when the bean has a constructor that is eligible for
constructor binding <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33710">#33710</a></li>
<li>Homebrew and Scoop should not use repo.spring.io for releases <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33706">#33706</a></li>
<li>Installing Homebrew formula with --head does not work <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33704">#33704</a></li>
<li>Flyway-specific DataSource cannot be created in a native image due
to missing reflection hints <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33692">#33692</a></li>
<li>Remove Jetty/Netty/ApacheHttpClient checks for WebClient <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33640">#33640</a></li>
<li>Fix no effect of custom SessionRepositoryCustomizer in application
context <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33514">#33514</a></li>
<li>Nested properties without a setter can no longer be bound in 3.0 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33409">#33409</a></li>
</ul>
<h2>📔 Documentation</h2>
<ul>
<li>Fix typo in testing-native-application.adoc <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33896">#33896</a></li>
<li>Replace &quot;via&quot; in documentation and use &quot;over&quot; or
&quot;through&quot; instead <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33880">#33880</a></li>
<li>Fix typo in kotlin getting started documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33869">#33869</a></li>
<li>Update com.gorylenko.gradle-git-properties version to 2.4.1 in doc
<a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33857">#33857</a></li>
<li>Description of spring-boot-starter-websocket does not make it clear
that it's Servlet-specific <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33842">#33842</a></li>
<li>Fix 'the the' typos <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33756">#33756</a></li>
<li>Fix docs with repeated words. <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33749">#33749</a></li>
<li>Update HTTP 2 documentation for Java 17 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33734">#33734</a></li>
<li>Fix typo in getting started documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33732">#33732</a></li>
<li>Fix typo in External Configuration documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33728">#33728</a></li>
<li>Fix a typo in the ExitCodeGenerator documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33726">#33726</a></li>
<li>Fix typo in javadoc of
org.springframework.boot.web.server.LocalServerPort <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33724">#33724</a></li>
<li>Update dockerfile samples to use Java 17 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33629">#33629</a></li>
<li>Remove the run example <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33519">#33519</a></li>
</ul>
<h2>🔨 Dependency Upgrades</h2>
<ul>
<li>Upgrade to Byte Buddy 1.12.22 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33898">#33898</a></li>
<li>Upgrade to Couchbase Client 3.4.2 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33899">#33899</a></li>
<li>Upgrade to Dropwizard Metrics 4.2.15 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33795">#33795</a></li>
<li>Upgrade to FreeMarker 2.3.32 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33900">#33900</a></li>
<li>Upgrade to Groovy 4.0.7 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33796">#33796</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="fb2ce5103b"><code>fb2ce51</code></a>
Release v3.0.2</li>
<li><a
href="86f843be8d"><code>86f843b</code></a>
Merge branch '2.7.x'</li>
<li><a
href="f6f811c9ca"><code>f6f811c</code></a>
Refine docker credentials used in CI</li>
<li><a
href="b9851e8bf5"><code>b9851e8</code></a>
Merge branch '2.7.x'</li>
<li><a
href="219b5fd1d0"><code>219b5fd</code></a>
Upgrade CI to Java 11.0.18+10</li>
<li><a
href="a1fc7eb4c2"><code>a1fc7eb</code></a>
Merge branch '2.7.x'</li>
<li><a
href="9e874c8472"><code>9e874c8</code></a>
Use credentials when checking GitHub</li>
<li><a
href="ac5e39a841"><code>ac5e39a</code></a>
Merge branch '2.7.x'</li>
<li><a
href="2eae17b50b"><code>2eae17b</code></a>
Use credentials when checking GitHub</li>
<li><a
href="b3dc5a851e"><code>b3dc5a8</code></a>
Merge branch '2.7.x'</li>
<li>Additional commits viewable in <a
href="https://github.com/spring-projects/spring-boot/compare/v3.0.1...v3.0.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.springframework.boot:spring-boot-starter-web&package-manager=gradle&previous-version=3.0.1&new-version=3.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 09:37:52 +00:00
Trask Stalnaker 7ffcc91b28
Fix dependabot.yml (#7622) 2023-01-20 10:21:31 +01:00
Mateusz Rzeszutek 40667ce719
Fix inconsistent handling of net.peer.port in HTTP instrumentations (#7618)
Resolves #4329
2023-01-20 09:57:46 +01:00
Alex Kats eaac709162
Update SQL span name for procedures (#7557)
This PR includes updates to the SQLSanitizer, DbClientSpanNameExtractor
and SqlStatementInfo to name spans according to procedure name for CALL
statements. The updates to the naming logic are in the SqlSanitizer and
table has been renamed to identifier as using the table variable for the
procedure name would not be idiomatic. SqlStatementInfo has been updated
so that the db.sql.table attribute is not included for procedures.
2023-01-19 11:01:36 -08:00
Mateusz Rzeszutek 268165c668
Fix NoClassDefFoundError happening when snakeyaml is used on a custom JRE (#7598)
Fixes #7580
2023-01-19 10:30:18 -08:00
Mateusz Rzeszutek b2f42ec3fa
Encode version in spring instrumentations' package names (#7608)
Part of #932

I wanted to get this done before starting the spring boot starter v3
work.
2023-01-19 10:03:17 +00:00
Trask Stalnaker df93f3b1ee
Update misspell link (#7612)
see
https://github.com/open-telemetry/opentelemetry-java/pull/5118/files#r1070170588
2023-01-19 10:44:21 +01:00
Lauri Tulmin 2e599633df
Update link to restlet framework website (#7617)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7614
2023-01-19 10:43:54 +01:00
dependabot[bot] 83626d2e6e
Bump dependency-check-gradle from 7.4.4 to 8.0.1 (#7610) 2023-01-18 23:26:44 +00:00
Andrei Chugunov e6c2254d5c
Cassandra java tests (#7390) 2023-01-18 22:05:57 +00:00
dependabot[bot] ae852aca59
Bump io.quarkus from 2.15.3.Final to 2.16.0.Final (#7611) 2023-01-18 21:59:47 +00:00
dependabot[bot] 6b0cfa5a0c
Bump actions/stale from 6 to 7 (#7609) 2023-01-18 13:54:26 -08:00
Trask Stalnaker f33a1b73ea
Add stale workflow (#7605)
This is the same workflow I added in the community repo recently.
2023-01-18 12:32:07 -08:00
Trask Stalnaker 80136d6e0c
Revert "Bump dependency-check-gradle from 7.4.4 to 8.0.0 (#7592)" (#7603)
This reverts commit 3c6b7b35bb.

Just until 8.0.1 is released, see
https://github.com/jeremylong/DependencyCheck/issues/5306
2023-01-18 08:18:22 +01:00
Trask Stalnaker b6cc2fb2f9
Ignore Mockito 5 (#7602) 2023-01-18 08:15:12 +01:00
Anurag Agarwal 7c4f99c093
Pass context to content length http metrics meters (#7506)
Closes
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7505

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2023-01-17 21:31:31 -08:00
Tav Herzlich b9c10c9607
Add gRPC request metadata instrumentation (#7011)
Solves. #6991 

This PR implements the request portion of the new gRPC metadata
instrumentation spec:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/rpc.md#grpc-request-and-response-metadata

The changes include:

- new CommonConfig entry for desired gRPC metadata values:
'otel.instrumentation.grpc.capture-metadata.request'
(Similar to http headers)
- setting the desired metadata values in GrpcTelemetry
- new property in GrpcAttributesExtractor that holds a reference to the
GrpcRpcAttributesGetter
- new property in GrpcAttributesExtractor that stores the desired values
so it can iterate them and extract each one from the request
- inject the GrpcRpcAttributesGetter to GrpcAttributesExtractor (in
GrpcTelemetryBuilder)
- logic in GrpcRpcAttributesGetter to safely extract the gRPC metadata
value
- A new test in GrpcTest that makes sure that when a certain metadata
key name is inserted, it also ends up in the span attributes

** Doesn't take care of the response because gRPC response is not
implemented in java-instrumentation yet. (This is absolutely necessary
but out of scope for this PR)
** "metadataValue" is only implemented inside GrpcRpcAttributesGetter
and not in RpcAttributesGetter to avoid providing implementations for
every RpcAttributesGetter in the repo as this PR only focuses on gRPC.

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-01-17 21:18:37 -08:00
dependabot[bot] 12619c89c2
Bump opentelemetry-aws-xray-propagator from 1.21.0-alpha to 1.22.0-alpha (#7601) 2023-01-18 04:59:11 +00:00
Mateusz Rzeszutek d89932098a
Disable YodaCondition check and revert some of the changes (#7596)
Let's keep close to the SDK repo config. 

I reverted some of the changes, only left those that I think make sense
anyway (e.g. comparing enums with `==`)
2023-01-17 19:44:15 -08:00
dependabot[bot] dfb4a6239d
Bump spotless-plugin-gradle from 6.12.1 to 6.13.0 (#7591) 2023-01-17 19:43:46 -08:00
dependabot[bot] 6741c95bb8
Bump byteBuddyVersion from 1.12.20 to 1.12.22 (#7568) 2023-01-17 19:43:03 -08:00
dependabot[bot] bc92fb3784
Bump assertj-core from 3.24.1 to 3.24.2 (#7600) 2023-01-17 16:40:33 -08:00
Mateusz Rzeszutek 0ace238eeb
Fix benchmark-overhead build (#7595)
Fixes #7593
2023-01-17 14:40:02 +01:00
Mateusz Rzeszutek 743df7b3da
Convert Spring Webflux client tests to Java; add library instrumentat… (#7566)
…ion tests
2023-01-17 11:53:24 +01:00
dependabot[bot] 1f0ae6a1d2
Bump com.diffplug.spotless from 6.12.1 to 6.13.0 in /examples/extension (#7581) 2023-01-16 19:33:42 -08:00
dependabot[bot] 3c6b7b35bb
Bump dependency-check-gradle from 7.4.4 to 8.0.0 (#7592)
Bumps dependency-check-gradle from 7.4.4 to 8.0.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.owasp:dependency-check-gradle&package-manager=gradle&previous-version=7.4.4&new-version=8.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 11:41:00 +00:00
dependabot[bot] 67a427f30c
Bump joox from 1.6.2 to 2.0.0 in /benchmark-overhead (#7582)
Bumps [joox](https://github.com/jOOQ/jOOX) from 1.6.2 to 2.0.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/jOOQ/jOOX/commits">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.jooq:joox&package-manager=gradle&previous-version=1.6.2&new-version=2.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 11:17:40 +01:00
dependabot[bot] 4bcb876c08
Bump mockito-core from 4.11.0 to 5.0.0 in /examples/distro (#7587)
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.11.0 to
5.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mockito/mockito/releases">mockito-core's
releases</a>.</em></p>
<blockquote>
<h2>v5.0.0</h2>
<h1>Mockito 5: prepare for future JDK versions</h1>
<p>For a while now, we have seen an increase in
problems/incompatibilities with recent versions of the JDK due to our
usage of JVM-internal API.
Most notably, JDK 17 made some changes which are incompatible with the
current subclass mockmaker.
Therefore, to prepare for the future of JDK, we are making some core
changes to ensure Mockito keeps on working.</p>
<h2>Switch the default mockmaker to <code>mockito-inline</code></h2>
<p>Back in Mockito 2.7.6, we published a new mockmaker based on the
&quot;inline bytecode&quot; principle.
This mockmaker creates mocks manipulating bytecode equivalent within the
original class such that its method implementations hook into the normal
Mockito machinery.
As a comparison, the subclass mockmaker generates &quot;real&quot;
subclasses for mocks, to mimic the same behavior.
While the approaches are similar, the inline mockmaker avoids certain
restrictions that the JDK imposes.
For example, it does not violate module boundaries (introduced in JDK 9,
but more heavily used in JDK 17) and avoids the leaking of the creation
of the subclass.</p>
<p>Massive thanks to community member <a
href="https://github.com/reta"><code>@​reta</code></a> who implemented
this change.</p>
<h3>When should I still be using the subclass mockmaker?</h3>
<p>There are legitimate remaining use cases for the subclass mockmaker.
For example, on the Graal VM's native image, the inline mockmaker will
not work and the subclass mockmaker is the appropriate choice.
Additionally, if you would like to avoid mocking final classes, using
the subclass mockmaker is a possibibility.
Note however that if you solely want to use the subclass mockmaker to
avoid mocking final, you will run into the above mentioned issues on JDK
17+.
We want to leave this choice up to our users, which is why we will keep
on supporting the subclass mockmaker.</p>
<p>If you want to use the subclass mockmaker instead, you can use the
new <code>mockito-subclass</code> artifact (published <a
href="https://search.maven.org/artifact/org.mockito/mockito-subclass">on
Maven Central</a> along with all our other artifacts).</p>
<h2>Update the minimum supported Java version to 11</h2>
<p>Mockito 4 supports Java 8 and above.
Similar to other open source projects, we are moving away from JDK 8 and
to newer versions.
The primary reason for moving away from JDK 8 is the increasing
maintenance costs with keeping our own infrastructure working.
Lately we have been running into more and more JDK 8 breakages.
Additionally, while we want to support the newest JDK API's, our current
solution to support both JDK 8 and newer versions causes <a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2798">issues
with the <code>SecurityManager</code></a>.
Since we want Mockito to work on the newest version and more and more
businesses adopting JDK 11, we have decided to make the switch as
well.</p>
<p>Massive thanks to community member <a
href="https://github.com/reta"><code>@​reta</code></a> who implemented
this change.</p>
<h3>What should I do if I still run JDK 8?</h3>
<p>For JDK 8 and below, you can keep on using Mockito 4.
This is similar to if you are using JDK 6, for which you can keep on
using Mockito 2.
The changes in Mockito 5 (for now) are primarily focused on the latest
JDK versions, which means the API differences between Mockito 4 and 5
are minimal.
However, over time this will most likely widen, so we do recommend
adopting JDK 11 in the future.</p>
<h2>New <code>type()</code> method on <code>ArgumentMatcher</code></h2>
<p>One of our most used public API's for customizing Mockito is the <a
href="https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/ArgumentMatcher.html"><code>ArgumentMatcher</code>
interface</a>.
The interface allows you to define a custom matcher, which you can pass
into method arguments to provide more targeted matches.
One major shortcoming of the <code>ArgumentMatcher</code> was the lack
of varargs support.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="adf528d173"><code>adf528d</code></a>
Bump versions.bytebuddy from 1.12.21 to 1.12.22 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2864">#2864</a>)</li>
<li><a
href="2418419a19"><code>2418419</code></a>
Bump versions.junitJupiter from 5.9.1 to 5.9.2 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2858">#2858</a>)</li>
<li><a
href="3d40cd51d3"><code>3d40cd5</code></a>
Bump junit-platform-launcher from 1.9.1 to 1.9.2 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2859">#2859</a>)</li>
<li><a
href="9bec8e3a1a"><code>9bec8e3</code></a>
Bump versions.errorprone from 2.17.0 to 2.18.0 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2857">#2857</a>)</li>
<li><a
href="a9595f559c"><code>a9595f5</code></a>
Switch the default mockmaker to the inline mockmaker on JDK 17+ (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2834">#2834</a>)</li>
<li><a
href="c5d7fbc532"><code>c5d7fbc</code></a>
Bump assertj-core from 3.23.1 to 3.24.1 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2854">#2854</a>)</li>
<li><a
href="dbd7f2ff4a"><code>dbd7f2f</code></a>
Bump versions.bytebuddy from 1.12.20 to 1.12.21 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2852">#2852</a>)</li>
<li><a
href="4d62fa75c7"><code>4d62fa7</code></a>
Bump junit from 1.1.4 to 1.1.5 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2850">#2850</a>)</li>
<li><a
href="b1b6d6afcb"><code>b1b6d6a</code></a>
Bump espresso-core from 3.5.0 to 3.5.1 (<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2849">#2849</a>)</li>
<li><a
href="7b5b8dd840"><code>7b5b8dd</code></a>
Remove use case for non-existent method VerificationWithTimeout#never
(<a
href="https://github-redirect.dependabot.com/mockito/mockito/issues/2848">#2848</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/mockito/mockito/compare/v4.11.0...v5.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.mockito:mockito-core&package-manager=gradle&previous-version=4.11.0&new-version=5.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 11:17:15 +01:00