Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable hermetic code generation #2232

Closed
Closed
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
24 changes: 24 additions & 0 deletions .github/workflows/hermetic_library_generation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generates the code changes that correspond to changes in generation_config.yaml.
# A pull request is also created with these changes
name: Hermetic library generation upon generation config change through pull requests
on:
pull_request:
workflow_dispatch:
jobs:
update-googleapis-commit:
uses: googleapis/sdk-platform-java/.github/workflows/hermetic_library_generation.yaml@centralized-hermetic-workflows

24 changes: 24 additions & 0 deletions .github/workflows/update_googleapis_committish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Updates the googleapis_committish entry in generation_config.yaml
# The updated value is the commit hash of googleapis/googleapis@HEAD
name: Update googleapis committish
on:
schedule:
- cron: '* 2 * * *'
workflow_dispatch:
jobs:
update-googleapis-commit:
uses: googleapis/sdk-platform-java/.github/workflows/update_googleapis_comittish.yaml@centralized-hermetic-workflows
37 changes: 37 additions & 0 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
gapic_generator_version: 2.40.0
protoc_version: '25.3'
googleapis_commitish: 25a1a57957d9e4bf431897d280b2569b26dc9165
libraries_bom_version: 26.38.0
template_excludes:
- .gitignore
- .kokoro/presubmit/integration.cfg
- .kokoro/presubmit/graalvm-native.cfg
- .kokoro/presubmit/graalvm-native-17.cfg
- .kokoro/nightly/integration.cfg
- .kokoro/presubmit/samples.cfg
- .kokoro/nightly/samples.cfg
- .github/ISSUE_TEMPLATE/bug_report.md
- .github/PULL_REQUEST_TEMPLATE.md
- .github/trusted-contribution.yml
- CONTRIBUTING.md
- codecov.yaml
- .github/release-please.yml
- renovate.json
- .kokoro/requirements.in
- .kokoro/requirements.txt
libraries:
- api_shortname: bigtable
name_pretty: Cloud Bigtable
product_documentation: https://cloud.google.com/bigtable
client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/history
issue_tracker: https://issuetracker.google.com/savedsearches/559777
release_level: stable
distribution_name: com.google.cloud:google-cloud-bigtable
codeowner_team: @googleapis/api-bigtable @googleapis/api-bigtable-partners
api_id: bigtable.googleapis.com
library_type: GAPIC_COMBO
extra_versioned_modules: google-cloud-bigtable-emulator,google-cloud-bigtable-emulator-core
excluded_poms: google-cloud-bigtable-bom
GAPICs:
- proto_path: google/bigtable/v2
- proto_path: google/bigtable/admin/v2
Loading