Skip to content

removing most v2 references from source/#17415

Merged
alyssawilk merged 12 commits intoenvoyproxy:mainfrom
alyssawilk:v2_src
Aug 2, 2021
Merged

removing most v2 references from source/#17415
alyssawilk merged 12 commits intoenvoyproxy:mainfrom
alyssawilk:v2_src

Conversation

@alyssawilk
Copy link
Contributor

Risk Level: Low
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>

// The version of the collector. This is related to endpoint's supported payload specification and
// transport. Currently it defaults to envoy::config::trace::v2::ZipkinConfig::HTTP_JSON_V1. In
// transport. Currently it defaults to envoy::config::trace::32::ZipkinConfig::HTTP_JSON_V1. In
Copy link
Member

Choose a reason for hiding this comment

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

typo here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch, fixed!


#include <queue>

#include "envoy/api/v2/discovery.pb.h"
Copy link
Member

Choose a reason for hiding this comment

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

still use v2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah this PR only fixes src/ :-)

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
snowp
snowp previously approved these changes Jul 20, 2021
Copy link
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

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

Thanks!

@alyssawilk
Copy link
Contributor Author

unfortunately windows CI failure is real, and due to https://github.com/envoyproxy/envoy/blob/main/source/server/proto_descriptors.cc#L13
@mattklein123 do you know if I can just remove the validate function? I'm not clear on the v3 equivalents here.

@mattklein123
Copy link
Member

@mattklein123 do you know if I can just remove the validate function? I'm not clear on the v3 equivalents here.

Hmm. I don't remember the history here. I think this is to make linking issues obvious? We should probably swap this to v3 equivalents and leave it? I guess it would be OK to just remove it all for now and see if it bites us again. I'm fine either way.

@alyssawilk
Copy link
Contributor Author

yeah removing them breaks things and I'm not sure if they're real or test breakages. I'll err on the side of caution and just update to v3 equivalents.
/wait

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #17415 was synchronize by alyssawilk.

see: more, trace.

@alyssawilk
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Check envoy-presubmit isn't fully completed, but will still attempt retrying.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17415 (comment) was created by @alyssawilk.

see: more, trace.

htuch
htuch previously approved these changes Jul 21, 2021
Copy link
Member

@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.

LGTM, thanks!

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@markdroth
Copy link
Contributor

/lgtm api

@alyssawilk
Copy link
Contributor Author

ugh this windows build is not having it :-(
/wait

@alyssawilk
Copy link
Contributor Author

@wrowe do you have any ideas why this PR is failing on windows only? @davinci26 had suggested linking the variou removed files into the failing tests and I believe I've done that to no avail :-/

@davinci26
Copy link
Member

davinci26 commented Jul 23, 2021

@alyssawilk I think that the issue is the test that are currently failing are including protobuf_link_hacks.h so you will need to add/replace with v2_link_hack.h include to those tests files as well. I am not sure if just adding a reference to the package without including is good enough. I have verified it locally as well

I think that the reason this is happening is because the compiler\linker thinks that this dependency is not used and it does not link it with the test. However, I do not fully understand why this is only happening on Windows. I have seen it a couple of times so I can recognize it as a pattern. @wrowe might be able to give more details.

Patch applied:

PS C:\envoy> git diff .\test\common\config\grpc_mux_impl_test.cc
diff --git a/test/common/config/grpc_mux_impl_test.cc b/test/common/config/grpc_mux_impl_test.cc
index 3eecdbb4f..f760020dc 100644
--- a/test/common/config/grpc_mux_impl_test.cc
+++ b/test/common/config/grpc_mux_impl_test.cc
@@ -8,13 +8,13 @@
 #include "source/common/common/empty_string.h"
 #include "source/common/config/api_version.h"
 #include "source/common/config/grpc_mux_impl.h"
-#include "source/common/config/protobuf_link_hacks.h"
 #include "source/common/config/utility.h"
 #include "source/common/config/version_converter.h"
 #include "source/common/protobuf/protobuf.h"
 #include "source/common/stats/isolated_store_impl.h"

 #include "test/common/stats/stat_test_utility.h"
+#include "test/config/v2_link_hacks.h"
 #include "test/mocks/common.h"
 #include "test/mocks/config/mocks.h"
 #include "test/mocks/event/mocks.h"

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk
Copy link
Contributor Author

/wait

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk
Copy link
Contributor Author

Man, that took longer than expected. Finally got windows happy. Thanks @davinci26 for the pointer to force-includes, that seems to have done the trick!

Copy link
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@davinci26 davinci26 left a comment

Choose a reason for hiding this comment

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

happy to help, sorry if this was frustrating

@alyssawilk alyssawilk merged commit be63e34 into envoyproxy:main Aug 2, 2021
baojr added a commit to baojr/envoy that referenced this pull request Aug 4, 2021
…bridge-stream

* upstream/main: (32 commits)
  tls: move ssl connection info into SocketAddressProvider (envoyproxy#17334)
  conn pool: default enable runtime feature `conn_pool_delete_when_idle` (envoyproxy#17577)
  api: LEDS api introduction (envoyproxy#17419)
  kafka: add support for api versions request in mesh-filter (envoyproxy#17475)
  ext_proc: Implement BUFFERED_PARTIAL processing mode (envoyproxy#17531)
  tooling: Async/pathlib/mypy cleanups and utils (envoyproxy#17505)
  xds: restructure CertificateProvider fields (envoyproxy#17201)
  Refactor OverloadIntegrationTest breaking out a test base, and the fake resource monitors. (envoyproxy#17530)
  listener: move active connection collection out of active tcp listener (envoyproxy#16947)
  tools: format checks for backticks (envoyproxy#17566)
  coverage: set lower limit for common/quic and common (envoyproxy#17573)
  v2: final source removal (envoyproxy#17565)
  test: bumping coverage (envoyproxy#17564)
  quic: enforcing header size and contents (envoyproxy#17520)
  Support for canonicalizing URI properly for AWS SigV4 signer (envoyproxy#17137)
  listener: add a stat for transport socket connect timeout (envoyproxy#17458)
  listener: add listen() error handling (envoyproxy#17427)
  http: return per route config when direct response is set (envoyproxy#17449)
  removing most v2 references from source/ (envoyproxy#17415)
  bug fix: return bootstrap when validating config (envoyproxy#17499)
  ...

Signed-off-by: Garrett Bourg <bourg@squareup.com>
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Risk Level: Low
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk alyssawilk deleted the v2_src branch August 4, 2022 00:57
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.

7 participants