Skip to content

Second attempt: xds client bootstrap file#20606

Merged
markdroth merged 2 commits intogrpc:masterfrom
markdroth:xds_client_bootstrap
Oct 16, 2019
Merged

Second attempt: xds client bootstrap file#20606
markdroth merged 2 commits intogrpc:masterfrom
markdroth:xds_client_bootstrap

Conversation

@markdroth
Copy link
Copy Markdown
Member

@markdroth markdroth commented Oct 15, 2019

The first commit is a second attempt at #20380, which was reverted in #20593.

The second commit changes xds_bootstrap_test to actually run in most of our tests, similar to what is done in #20513 for service_config_test. This change also uncovered some bugs in the test, which are now fixed; I suspect this will also address #20541.


This change is Reviewable

@markdroth markdroth added the release notes: no Indicates if PR should not be in release notes label Oct 15, 2019
@markdroth
Copy link
Copy Markdown
Member Author

@jtattermusch, this is still showing the same failure as the original PR:

https://source.cloud.google.com/results/invocations/a24056d4-44aa-439f-a253-dbf3163ab34d/targets/github%2Fgrpc/tests

Please advise as to how I should fix this. Thanks.

@markdroth
Copy link
Copy Markdown
Member Author

#20621 has been merged, and I re-ran the "Distribution Tests Linux (standalone subset)" test, which is now passing.

@markdroth
Copy link
Copy Markdown
Member Author

Known failures: #20468 #20609 #20519

The UBSAN failure looks like an infrastructure problem.

The Windows portability build failure is an infrastructure timeout.

Copy link
Copy Markdown
Contributor

@AspirinSJL AspirinSJL left a comment

Choose a reason for hiding this comment

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

Reviewed 32 of 32 files at r1, 3 of 3 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @apolcyn and @markdroth)


test/core/client_channel/xds_bootstrap_test.cc, line 91 at r1 (raw file):

      bootstrap.node()->metadata,
      ::testing::ElementsAre(
          ::testing::Pair(::testing::StrEq("null"),

Why do we need to reorder the matches? They have to be in alphanumeric order?

Copy link
Copy Markdown
Member 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.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @apolcyn)


test/core/client_channel/xds_bootstrap_test.cc, line 91 at r1 (raw file):

Previously, AspirinSJL (Juanli Shen) wrote…

Why do we need to reorder the matches? They have to be in alphanumeric order?

ElementsAre() checks the elements in the order in which they are returned by iterating over the container. Since maps are sorted containers, the entries have to be in order.

I could have used UnorderedElementsAre() instead, but being more specific seemed cleaner.

@markdroth markdroth merged commit dd89123 into grpc:master Oct 16, 2019
@markdroth markdroth deleted the xds_client_bootstrap branch October 16, 2019 20:28
@lock lock bot locked as resolved and limited conversation to collaborators Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants