Skip to content

Duplicate all protos from udpa tree to xds tree#17

Merged
markdroth merged 4 commits intocncf:mainfrom
markdroth:xds_namespace
Oct 11, 2021
Merged

Duplicate all protos from udpa tree to xds tree#17
markdroth merged 4 commits intocncf:mainfrom
markdroth:xds_namespace

Conversation

@markdroth
Copy link
Copy Markdown
Contributor

This is step 1 of the plan from #2.

Question: How do I test something like this to make sure that it's not going to break any callers?

Signed-off-by: Mark D. Roth <roth@google.com>
Signed-off-by: Mark D. Roth <roth@google.com>
Signed-off-by: Mark D. Roth <roth@google.com>
@markdroth markdroth requested a review from htuch October 7, 2021 16:50
Copy link
Copy Markdown
Contributor

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Who do you want to test for breakage?

)

# Old names for backward compatibility.
# TODO(roth): Remove these once all callers are migrated to the new names.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will be removed in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that these build rules might be pulled in by projects that use this repo, so I didn't know if I could remove the old names without breaking anyone. But if we know that no one is using these rules, then I'm happy to remove them immediately.

@@ -0,0 +1,38 @@
syntax = "proto3";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I assume you'll do another pass where you flag in bold letters that the old UDPA version is frozen, stale etc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@htuch htuch self-assigned this Oct 8, 2021
Signed-off-by: Mark D. Roth <roth@google.com>
Copy link
Copy Markdown
Contributor Author

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

I was thinking about tests for projects that depend on this. I can obviously figure out whether this will break gRPC, but, for example, how do I know if this is going to be okay for Envoy?

)

# Old names for backward compatibility.
# TODO(roth): Remove these once all callers are migrated to the new names.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that these build rules might be pulled in by projects that use this repo, so I didn't know if I could remove the old names without breaking anyone. But if we know that no one is using these rules, then I'm happy to remove them immediately.

@@ -0,0 +1,38 @@
syntax = "proto3";
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@htuch
Copy link
Copy Markdown
Contributor

htuch commented Oct 8, 2021

@markdroth try build Envoy against this by updating repository_locations.bzl to point at the branch on your fork. If that works, I think things are good to go. We should ideally have CI support here one day.

@howardjohn
Copy link
Copy Markdown
Contributor

I ran this on istio/istio and there were no errors fwiw

@markdroth
Copy link
Copy Markdown
Contributor Author

I haven't had a chance to test this with Envoy, but if Istio is happy with this, that's probably a good sanity check. And given that we're not actually removing any of the old protos, the odds of breakage are unlikely. So I'll go ahead and merge this.

@markdroth markdroth merged commit cb28da3 into cncf:main Oct 11, 2021
@markdroth markdroth deleted the xds_namespace branch October 11, 2021 17:35
@howardjohn
Copy link
Copy Markdown
Contributor

howardjohn commented Oct 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants