Skip to content

Commit 67a38d7

Browse files
Merge branch 'main' into renovate/ubuntu-24.x
2 parents 817bf7f + 4e626f0 commit 67a38d7

File tree

415 files changed

+1166
-642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+1166
-642
lines changed
Lines changed: 32 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,12 @@
11
#!/bin/bash
2-
set -ex
2+
set -e
33
# This script should be run at the root of the repository.
4-
# This script is used to update googleapis_commitish, gapic_generator_version,
5-
# and libraries_bom_version in generation configuration at the time of running
6-
# and create a pull request.
4+
# This script is used to update googleapis commit to latest in generation
5+
# configuration at the time of running and create a pull request.
76

87
# The following commands need to be installed before running the script:
98
# 1. git
109
# 2. gh
11-
# 3. jq
12-
13-
# Utility functions
14-
# Get the latest released version of a Maven artifact.
15-
function get_latest_released_version() {
16-
local group_id=$1
17-
local artifact_id=$2
18-
latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1)
19-
echo "${latest}"
20-
}
21-
22-
# Update a key to a new value in the generation config.
23-
function update_config() {
24-
local key_word=$1
25-
local new_value=$2
26-
local file=$3
27-
echo "Update ${key_word} to ${new_value} in ${file}"
28-
sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/" "${file}"
29-
}
3010

3111
# The parameters of this script is:
3212
# 1. base_branch, the base branch of the result pull request.
@@ -72,50 +52,62 @@ if [ -z "${generation_config}" ]; then
7252
fi
7353

7454
current_branch="generate-libraries-${base_branch}"
75-
title="chore: Update generation configuration at $(date)"
55+
title="chore: update googleapis commit at $(date)"
7656

77-
# try to find a open pull request associated with the branch
57+
git checkout "${base_branch}"
58+
# Try to find a open pull request associated with the branch
7859
pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number")
79-
# create a branch if there's no open pull request associated with the
60+
# Create a branch if there's no open pull request associated with the
8061
# branch; otherwise checkout the pull request.
8162
if [ -z "${pr_num}" ]; then
8263
git checkout -b "${current_branch}"
64+
# Push the current branch to remote so that we can
65+
# compare the commits later.
66+
git push -u origin "${current_branch}"
8367
else
8468
gh pr checkout "${pr_num}"
8569
fi
8670

71+
# Only allow fast-forward merging; exit with non-zero result if there's merging
72+
# conflict.
73+
git merge -m "chore: merge ${base_branch} into ${current_branch}" "${base_branch}"
74+
8775
mkdir tmp-googleapis
88-
# use partial clone because only commit history is needed.
76+
# Use partial clone because only commit history is needed.
8977
git clone --filter=blob:none https://github.com/googleapis/googleapis.git tmp-googleapis
9078
pushd tmp-googleapis
9179
git pull
9280
latest_commit=$(git rev-parse HEAD)
9381
popd
9482
rm -rf tmp-googleapis
95-
update_config "googleapis_commitish" "${latest_commit}" "${generation_config}"
96-
97-
# update gapic-generator-java version to the latest
98-
latest_version=$(get_latest_released_version "com.google.api" "gapic-generator-java")
99-
update_config "gapic_generator_version" "${latest_version}" "${generation_config}"
100-
101-
# update libraries-bom version to the latest
102-
latest_version=$(get_latest_released_version "com.google.cloud" "libraries-bom")
103-
update_config "libraries_bom_version" "${latest_version}" "${generation_config}"
83+
sed -i -e "s/^googleapis_commitish.*$/googleapis_commitish: ${latest_commit}/" "${generation_config}"
10484

10585
git add "${generation_config}"
10686
changed_files=$(git diff --cached --name-only)
10787
if [[ "${changed_files}" == "" ]]; then
108-
echo "The latest generation config is not changed."
88+
echo "The latest googleapis commit is not changed."
10989
echo "Skip committing to the pull request."
90+
else
91+
git commit -m "${title}"
92+
fi
93+
94+
# There are potentially at most two commits: merge commit and change commit.
95+
# We want to exit the script if no commit happens (otherwise this will be an
96+
# infinite loop).
97+
# `git cherry` is a way to find whether the local branch has commits that are
98+
# not in the remote branch.
99+
# If we find any such commit, push them to remote branch.
100+
unpushed_commit=$(git cherry -v "origin/${current_branch}" | wc -l)
101+
if [[ "${unpushed_commit}" -eq 0 ]]; then
102+
echo "No unpushed commits, exit"
110103
exit 0
111104
fi
112-
git commit -m "${title}"
105+
113106
if [ -z "${pr_num}" ]; then
114107
git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git"
115-
git fetch -q --unshallow remote_repo
108+
git fetch -q remote_repo
116109
git push -f remote_repo "${current_branch}"
117110
gh pr create --title "${title}" --head "${current_branch}" --body "${title}" --base "${base_branch}"
118111
else
119112
git push
120-
gh pr edit "${pr_num}" --title "${title}" --body "${title}"
121113
fi

.github/workflows/hermetic_library_generation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
40-
- uses: googleapis/sdk-platform-java/.github/scripts@v2.50.0
40+
- uses: googleapis/sdk-platform-java/.github/scripts@v2.51.1
4141
if: env.SHOULD_RUN == 'true'
4242
with:
4343
base_ref: ${{ github.base_ref }}

.github/workflows/unmanaged_dependency_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
shell: bash
1515
run: .kokoro/build.sh
1616
- name: Unmanaged dependency check
17-
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.40.0
17+
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.1
1818
with:
1919
bom-path: google-cloud-bigtable-bom/pom.xml

.kokoro/presubmit/graalvm-native-17.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.40.0"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.1"
77
}
88

99
env_vars: {

.kokoro/presubmit/graalvm-native.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.40.0"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.1"
77
}
88

99
env_vars: {

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Changelog
22

3+
## [2.51.1](https://github.com/googleapis/java-bigtable/compare/v2.51.0...v2.51.1) (2025-01-10)
4+
5+
6+
### Dependencies
7+
8+
* Update dependency com.google.cloud:gapic-libraries-bom to v1.50.0 ([#2464](https://github.com/googleapis/java-bigtable/issues/2464)) ([d63dd43](https://github.com/googleapis/java-bigtable/commit/d63dd4333e94f8ad32f260315e44b622db157002))
9+
* Update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 ([#2461](https://github.com/googleapis/java-bigtable/issues/2461)) ([ed24b4c](https://github.com/googleapis/java-bigtable/commit/ed24b4c0aebc2666850f103f551128f02c2ba2ae))
10+
* Update googleapis/sdk-platform-java action to v2.51.1 ([#2460](https://github.com/googleapis/java-bigtable/issues/2460)) ([35c979f](https://github.com/googleapis/java-bigtable/commit/35c979fff1d1194cc241f90057245de78cd5f010))
11+
12+
## [2.51.0](https://github.com/googleapis/java-bigtable/compare/v2.50.0...v2.51.0) (2024-12-17)
13+
14+
15+
### Features
16+
17+
* Introduce `java.time` ([#2415](https://github.com/googleapis/java-bigtable/issues/2415)) ([bb96c3e](https://github.com/googleapis/java-bigtable/commit/bb96c3e395793ba324cf658bb4c985d4315cf781))
18+
19+
20+
### Bug Fixes
21+
22+
* **deps:** Update the Java code generator (gapic-generator-java) to 2.51.0 ([a5444a5](https://github.com/googleapis/java-bigtable/commit/a5444a545ec61a1520716dfafb6f62b7e39df1c7))
23+
* Move resource detection to the first export to avoid slow start ([#2450](https://github.com/googleapis/java-bigtable/issues/2450)) ([cec010a](https://github.com/googleapis/java-bigtable/commit/cec010aa64f2b190f8e742915be41baae2ad2083))
24+
25+
26+
### Dependencies
27+
28+
* Update sdk-platform-java dependencies ([#2448](https://github.com/googleapis/java-bigtable/issues/2448)) ([825e717](https://github.com/googleapis/java-bigtable/commit/825e717e9d8ae3853d7509d0849b58f2c47c9803))
29+
30+
## [2.50.0](https://github.com/googleapis/java-bigtable/compare/v2.49.0...v2.50.0) (2024-12-06)
31+
32+
33+
### Features
34+
35+
* Add support for Row Affinity app profiles ([#2341](https://github.com/googleapis/java-bigtable/issues/2341)) ([cb4d60e](https://github.com/googleapis/java-bigtable/commit/cb4d60e8ce2079a270739ad91efb05cbb1ff74f8))
36+
337
## [2.49.0](https://github.com/googleapis/java-bigtable/compare/v2.48.0...v2.49.0) (2024-12-03)
438

539

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,28 @@ If you are using Maven without the BOM, add this to your dependencies:
4141
<dependency>
4242
<groupId>com.google.cloud</groupId>
4343
<artifactId>google-cloud-bigtable</artifactId>
44-
<version>2.40.0</version>
44+
<version>2.50.0</version>
4545
</dependency>
4646

4747
```
4848

4949
If you are using Gradle 5.x or later, add this to your dependencies:
5050

5151
```Groovy
52-
implementation platform('com.google.cloud:libraries-bom:26.50.0')
52+
implementation platform('com.google.cloud:libraries-bom:26.51.0')
5353
5454
implementation 'com.google.cloud:google-cloud-bigtable'
5555
```
5656
If you are using Gradle without BOM, add this to your dependencies:
5757

5858
```Groovy
59-
implementation 'com.google.cloud:google-cloud-bigtable:2.49.0'
59+
implementation 'com.google.cloud:google-cloud-bigtable:2.51.1'
6060
```
6161

6262
If you are using SBT, add this to your dependencies:
6363

6464
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.49.0"
65+
libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.51.1"
6666
```
6767

6868
## Authentication
@@ -543,7 +543,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
543543
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigtable/java11.html
544544
[stability-image]: https://img.shields.io/badge/stability-stable-green
545545
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigtable.svg
546-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.49.0
546+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.51.1
547547
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
548548
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
549549
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

generation_config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
gapic_generator_version: 2.50.0
2-
googleapis_commitish: 349841abac6c3e580ccce6e3d6fcc182ed2512c2
3-
libraries_bom_version: 26.50.0
1+
gapic_generator_version: 2.51.0
2+
googleapis_commitish: f4eff5440fd07389f820d22d2a55690c6390dc6d
3+
libraries_bom_version: 26.51.0
44
template_excludes:
55
- .gitignore
66
- .kokoro/presubmit/integration.cfg

google-cloud-bigtable-bom/pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.google.cloud</groupId>
55
<artifactId>google-cloud-bigtable-bom</artifactId>
6-
<version>2.49.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} -->
6+
<version>2.51.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} -->
77
<packaging>pom</packaging>
88
<parent>
99
<groupId>com.google.cloud</groupId>
1010
<artifactId>sdk-platform-java-config</artifactId>
11-
<version>3.40.0</version>
11+
<version>3.41.1</version>
1212
<relativePath/>
1313
</parent>
1414

@@ -63,37 +63,37 @@
6363
<dependency>
6464
<groupId>com.google.cloud</groupId>
6565
<artifactId>google-cloud-bigtable</artifactId>
66-
<version>2.49.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} -->
66+
<version>2.51.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} -->
6767
</dependency>
6868
<dependency>
6969
<groupId>com.google.cloud</groupId>
7070
<artifactId>google-cloud-bigtable-emulator</artifactId>
71-
<version>0.186.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable-emulator:current} -->
71+
<version>0.188.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable-emulator:current} -->
7272
</dependency>
7373
<dependency>
7474
<groupId>com.google.cloud</groupId>
7575
<artifactId>google-cloud-bigtable-emulator-core</artifactId>
76-
<version>0.186.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable-emulator:current} -->
76+
<version>0.188.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable-emulator:current} -->
7777
</dependency>
7878
<dependency>
7979
<groupId>com.google.api.grpc</groupId>
8080
<artifactId>grpc-google-cloud-bigtable-admin-v2</artifactId>
81-
<version>2.49.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigtable-admin-v2:current} -->
81+
<version>2.51.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigtable-admin-v2:current} -->
8282
</dependency>
8383
<dependency>
8484
<groupId>com.google.api.grpc</groupId>
8585
<artifactId>grpc-google-cloud-bigtable-v2</artifactId>
86-
<version>2.49.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigtable-v2:current} -->
86+
<version>2.51.2-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-bigtable-v2:current} -->
8787
</dependency>
8888
<dependency>
8989
<groupId>com.google.api.grpc</groupId>
9090
<artifactId>proto-google-cloud-bigtable-admin-v2</artifactId>
91-
<version>2.49.1-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigtable-admin-v2:current} -->
91+
<version>2.51.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigtable-admin-v2:current} -->
9292
</dependency>
9393
<dependency>
9494
<groupId>com.google.api.grpc</groupId>
9595
<artifactId>proto-google-cloud-bigtable-v2</artifactId>
96-
<version>2.49.1-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigtable-v2:current} -->
96+
<version>2.51.2-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigtable-v2:current} -->
9797
</dependency>
9898
</dependencies>
9999
</dependencyManagement>

google-cloud-bigtable-deps-bom/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<parent>
88
<groupId>com.google.cloud</groupId>
99
<artifactId>sdk-platform-java-config</artifactId>
10-
<version>3.40.0</version>
10+
<version>3.41.1</version>
1111
<relativePath/>
1212
</parent>
1313

1414
<groupId>com.google.cloud</groupId>
1515
<artifactId>google-cloud-bigtable-deps-bom</artifactId>
16-
<version>2.49.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} -->
16+
<version>2.51.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} -->
1717

1818
<packaging>pom</packaging>
1919
<description>
@@ -67,7 +67,7 @@
6767
<dependency>
6868
<groupId>com.google.cloud</groupId>
6969
<artifactId>gapic-libraries-bom</artifactId>
70-
<version>1.48.0</version>
70+
<version>1.50.0</version>
7171
<type>pom</type>
7272
<scope>import</scope>
7373
</dependency>

0 commit comments

Comments
 (0)