Skip to content

chore(deps): bump com.google.genai:google-genai from 1.80.0 to 2.2.0 - #4192

Merged
jujn merged 3 commits into
mainfrom
dependabot/maven/com.google.genai-google-genai-2.2.0
Nov 16, 2026
Merged

jujn merged 3 commits into
mainfrom
dependabot/maven/com.google.genai-google-genai-2.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 14, 2026

Copy link
Copy Markdown
Contributor

Bumps com.google.genai:google-genai from 1.80.0 to 2.2.0.

Release notes

Sourced from com.google.genai:google-genai's releases.

v2.2.0

2.2.0 (2026-11-11)

Features

  • add the Decisions API (client.decisions.create) to the GenAI SDKs (237e9a3)
  • environments: introduce self-hosted BYOS mode, system_instruction, custom_config, and environment_key in SDKs and CLI (9470f2a)

v2.1.0

2.1.0 (2026-11-10)

Features

  • add gemini-omni-1.2-flash and make it the gemini-api video default (2df4536)
  • Add proactive_video to ProactivityConfig for the Live API. (fee1478)
  • add xhigh thinking level to Interactions ThinkingLevel (bbae015)
  • add usage_metadata (including traffic_type) and truncated to EmbedContentResponse for Gemini Enterprise API (d411dd6)
  • interactions: add gemini-4-carbon and gemini-omni-1.2-flash to Model enum (9c125d0)
  • live: support base URL, API version and headers in LiveConnectConfig.httpOptions (8fcc127)

Documentation

  • update documentation links from ai.google.dev to aistudio.google.com. (8d80f7e)

v2.0.0

2.0.0 (2026-11-06)

⚠ BREAKING CHANGES

  • Default Gemini Developer API version is now v1 (was v1beta) (88bc413)
    • Clients targeting the Gemini Developer API now default to API version v1 instead of v1beta.
    • No effect on Gemini Enterprise (Vertex AI) defaults: Clients with .enterprise(true) are unaffected by this default change and continue to default to v1beta1.
    • Some models are not available on v1, notably: the gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest aliases, and some -preview models. They exist only on v1beta. To keep using them, use a specific stable model version, or switch back to v1beta as shown below.
    • Some model aliases are not available on v1, notably: gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest. They exist only on v1beta. To keep using them, use a specific model version, or switch back to v1beta as shown below.
    • How to configure or restore the previous default via environment variable: Set GOOGLE_GENAI_API_VERSION (works for both Gemini Developer API and Enterprise / Vertex AI clients when no version is set in code):
      # Restores the beta default ('v1beta' on Gemini Developer API, 'v1beta1' on Enterprise / Vertex AI)
      export GOOGLE_GENAI_API_VERSION=beta
      Or set an explicit API version string on either platform (e.g. 'v1', 'v1beta', 'v1beta1')
      export GOOGLE_GENAI_API_VERSION=v1beta

    • How to set the API version in code: Pass HttpOptions when building the Client (takes precedence over GOOGLE_GENAI_API_VERSION):
      import com.google.genai.Client;
      import com.google.genai.types.HttpOptions;

... (truncated)

Changelog

Sourced from com.google.genai:google-genai's changelog.

2.2.0 (2026-11-11)

Features

  • add the Decisions API (client.decisions.create) to the GenAI SDKs (237e9a3)
  • environments: introduce self-hosted BYOS mode, system_instruction, custom_config, and environment_key in SDKs and CLI (9470f2a)

2.1.0 (2026-11-10)

Features

  • add gemini-omni-1.2-flash and make it the gemini-api video default (2df4536)
  • Add proactive_video to ProactivityConfig for the Live API. (fee1478)
  • add xhigh thinking level to Interactions ThinkingLevel (bbae015)
  • add usage_metadata (including traffic_type) and truncated to EmbedContentResponse for Gemini Enterprise API (d411dd6)
  • interactions: add gemini-4-carbon and gemini-omni-1.2-flash to Model enum (9c125d0)
  • live: support base URL, API version and headers in LiveConnectConfig.httpOptions (8fcc127)

Documentation

  • update documentation links from ai.google.dev to aistudio.google.com. (8d80f7e)

2.0.0 (2026-11-06)

⚠ BREAKING CHANGES

  • Default Gemini Developer API version is now v1 (was v1beta) (88bc413)
    • Clients targeting the Gemini Developer API now default to API version v1 instead of v1beta.
    • No effect on Gemini Enterprise (Vertex AI) defaults: Clients with .vertexAI(true) are unaffected by this default change and continue to default to v1beta1.
    • Some models are not available on v1, notably: the gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest aliases, and some -preview models. They exist only on v1beta. To keep using them, use a specific stable model version, or switch back to v1beta as shown below.
    • How to configure or restore the previous default via environment variable: Set GOOGLE_GENAI_API_VERSION (works for both Gemini Developer API and Enterprise / Vertex AI clients when no version is set in code):
      # Restores the beta default ('v1beta' on Gemini Developer API, 'v1beta1' on Enterprise / Vertex AI)
      export GOOGLE_GENAI_API_VERSION=beta
      Or set an explicit API version string on either platform (e.g. 'v1', 'v1beta', 'v1beta1')
      export GOOGLE_GENAI_API_VERSION=v1beta

    • How to set the API version in code: Pass HttpOptions when building the Client (takes precedence over GOOGLE_GENAI_API_VERSION):
      import com.google.genai.Client;
      import com.google.genai.types.HttpOptions;
      Client client =
      Client.builder()
      .httpOptions(HttpOptions.builder().apiVersion("v1beta").build())

... (truncated)

Commits
  • 505d2ec chore(main): release 2.2.0 (#1431)
  • 237e9a3 feat: add the Decisions API (client.decisions.create) to the GenAI SDKs
  • 1b014c0 Copybara import of the project:
  • a4d5532 rollback(cli): unintended breaking changes
  • 9470f2a feat(environments): introduce self-hosted BYOS mode, system_instruction, cust...
  • 35a8800 chore(main): release 2.2.0-SNAPSHOT (#1430)
  • 5ca505e chore(main): release 2.1.0 (#1415)
  • 9c125d0 feat(interactions): add gemini-4-carbon and gemini-omni-1.2-flash to Model enum
  • 2df4536 feat: add gemini-omni-1.2-flash and make it the gemini-api video default
  • 9d4f7eb chore: exclude xhigh thinking level
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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 <dependency name> 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)

Bumps [com.google.genai:google-genai](https://github.com/googleapis/java-genai) from 1.80.0 to 2.2.0.
- [Release notes](https://github.com/googleapis/java-genai/releases)
- [Changelog](https://github.com/googleapis/java-genai/blob/main/CHANGELOG.md)
- [Commits](googleapis/java-genai@v1.80.0...v2.2.0)

---
updated-dependencies:
- dependency-name: com.google.genai:google-genai
  dependency-version: 2.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Nov 14, 2026
@CLAassistant

CLAassistant commented Nov 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ jujn
❌ dependabot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov

codecov Bot commented Nov 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jujn
jujn merged commit c627cc7 into main Nov 16, 2026
4 of 6 checks passed
@jujn
jujn deleted the dependabot/maven/com.google.genai-google-genai-2.2.0 branch November 16, 2026 06:05
xzxiaoshan added a commit that referenced this pull request Nov 20, 2026
…#4274)

## Background

Swept the last 125 PRs (#4272→#4075) for single-OS CI failures under
`mvn -B -T1C clean verify` (one build OS red, the other green on the
same commit = flake suspect). Cross-PR repeats and main's own red run on
2026-11-19 (ubuntu, run 44516464414) pinpoints four still-broken test
classes; all fixes are test-side only (no `src/main` changes).

## Fixes and evidence

| Test class | Victims | Signature | Fix |
|---|---|---|---|
| `RocketMqExecutionTest` | #4182, #4192, #4103 + main run 44516464414
(2026-11-19, ubuntu) | `turn reaches SUCCEEDED did not become true
within 10s` while the turn kept progressing (modelCalls complete, acks
climbing, lastFailure=none) — deadline breakthrough under starvation,
not a lost turn | shared `waitUntil` deadline 10s→30s (repo tier
#3726/#3774) |
| `AgentScopeAdapterTest` | #4204 (same-commit re-run green = confirmed
flake), #4191, #4246 | `Timed out observing Turn` at 6.7–8.5s elapsed;
resume/recovery one step from terminal | `turn.await(5s)`→30s at all 3
sibling sites via `TURN_DEADLINE`, outer `get` budgets +5s margin |
| `WorkerRuntimeTest` | #4219, #4224, #4255 (windows) | (a) `Worker
lease lost` after 2.4s — 1s claim leases expired between claim and
release; (b) `renewed.await(5s)` missed at 6.5s while the recovery lane
was healthy; (c) `Interrupted sleep interrupted` —
`WorkerRuntime.process()` interrupts the calling thread on lease-renewal
failure and manual `tick()` runs it on the test thread | (a) claim
leases 1s→30s (staleness under test still comes from `release(ZERO)` +
re-claim); (b) latches 5s→30s; (c) raw `Thread.sleep`→interrupt-proof
`pause()` at 5 sites, mirroring the #4176 fix for the same signature in
`ProcessRecoveryTest` |
| `ChatSessionsTest.await` (shared with `ChatControllerTest`) | #4233,
#4182 (stuck-RUNNING at 40.8s/46.4s), #4268, #4163 (poll threw `Durable
database transaction failed`) | two surfaces of one cause: every
snapshot poll opens a writing sqlite transaction contending with the
runtime's own writes, and windows runners starve turns past 30s (same
file already measured 56.6s starvation and uses 120s elsewhere, #3726) |
deadline 30s→120s (aligned tier) + tolerate transient `UNAVAILABLE`
store exceptions while polling; persistent failure rethrows at the
deadline, FAILED-turn fast-fail unchanged |
| `CommandExecutorTest.missingExitCodeIsUnknown` | local -T2C full-repo
stress (2026-11-19; pristine-main baseline of the same class green) |
the 2s network budget fired on scheduler starvation before the instant
fake response was processed, misclassifying the failure as a deadline
miss instead of a missing exit code (2.97s elapsed) | budget 2s→30s for
this non-deadline-semantics test; the two deadline-semantics tests keep
their tight budgets |

## Constraint compliance

- Happy path zero cost: every change only extends failure-path deadlines
or hardens helpers; no new sleeps, no weakened assertions.
- Minimal widening anchored to measured data (each comment cites victims
+ measured values); 30s follows the repo's established deflake tier,
120s follows this file's own previously measured starvation tier.
- Structural hardening preferred: `pause()` helper, transient-lock
retry, lease decoupling from the tested invariant.
- No `src/main` changes.

## Observed but deliberately not fixed here

-
`ProcessRecoveryTest.replacementCollectsOriginalResultWithoutRepeatingEffect`
(#4214: `expected: 2 but was: 3`): recovery-semantics race (model re-run
without effect re-run after abrupt halt) — a product question for the
durable recovery work, not a deadline flake.
-
`JevEvidenceProcessorTest.filterFailureIsWithheldButRankFailureFollowsScoredEvidence`
(#4265: delivered `[]` on a 25×-slowed runner): root cause not
established; single occurrence.
- Already fixed upstream, victims predate the fix:
`AgentScopeAgentExecutorInputRequiredTest` (#4157/#4187/#4152 all
predate #4176's `BaseReActAgentRunner` change), `InboxMiddlewareTest`
(#4093 predates #3738), `HarnessAgentSubagentStreamEventsTest` (#4183
predates #2917).
- `SkillBoxTest$UploadContainment` quartet (#4201/#4202/#4212/#4229):
test does not exist on main (fork stack only); deterministic cross-drive
path bug, not load flakiness.
- #4184/#4185: both-OS compile breaks from dependency major bumps
(dependabot), out of scope.

Also applied during review: sibling sites with the identical measured
mechanism were widened in the same pass — the remaining 1s fixture claim
leases in `WorkerRuntimeTest` (fenced begin/update/release sequences,
same #4219 signature), the start/PAUSED 5s budgets in the same
`AgentScopeAdapterTest` method as the victims, and the 5s/4s observe
budgets in
`completeLocalBackendRunsNativeAgentWhileManagedObserverIsBlocked`.

## Test plan

- [x] Full local `mvn -B -T2C clean verify` green (stricter than CI's
-T1C). Locally excluded, each verified to fail identically on pristine
main on this machine (Windows/git-bash) while passing on CI:
`JsonFileAgentStateStoreTest` (symlink permissions), the
`agentscope-extensions-durable-sandbox` trio plus
`ToolInSandboxExampleTest`/`SandboxRoundTripTest` (sandbox shell heredoc
incompatible with local git-bash python3), and the
`AgentScopeAdapterTest`/`ProcessRecoveryTest`/`HarnessExternalToolProcessRecoveryTest`
trio (durable-adapter classes whose Windows runs are skipped on CI; the
same named tests fail on pristine main locally).
- [ ] CI green on both OS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants