Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

timeout: 7200s # 2 hours
substitutions:
_GAPIC_GENERATOR_JAVA_VERSION: '2.68.1-SNAPSHOT' # {x-version-update:gapic-generator-java:current}
_GAPIC_GENERATOR_JAVA_VERSION: '2.68.1' # {x-version-update:gapic-generator-java:current}
_PRIVATE_IMAGE_NAME: "us-docker.pkg.dev/java-hermetic-build-prod/private-resources/java-library-generation"
_PRIVATE_SHA_IMAGE_ID: "${_PRIVATE_IMAGE_NAME}:${COMMIT_SHA}"
_PRIVATE_LATEST_IMAGE_ID: "${_PRIVATE_IMAGE_NAME}:latest"
Expand Down
4 changes: 2 additions & 2 deletions .cloudbuild/library_generation/library_generation.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ RUN cat /java-formatter-version
RUN V=$(cat /java-formatter-version) && curl -o "/google-java-format.jar" "https://maven-central.storage-download.googleapis.com/maven2/com/google/googlejavaformat/google-java-format/${V}/google-java-format-${V}-all-deps.jar"

# Compile and install packages
RUN mvn install -B -ntp -T 1.5C -DskipTests -Dcheckstyle.skip -Dclirr.skip -Denforcer.skip -Dfmt.skip
RUN mvn install -B -ntp -T 1.5C -DskipTests -Dcheckstyle.skip -Dclirr.skip -Denforcer.skip -Dfmt.skip -pl gapic-generator-java --also-make
RUN cp "/root/.m2/repository/com/google/api/gapic-generator-java/${DOCKER_GAPIC_GENERATOR_VERSION}/gapic-generator-java-${DOCKER_GAPIC_GENERATOR_VERSION}.jar" \
"./gapic-generator-java.jar"

FROM docker.io/library/python:3.13.2-slim@sha256:6b3223eb4d93718828223966ad316909c39813dee3ee9395204940500792b740 as final

ARG OWLBOT_CLI_COMMITTISH=3a68a9c0de318784b3aefadcc502a6521b3f1bc5
ARG PROTOC_VERSION=33.2
ARG GRPC_VERSION=1.76.3
ARG GRPC_VERSION=1.80.0
ENV HOME=/home
ENV OS_ARCHITECTURE="linux-x86_64"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ FROM us-docker.pkg.dev/artifact-foundry-prod/docker-3p-trusted/python@sha256:afc

ARG OWLBOT_CLI_COMMITTISH=3a68a9c0de318784b3aefadcc502a6521b3f1bc5
ARG PROTOC_VERSION=33.2
ARG GRPC_VERSION=1.76.3
ARG GRPC_VERSION=1.80.0
ENV HOME=/home
ENV OS_ARCHITECTURE="linux-x86_64"

Expand Down
7 changes: 6 additions & 1 deletion .github/scripts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ inputs:
token:
description: Personal Access Token
required: true
force_regenerate_all:
description: true if we want to regenerate all libraries
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -76,10 +79,12 @@ runs:
--target_branch "${BASE_REF}" \
--current_branch "${HEAD_REF}" \
--showcase_mode "${SHOWCASE_MODE}" \
--image_tag "${IMAGE_TAG}"
--image_tag "${IMAGE_TAG}" \
--force_regenerate_all "${FORCE_REGENERATE_ALL}"
env:
BASE_REF: ${{ inputs.base_ref }}
HEAD_REF: ${{ inputs.head_ref }}
IMAGE_TAG: ${{ inputs.image_tag }}
SHOWCASE_MODE: ${{ inputs.showcase_mode }}
GH_TOKEN: ${{ inputs.token }}
FORCE_REGENERATE_ALL: ${{ inputs.force_regenerate_all }}
11 changes: 10 additions & 1 deletion .github/scripts/hermetic_library_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ case "${key}" in
showcase_mode="$2"
shift
;;
--force_regenerate_all)
force_regenerate_all="$2"
shift
;;
*)
echo "Invalid option: [$1]"
exit 1
Expand Down Expand Up @@ -81,6 +85,10 @@ if [ -z "${image_tag}" ]; then
image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs)
fi

if [ -z "${force_regenerate_all}" ]; then
force_regenerate_all="false"
fi

workspace_name="/workspace"
baseline_generation_config="baseline_generation_config.yaml"
message="chore: generate libraries at $(date)"
Expand Down Expand Up @@ -109,7 +117,8 @@ fi
changed_libraries_file="$(mktemp)"
python hermetic_build/common/cli/get_changed_libraries.py create \
--baseline-generation-config-path="${baseline_generation_config}" \
--current-generation-config-path="${generation_config}" | tee "${changed_libraries_file}"
--current-generation-config-path="${generation_config}"\
--force-regenerate-all="${force_regenerate_all}" | tee "${changed_libraries_file}"
changed_libraries="$(cat "${changed_libraries_file}")"
echo "Changed libraries are: ${changed_libraries:-"No changed library"}."

Expand Down
80 changes: 0 additions & 80 deletions .kokoro/presubmit/common_test.sh

This file was deleted.

62 changes: 0 additions & 62 deletions .kokoro/presubmit/downstream-compatibility-spring.sh

This file was deleted.

46 changes: 0 additions & 46 deletions .kokoro/presubmit/downstream-compatibility.sh

This file was deleted.

Loading
Loading