-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[WIP] Experiment deterministic resource names #16569
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
Draft
ohmayr
wants to merge
14
commits into
main
Choose a base branch
from
experiment-deterministic-resource-names
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.
Draft
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
84ee2f3
wip
ohmayr c5aa36d
wip
ohmayr 627e377
wip
ohmayr 19bc3e3
wip
ohmayr 380ce06
wip
ohmayr b69d1e4
wip
ohmayr 8249847
revert changes
ohmayr 840b265
revert changes
ohmayr 42e0527
resolve undeterministic generation issue
ohmayr 5849780
revert changes
ohmayr 3551fc7
update tests
ohmayr 46146df
update tests
ohmayr 80d0dd9
update tests
ohmayr 4f36ef0
resolve naming collisions
ohmayr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,25 @@ | ||
| { | ||
| "id": "google-cloud-dialogflow", | ||
| "version": "2.47.0", | ||
| "apis": [ | ||
| { | ||
| "path": "google/cloud/dialogflow/v2beta1", | ||
| "service_config": "dialogflow_v2beta1.yaml" | ||
| }, | ||
| { | ||
| "path": "google/cloud/dialogflow/v2", | ||
| "service_config": "dialogflow_v2.yaml" | ||
| } | ||
| ], | ||
| "source_roots": [ | ||
| "packages/google-cloud-dialogflow" | ||
| ], | ||
| "preserve_regex": [ | ||
| "packages/google-cloud-dialogflow/CHANGELOG.md", | ||
| "docs/CHANGELOG.md" | ||
| ], | ||
| "remove_regex": [ | ||
| "packages/google-cloud-dialogflow/" | ||
| ], | ||
| "tag_format": "{id}-v{version}" | ||
| } |
This file contains hidden or 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 | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -170,9 +170,12 @@ def resource_messages(self) -> Mapping[str, wrappers.MessageType]: | |||||||||||||||||||||||||||||||
| if msg.options.Extensions[resource_pb2.resource].type | ||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
| return collections.OrderedDict( | ||||||||||||||||||||||||||||||||
| itertools.chain( | ||||||||||||||||||||||||||||||||
| file_resource_messages, | ||||||||||||||||||||||||||||||||
| resource_messages, | ||||||||||||||||||||||||||||||||
| sorted( | ||||||||||||||||||||||||||||||||
| itertools.chain( | ||||||||||||||||||||||||||||||||
| file_resource_messages, | ||||||||||||||||||||||||||||||||
| resource_messages, | ||||||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||||||
| key=lambda item: item[0] | ||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
|
Comment on lines
172
to
180
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In modern Python (3.7+), the standard
Suggested change
References
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
The use of a hardcoded local absolute path (
-e /usr/local/google/...) will break the build for other developers and in CI/CD environments. Please revert this to a versioned dependency or a relative path if necessary for the experiment.