feat: enable on-demand Toxiproxy usage in integration tests#4013
Conversation
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
🟢 Coverage ∅ diff coverage · -7.89% coverage variation
Metric Results Coverage variation ✅ -7.89% coverage variation Diff coverage ✅ ∅ diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (e50d5fd) 120069 87833 73.15% Head commit (c5afc1f) 151308 (+31239) 98749 (+10916) 65.26% (-7.89%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#4013) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Code ReviewNote: This PR is already merged, but here is a retrospective review for the record. OverviewThis PR refactors What Works Well
Issues and Suggestions1. Multi-line Javadoc block on a method that is self-explanatory Per the project's CLAUDE.md conventions, comments should be at most one short line, and only when the why is non-obvious. The added Javadoc is three lines long and largely re-states what the method name and return value already communicate. A single line (or no comment at all) would be consistent with the project style. 2. Double blank lines There are extra blank lines after the closing 3. Silent NPE risk if If a future subclass calls protected ToxiproxyClient requireToxiproxyClient() {
if (toxiproxyClient == null)
throw new IllegalStateException("useToxiproxy() must return true to access toxiproxyClient");
return toxiproxyClient;
}Subclasses would call SummaryThe change is correct, safe, and a clear improvement. The main suggestions are cosmetic (comment length, blank lines) and one forward-looking defensive measure for the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4013 +/- ##
==========================================
- Coverage 64.24% 64.22% -0.02%
==========================================
Files 1597 1597
Lines 120069 120069
Branches 25557 25557
==========================================
- Hits 77137 77120 -17
- Misses 32266 32278 +12
- Partials 10666 10671 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
(cherry picked from commit aa526c0)
… 2.64.1 to 2.65.0 [skip ci] Bumps [com.google.api.grpc:proto-google-common-protos](https://github.com/googleapis/sdk-platform-java) from 2.64.1 to 2.65.0. Release notes *Sourced from [com.google.api.grpc:proto-google-common-protos's releases](https://github.com/googleapis/sdk-platform-java/releases).* > v2.65.0 > ------- > > [2.65.0](googleapis/sdk-platform-java@v2.64.2...v2.65.0) (2026-01-12) > ------------------------------------------------------------------------------------------------ > > ### Features > > * add org.json:json to third-party-dependencies pom ([ArcadeData#4047](https://redirect.github.com/googleapis/sdk-platform-java/issues/4047)) ([ffa432e](googleapis/sdk-platform-java@ffa432e)), closes [ArcadeData#4046](https://redirect.github.com/googleapis/sdk-platform-java/issues/4046) > * remove dependency management of graal-sdk ([ArcadeData#4033](https://redirect.github.com/googleapis/sdk-platform-java/issues/4033)) ([ad05c34](googleapis/sdk-platform-java@ad05c34)) > > ### Bug Fixes > > * add api\_version breadcrumb to client docs ([ArcadeData#4018](https://redirect.github.com/googleapis/sdk-platform-java/issues/4018)) ([a2b2179](googleapis/sdk-platform-java@a2b2179)) > * Create a single S2AChannelCredentials per application ([ArcadeData#3989](https://redirect.github.com/googleapis/sdk-platform-java/issues/3989)) ([3758b43](googleapis/sdk-platform-java@3758b43)) > * provide API to share the same background executor for channel po… ([ArcadeData#4030](https://redirect.github.com/googleapis/sdk-platform-java/issues/4030)) ([178182c](googleapis/sdk-platform-java@178182c)) > > ### Dependencies > > * update dependencies.txt for grpc-gcp to 1.9.0 ([ArcadeData#4025](https://redirect.github.com/googleapis/sdk-platform-java/issues/4025)) ([b68791d](googleapis/sdk-platform-java@b68791d)) > * update google api dependencies ([ArcadeData#3917](https://redirect.github.com/googleapis/sdk-platform-java/issues/3917)) ([480cf13](googleapis/sdk-platform-java@480cf13)) > * update google.http-client.version to 2.0.3 ([ArcadeData#4054](https://redirect.github.com/googleapis/sdk-platform-java/issues/4054)) ([b9a8c89](googleapis/sdk-platform-java@b9a8c89)) > > ### Documentation > > * Fix retry guide link in javadocs ([ArcadeData#4029](https://redirect.github.com/googleapis/sdk-platform-java/issues/4029)) ([b43f77c](googleapis/sdk-platform-java@b43f77c)) > > v2.65.0-rc1 > ----------- > > [2.65.0-rc1](googleapis/sdk-platform-java@v2.64.2...v2.65.0-rc1) (2025-12-11) > -------------------------------------------------------------------------------------------------------- > > ### Features > > * feat: Upgrade protobuf runtime and gen code to 4.33. ([googleapis/sdk-platform-java#4000](https://redirect.github.com/googleapis/sdk-platform-java/pull/4000)) (<googleapis/sdk-platform-java@ac25015>) > * feat: configure rc releases to be on prerelease mode (<googleapis/sdk-platform-java@e9055b0>) > > ### Bug Fixes > > * fix: add rc versioning scheme (<googleapis/sdk-platform-java@2939320>) > > ### Dependencies > > * deps: update auth to 1.42.0-rc1 and http-client to 2.1.0-rc1 ([googleapis/sdk-platform-java#4014](https://redirect.github.com/googleapis/sdk-platform-java/pull/4014)) (<googleapis/sdk-platform-java@0e01361>) > * deps: Upgrade grpc to 1.76.2 ([googleapis/sdk-platform-java#4006](https://redirect.github.com/googleapis/sdk-platform-java/pull/4006)(https://redirect.github.com/googleapis/sdk-platform-java/commit/a8060a263ba34556b8d4d347a57625849a6859bc)) > * deps: update google api dependencies ([googleapis/sdk-platform-java#3917](https://redirect.github.com/googleapis/sdk-platform-java/pull/3917)(https://redirect.github.com/googleapis/sdk-platform-java/commit/480cf13148687c53c4af3da9d48490aeb5bf4b88)) > > v2.64.2 > ------- > > [2.64.2](googleapis/sdk-platform-java@v2.64.1...v2.64.2) (2025-12-10) > ------------------------------------------------------------------------------------------------ ... (truncated) Changelog *Sourced from [com.google.api.grpc:proto-google-common-protos's changelog](https://github.com/googleapis/sdk-platform-java/blob/main/CHANGELOG.md).* > [2.65.0](googleapis/sdk-platform-java@v2.64.2...v2.65.0) (2026-01-12) > ------------------------------------------------------------------------------------------------ > > ### Features > > * add org.json:json to third-party-dependencies pom ([ArcadeData#4047](https://redirect.github.com/googleapis/sdk-platform-java/issues/4047)) ([ffa432e](googleapis/sdk-platform-java@ffa432e)), closes [ArcadeData#4046](https://redirect.github.com/googleapis/sdk-platform-java/issues/4046) > * remove dependency management of graal-sdk ([ArcadeData#4033](https://redirect.github.com/googleapis/sdk-platform-java/issues/4033)) ([ad05c34](googleapis/sdk-platform-java@ad05c34)) > > ### Bug Fixes > > * add api\_version breadcrumb to client docs ([ArcadeData#4018](https://redirect.github.com/googleapis/sdk-platform-java/issues/4018)) ([a2b2179](googleapis/sdk-platform-java@a2b2179)) > * Create a single S2AChannelCredentials per application ([ArcadeData#3989](https://redirect.github.com/googleapis/sdk-platform-java/issues/3989)) ([3758b43](googleapis/sdk-platform-java@3758b43)) > * provide API to share the same background executor for channel po… ([ArcadeData#4030](https://redirect.github.com/googleapis/sdk-platform-java/issues/4030)) ([178182c](googleapis/sdk-platform-java@178182c)) > > ### Dependencies > > * update dependencies.txt for grpc-gcp to 1.9.0 ([ArcadeData#4025](https://redirect.github.com/googleapis/sdk-platform-java/issues/4025)) ([b68791d](googleapis/sdk-platform-java@b68791d)) > * update google api dependencies ([ArcadeData#3917](https://redirect.github.com/googleapis/sdk-platform-java/issues/3917)) ([480cf13](googleapis/sdk-platform-java@480cf13)) > * update google.http-client.version to 2.0.3 ([ArcadeData#4054](https://redirect.github.com/googleapis/sdk-platform-java/issues/4054)) ([b9a8c89](googleapis/sdk-platform-java@b9a8c89)) > > ### Documentation > > * Fix retry guide link in javadocs ([ArcadeData#4029](https://redirect.github.com/googleapis/sdk-platform-java/issues/4029)) ([b43f77c](googleapis/sdk-platform-java@b43f77c)) > > [2.64.2](googleapis/sdk-platform-java@v2.64.1...v2.64.2) (2025-12-10) > ------------------------------------------------------------------------------------------------ > > ### Bug Fixes > > * add per-service api\_version to gapic\_metadata ([ArcadeData#3984](https://redirect.github.com/googleapis/sdk-platform-java/issues/3984)) ([d589306](googleapis/sdk-platform-java@d589306)) > > ### Dependencies > > * Upgrade auth to 1.41.0. ([ArcadeData#4008](https://redirect.github.com/googleapis/sdk-platform-java/issues/4008)) ([833b3e5](googleapis/sdk-platform-java@833b3e5)) > * upgrade grpc to 1.76.1 ([ArcadeData#3993](https://redirect.github.com/googleapis/sdk-platform-java/issues/3993)) ([958611e](googleapis/sdk-platform-java@958611e)) > * Upgrade grpc to 1.76.2 ([ArcadeData#4006](https://redirect.github.com/googleapis/sdk-platform-java/issues/4006)) ([a8060a2](googleapis/sdk-platform-java@a8060a2)) Commits * [`972f87a`](googleapis/sdk-platform-java@972f87a) chore(main): release 2.65.0 ([ArcadeData#4058](https://redirect.github.com/googleapis/sdk-platform-java/issues/4058)) * [`74a2dd6`](googleapis/sdk-platform-java@74a2dd6) chore: update googleapis commit at Wed Dec 10 02:37:02 UTC 2025 ([ArcadeData#4013](https://redirect.github.com/googleapis/sdk-platform-java/issues/4013)) * [`b9a8c89`](googleapis/sdk-platform-java@b9a8c89) deps: update google.http-client.version to 2.0.3 ([ArcadeData#4054](https://redirect.github.com/googleapis/sdk-platform-java/issues/4054)) * [`93cbb09`](googleapis/sdk-platform-java@93cbb09) chore(deps): update upper bound dependencies file ([ArcadeData#4052](https://redirect.github.com/googleapis/sdk-platform-java/issues/4052)) * [`aa4a7f7`](googleapis/sdk-platform-java@aa4a7f7) build: Update macOS version in nightly workflow ([ArcadeData#4048](https://redirect.github.com/googleapis/sdk-platform-java/issues/4048)) * [`ffa432e`](googleapis/sdk-platform-java@ffa432e) feat: add org.json:json to third-party-dependencies pom ([ArcadeData#4047](https://redirect.github.com/googleapis/sdk-platform-java/issues/4047)) * [`3758b43`](googleapis/sdk-platform-java@3758b43) fix: Create a single S2AChannelCredentials per application ([ArcadeData#3989](https://redirect.github.com/googleapis/sdk-platform-java/issues/3989)) * [`178182c`](googleapis/sdk-platform-java@178182c) fix: provide API to share the same background executor for channel po… ([ArcadeData#4030](https://redirect.github.com/googleapis/sdk-platform-java/issues/4030)) * [`ad05c34`](googleapis/sdk-platform-java@ad05c34) feat: remove dependency management of graal-sdk ([ArcadeData#4033](https://redirect.github.com/googleapis/sdk-platform-java/issues/4033)) * [`6f59f7c`](googleapis/sdk-platform-java@6f59f7c) tests: Use fixed copyright year in tests. ([ArcadeData#4036](https://redirect.github.com/googleapis/sdk-platform-java/issues/4036)) * Additional commits viewable in [compare view](googleapis/sdk-platform-java@v2.64.1...v2.65.0) [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options 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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)
… 2.72.0 to 2.73.0 [skip ci] Bumps [com.google.api.grpc:proto-google-common-protos](https://github.com/googleapis/sdk-platform-java) from 2.72.0 to 2.73.0. Commits * [`972f87a`](googleapis/sdk-platform-java@972f87a) chore(main): release 2.65.0 ([#4058](https://redirect.github.com/googleapis/sdk-platform-java/issues/4058)) * [`74a2dd6`](googleapis/sdk-platform-java@74a2dd6) chore: update googleapis commit at Wed Dec 10 02:37:02 UTC 2025 ([#4013](https://redirect.github.com/googleapis/sdk-platform-java/issues/4013)) * [`b9a8c89`](googleapis/sdk-platform-java@b9a8c89) deps: update google.http-client.version to 2.0.3 ([#4054](https://redirect.github.com/googleapis/sdk-platform-java/issues/4054)) * [`93cbb09`](googleapis/sdk-platform-java@93cbb09) chore(deps): update upper bound dependencies file ([#4052](https://redirect.github.com/googleapis/sdk-platform-java/issues/4052)) * [`aa4a7f7`](googleapis/sdk-platform-java@aa4a7f7) build: Update macOS version in nightly workflow ([#4048](https://redirect.github.com/googleapis/sdk-platform-java/issues/4048)) * [`ffa432e`](googleapis/sdk-platform-java@ffa432e) feat: add org.json:json to third-party-dependencies pom ([#4047](https://redirect.github.com/googleapis/sdk-platform-java/issues/4047)) * [`3758b43`](googleapis/sdk-platform-java@3758b43) fix: Create a single S2AChannelCredentials per application ([#3989](https://redirect.github.com/googleapis/sdk-platform-java/issues/3989)) * [`178182c`](googleapis/sdk-platform-java@178182c) fix: provide API to share the same background executor for channel po… ([#4030](https://redirect.github.com/googleapis/sdk-platform-java/issues/4030)) * [`ad05c34`](googleapis/sdk-platform-java@ad05c34) feat: remove dependency management of graal-sdk ([#4033](https://redirect.github.com/googleapis/sdk-platform-java/issues/4033)) * [`6f59f7c`](googleapis/sdk-platform-java@6f59f7c) tests: Use fixed copyright year in tests. ([#4036](https://redirect.github.com/googleapis/sdk-platform-java/issues/4036)) * Additional commits viewable in [compare view](googleapis/sdk-platform-java@gax/v2.72.0...gax/2.73.0) [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options 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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)
…o [skip ci] Bumps [marked](https://github.com/markedjs/marked) from 18.0.5 to 18.0.6. Release notes *Sourced from [marked's releases](https://github.com/markedjs/marked/releases).* > v18.0.6 > ------- > > [18.0.6](markedjs/marked@v18.0.5...v18.0.6) (2026-07-09) > ----------------------------------------------------------------------------------- > > ### Bug Fixes > > * Avoid O(n^2) backtracking in inline link href regex ([#4013](https://redirect.github.com/markedjs/marked/issues/4013)) ([a009808](markedjs/marked@a009808)) > * Fix ordered lists after blockquotes ([#4003](https://redirect.github.com/markedjs/marked/issues/4003)) ([33928d0](markedjs/marked@33928d0)) > * keep trailing text on HTML block close line for PI, declarations, and CDATA ([#3991](https://redirect.github.com/markedjs/marked/issues/3991)) ([bbb84c8](markedjs/marked@bbb84c8)) Commits * [`39bd884`](markedjs/marked@39bd884) chore(release): 18.0.6 [skip ci] * [`6bce57d`](markedjs/marked@6bce57d) chore(deps-dev): bump `@semantic-release/github` from 12.0.8 to 12.0.9 ([#4009](https://redirect.github.com/markedjs/marked/issues/4009)) * [`63a4bba`](markedjs/marked@63a4bba) chore(deps-dev): bump markdown-it from 14.2.0 to 14.3.0 ([#4010](https://redirect.github.com/markedjs/marked/issues/4010)) * [`a009808`](markedjs/marked@a009808) fix: Avoid O(n^2) backtracking in inline link href regex ([#4013](https://redirect.github.com/markedjs/marked/issues/4013)) * [`33928d0`](markedjs/marked@33928d0) fix: Fix ordered lists after blockquotes ([#4003](https://redirect.github.com/markedjs/marked/issues/4003)) * [`bbb84c8`](markedjs/marked@bbb84c8) fix: keep trailing text on HTML block close line for PI, declarations, and CD... * [`d2af54e`](markedjs/marked@d2af54e) chore(deps-dev): bump eslint from 10.5.0 to 10.6.0 ([#4005](https://redirect.github.com/markedjs/marked/issues/4005)) * [`f403898`](markedjs/marked@f403898) chore(deps-dev): bump `@arethetypeswrong/cli` from 0.18.3 to 0.18.4 ([#4006](https://redirect.github.com/markedjs/marked/issues/4006)) * [`f8f4112`](markedjs/marked@f8f4112) chore(deps): bump actions/checkout from 6 to 7 ([#4000](https://redirect.github.com/markedjs/marked/issues/4000)) * [`5ddfd8a`](markedjs/marked@5ddfd8a) chore: Update repository metadata URLs ([#3998](https://redirect.github.com/markedjs/marked/issues/3998)) * Additional commits viewable in [compare view](markedjs/marked@v18.0.5...v18.0.6) [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options 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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)
No description provided.