-
Notifications
You must be signed in to change notification settings - Fork 55
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: generate showcase using docker image #3568
Open
diegomarquezp
wants to merge
50
commits into
main
Choose a base branch
from
hermetic-build-showcase
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
f61c630
feat: generate showcase with hermetic build image
diegomarquezp 99c711f
add showcase generation files
diegomarquezp 7c0ed51
exclude bom generation
diegomarquezp 0328d96
fix owlbot-cli config
diegomarquezp c1d1696
fix paths in owlbot cli
diegomarquezp bb28ae6
add historical bazel file
diegomarquezp 85201ee
fix owlbot yaml
diegomarquezp cad57f6
parse additional protos also including gapic targets
diegomarquezp bfc9bba
fix service yaml and gapic config
diegomarquezp b4aa910
adapt to docker image generation
diegomarquezp 779d011
update proto, gapic and grpc
diegomarquezp d29ce8c
add samples
diegomarquezp 334384a
adapt showcase readme
diegomarquezp 66e7366
explain new input in generation config
diegomarquezp f0a7d53
uncomment image building
diegomarquezp 072ee70
ignore full generation when only generating showcase
diegomarquezp 0214666
add showcase to versions.txt
diegomarquezp 2f47daa
do not generate showcase automatically on generation config changes
diegomarquezp 3063dab
update gapic showcase files
diegomarquezp e1c270a
fix build rule patterns
diegomarquezp 1514dd7
lint
diegomarquezp 6476131
skip generation on no target libraries
diegomarquezp 4880451
exit early when no libraries need to be generated
diegomarquezp c29ce8c
Revert "explain new input in generation config"
diegomarquezp 55141af
restore use of folder name
diegomarquezp 2711c7d
use proto_library_with_info to obtain additional protos
diegomarquezp 0a0726c
optimize image building
diegomarquezp 2d6802f
Merge remote-tracking branch 'origin/main' into hermetic-build-showcase
diegomarquezp 5bf0a5b
restore units
diegomarquezp 8afe6a4
rename showcase folder to java-showcase
diegomarquezp 3a839bf
script cleanup, use function to download showcase
diegomarquezp 702644b
fix partial build file
diegomarquezp 8728b79
chore: generate libraries at Wed Jan 22 12:52:18 AM UTC 2025
diegomarquezp 37d1a95
fix references to java-showcase
diegomarquezp c8bc219
rename variable
diegomarquezp 812f3d9
temporarily cd into showcase
diegomarquezp 2d879f2
remove unnecessary whitespace
diegomarquezp d1f2d20
use showcase_version
diegomarquezp 52d65f6
add readme instructions on docker
diegomarquezp 5f07086
fix kokoro tests
diegomarquezp 4246310
chore: generate libraries at Wed Jan 22 05:37:23 UTC 2025
cloud-java-bot e55ab79
fix showcase-native
diegomarquezp 1e33cde
fix root pom
diegomarquezp 4cdb78a
Merge remote-tracking branch 'origin/hermetic-build-showcase' into he…
diegomarquezp 9868bc7
remove unwanted script
diegomarquezp 5647988
update action.yaml to use showcase mode
diegomarquezp 405108d
Merge branch 'main' into hermetic-build-showcase
diegomarquezp a6447c3
add showcase mode to script
diegomarquezp e122029
Merge remote-tracking branch 'origin/hermetic-build-showcase' into he…
diegomarquezp 493b5a4
Merge remote-tracking branch 'origin/main' into hermetic-build-showcase
diegomarquezp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
hermetic_build/common/tests/resources/misc/BUILD_additional_protos_in_gapic.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
java_gapic_library( | ||
deps = [ | ||
"//google/cloud/location:location_java_proto", | ||
"//google/iam/v1:iam_java_proto" | ||
], | ||
) |
13 changes: 13 additions & 0 deletions
13
hermetic_build/common/tests/resources/misc/BUILD_target_with_nested_parenthesis.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
proto_library_with_info( | ||
# this comment should not indicate an end of a pattern match ) | ||
deps = [ | ||
"//google/cloud/location:location_proto", | ||
] | ||
) | ||
|
||
java_gapic_library( | ||
# this comment should not indicate an end of a pattern match ) | ||
deps = [ | ||
"//google/iam/v1:iam_java_proto" | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 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. | ||
|
||
|
||
deep-remove-regex: | ||
- "/showcase/grpc-gapic-showcase-v1beta1/src" | ||
- "/showcase/proto-gapic-showcase-v1beta1/src" | ||
- "/showcase/gapic-showcase/src" | ||
- "/showcase/samples/snippets/generated" | ||
|
||
deep-preserve-regex: | ||
- "/showcase/gapic-showcase/src/test" | ||
|
||
deep-copy-regex: | ||
- source: "/schema/google/showcase/(v.*)/.*-java/proto-.*/src" | ||
dest: "/owl-bot-staging/showcase/$1/proto-gapic-showcase-$1/src" | ||
- source: "/schema/google/showcase/(v.*)/.*-java/grpc-.*/src" | ||
dest: "/owl-bot-staging/showcase/$1/grpc-gapic-showcase-$1/src" | ||
- source: "/schema/google/showcase/(v.*)/.*-java/gapic-.*/src" | ||
dest: "/owl-bot-staging/showcase/$1/gapic-showcase/src" | ||
- source: "/schema/google/showcase/(v.*)/.*-java/samples/snippets/generated" | ||
dest: "/owl-bot-staging/showcase/$1/samples/snippets/generated" | ||
|
||
api-name: showcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"api_shortname": "showcase", | ||
"name_pretty": "Showcase", | ||
"product_documentation": "https://cloud.google.com/dummy", | ||
"api_description": "Showcase module", | ||
"client_documentation": "https://cloud.google.com/java/docs/reference/gapic-showcase/latest/overview", | ||
"release_level": "preview", | ||
"transport": "both", | ||
"language": "java", | ||
"repo": "googleapis/sdk-platform-java", | ||
"repo_short": "java-showcase", | ||
"distribution_name": "com.google.cloud:gapic-showcase", | ||
"library_type": "OTHER", | ||
"requires_billing": true, | ||
"excluded_poms": "gapic-showcase-bom" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the generator jar copy later in the final stage so the previous steps can run in parallel with
mvn install
. It saves dozens of seconds.