Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
214c14b
chore: revert back to SNAPSHOT version after partial release (#11804)
suztomo Dec 3, 2025
e30f9c4
chore: fix gapic-libraries-bom format (#11807)
suztomo Dec 3, 2025
b887034
chore: Update generation configuration at Fri Dec 5 02:33:01 UTC 202…
cloud-java-bot Dec 5, 2025
4acc65f
chore: add configuration for protobuf-4.x-rc release (#11805)
diegomarquezp Dec 5, 2025
05df6bd
chore: partial release script (#11806)
suztomo Dec 5, 2025
2f0f298
chore: Update generation configuration at Tue Dec 9 02:33:21 UTC 202…
cloud-java-bot Dec 9, 2025
ba882c3
chore: Link update (#11737)
copybara-service[bot] Dec 9, 2025
a00744d
chore: Remove the deprecated github check. (#11815)
copybara-service[bot] Dec 10, 2025
868ca62
chore: Remove the deprecated github check. (#11808)
copybara-service[bot] Dec 10, 2025
b90bdb7
chore: use maven property for native image sample (#11818)
mpeddada1 Dec 12, 2025
ecb0b2a
chore: Update generation configuration at Fri Dec 12 02:34:39 UTC 202…
cloud-java-bot Dec 12, 2025
6854bbe
fix(deps): update dependency com.google.cloud:libraries-bom to v26.72…
renovate-bot Dec 12, 2025
4ce16c4
chore(deps): update dependency com.google.api:gapic-generator-java to…
renovate-bot Dec 12, 2025
b3789bd
feat: [hypercomputecluster] new module for hypercomputecluster (#11821)
cloud-java-bot Dec 12, 2025
f89945c
fix(deps): update first-party storage dependencies (#11657)
renovate-bot Dec 12, 2025
c65852e
feat: [gkerecommender] new module for gkerecommender (#11828)
cloud-java-bot Dec 15, 2025
2eadab5
feat: Generate Maintenance V1 library (#11824)
blakeli0 Dec 15, 2025
f32924a
fix: update dependency com.google.cloud:sdk-platform-java-config to v…
renovate-bot Dec 15, 2025
1d00eaa
chore: Filter out non-semver versions in update_generation_config.sh …
blakeli0 Dec 15, 2025
02a9cd4
chore: Update generation configuration at Tue Dec 16 02:35:03 UTC 202…
cloud-java-bot Dec 16, 2025
1b56d01
chore(main): release 1.75.0 (#11801)
release-please[bot] Dec 16, 2025
d36b498
chore(main): release 1.76.0-SNAPSHOT (#11833)
release-please[bot] Dec 17, 2025
ebbb087
Merge remote-tracking branch 'origin/main' into protobuf-4.x-merge-main
diegomarquezp Dec 17, 2025
a3e965c
chore: disambiguate commit
diegomarquezp Dec 17, 2025
adf17a6
build: fetch base branch before diff in GraalVM
diegomarquezp Dec 17, 2025
4721b29
chore: correct git fetch usage
diegomarquezp Dec 17, 2025
4f0e868
chore: specify branch name
diegomarquezp Dec 17, 2025
be72613
chore: specify origin of base branch on git diff
diegomarquezp Dec 17, 2025
c210a17
chore: generate libraries at Wed Dec 17 06:43:26 UTC 2025
cloud-java-bot Dec 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ branches:
manifest: true
handleGHRelease: true
branch: 1.58.x
- primaryBranch: main
releaseType: java-yoshi
manifest: true
handleGHRelease: true
branch: protobuf-4.x-rc
1 change: 1 addition & 0 deletions .github/release/fixture/snapshot/versions-snapshot.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-cloud-asset:1.2.3:1.2.3
35 changes: 33 additions & 2 deletions .github/release/partial_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
class VersionType(Enum):
MAJOR = (1,)
MINOR = (2,)
PATCH = 3
PATCH = (3,)
SNAPSHOT = (4,)


@click.group(invoke_without_command=False)
Expand All @@ -34,6 +35,27 @@ def main(ctx):
pass


@main.command()
@click.option(
"--artifact-ids",
required=True,
type=str,
help="""
Artifact IDs whose version needs to update, separated by comma.
""",
)
@click.option(
"--versions",
required=False,
default="./versions.txt",
type=str,
help="""
The path to the versions.txt.
""",
)
def bump_snapshot_version(artifact_ids: str, versions: str) -> None:
bump_version(artifact_ids, "snapshot", versions)

@main.command()
@click.option(
"--artifact-ids",
Expand All @@ -49,7 +71,7 @@ def main(ctx):
default="patch",
type=str,
help="""
The type of version bump, one of major, minor or patch.
The type of version bump, one of major, minor, patch.
""",
)
@click.option(
Expand All @@ -62,6 +84,9 @@ def main(ctx):
""",
)
def bump_released_version(artifact_ids: str, version_type: str, versions: str) -> None:
bump_version(artifact_ids, version_type, versions)

def bump_version(artifact_ids: str, version_type: str, versions: str) -> None:
target_artifact_ids = set(artifact_ids.split(","))
version_enum = _parse_type_or_raise(version_type)
newlines = []
Expand Down Expand Up @@ -95,6 +120,12 @@ def bump_released_version(artifact_ids: str, version_type: str, versions: str) -
minor += 1
case VersionType.PATCH:
patch += 1
case VersionType.SNAPSHOT:
# Keep the released version as is.
newlines.append(
f"{artifact_id}:{major}.{minor}.{patch}:{major}.{minor + 1}.0-SNAPSHOT"
)
continue
newlines.append(
f"{artifact_id}:{major}.{minor}.{patch}:{major}.{minor}.{patch}"
)
Expand Down
18 changes: 17 additions & 1 deletion .github/release/release_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import tempfile
import unittest
from partial_release import bump_released_version
from partial_release import bump_released_version, bump_snapshot_version

SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
GOLDEN = os.path.join(SCRIPT_DIR, "testdata")
Expand Down Expand Up @@ -45,6 +45,22 @@ def test_bump_multiple_versions_success(self):
actual = f.read()
self.assertEqual(expected, actual)

def test_bump_snapshot_version_success(self):
golden = f"{GOLDEN}/snapshot/versions-snapshot-golden.txt"
with copied_fixtures_dir(f"{FIXTURES}/snapshot"):
runner.invoke(
bump_snapshot_version,
[
"--artifact-ids=google-cloud-asset",
"--versions=versions-snapshot.txt",
],
)
with open(golden) as g:
expected = g.read()
with open("./versions-snapshot.txt") as f:
actual = f.read()
self.assertEqual(expected, actual)


@contextlib.contextmanager
def change_dir_to(path: str) -> str:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-cloud-asset:1.2.3:1.3.0-SNAPSHOT
14 changes: 12 additions & 2 deletions .github/scripts/update_generation_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ function get_latest_released_version() {
group_id_url_path="$(sed 's|\.|/|g' <<< "${group_id}")"
url="https://repo1.maven.org/maven2/${group_id_url_path}/${artifact_id}/maven-metadata.xml"
xml_content=$(curl -s --fail "${url}")
latest=$(xmllint --xpath 'metadata/versioning/latest/text()' - <<< "${xml_content}")

# 1. Extract all version tags
# 2. Strip the XML tags to leave just the version numbers
# 3. Filter for strictly numbers.numbers.numbers (e.g., 2.54.0)
# 4. Sort by version (V) and take the last one (tail -n 1)
latest=$(echo "${xml_content}" \
| grep -oE '<version>[0-9]+\.[0-9]+\.[0-9]+</version>' \
| sed -E 's/<[^>]+>//g' \
| sort -V \
| tail -n 1)

if [[ -z "${latest}" ]]; then
echo "The latest version of ${group_id}:${artifact_id} is empty."
echo "The returned json from maven.org is invalid: ${json_content}"
Expand Down Expand Up @@ -174,4 +184,4 @@ if [ -z "${pr_num}" ]; then
else
git push
gh pr edit "${pr_num}" --title "${title}" --body "${title}"
fi
fi
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \
/src/library_generation/cli/entry_point.py validate-generation-config
env:
library_generation_image_tag: 2.62.3
library_generation_image_tag: 2.64.2
workspace_name: /workspace

# TODO: Uncomment the needed Github Actions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generated_files_sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
pull_request:
name: generation diff
env:
library_generation_image_tag: 2.62.3
library_generation_image_tag: 2.64.2
jobs:
root-pom:
# root pom.xml does not have diff from generated one
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hermetic_library_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
- uses: googleapis/sdk-platform-java/.github/[email protected].1
- uses: googleapis/sdk-platform-java/.github/[email protected].2
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unmanaged_dependency_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
shell: bash
run: mvn install -B -ntp -T 1C -DskipTests -Dclirr.skip -Dcheckstyle.skip -Denforcer.skip
- name: Unmanaged dependency check
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.1
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.2
with:
bom-path: gapic-libraries-bom/pom.xml
3 changes: 2 additions & 1 deletion .kokoro/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ function generate_modified_modules_list() {
# grep returns 1 (error code) and exits the pipeline if there is no match
# If there is no match, it will return true so the rest of the commands can run
git config --global --add safe.directory $(realpath .)
modified_files=$(git diff --name-only "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}")
git fetch origin "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}"
modified_files=$(git diff --name-only "origin/${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}")
Comment on lines +164 to +165
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a manual fix. Before, it tried a git diff against a branch assumed to be in local. Now the branch is fetched and now the diff is against the origin branch.

printf "Modified files:\n%s\n" "${modified_files}"

# Generate the list of valid maven modules
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/nightly/graalvm-native-a.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/nightly/graalvm-native-b.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/nightly/graalvm-native-c.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env_vars: {

env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.2"
}

# TODO: remove this after we've migrated all tests and scripts
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env_vars: {

env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env_vars: {

env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-a-presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-b-presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-c-presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.1"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.2"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.74.0"
".": "1.75.0"
}
Loading
Loading