-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Convert cluster-related v2 API test fragments to v3 #11031
Conversation
@junr03 can you have a look? |
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.
@ankatare do you need guidance on how to proceed here? It looks like you need to fix the field differences between the v2 and the v3 protos. Looking at the errors in the build should guide you there. Let me know if you need anything! |
@junr03 Hi Thanks for your guidance. I fixed most of the build issues, currently i am working on some issues in my local env. |
@junr03 seems some formatting issue here. need your help to understand it and how to follow guidelines. |
@junr03 i am talking about current build ( ongoing ). |
@ankatare I think you can try to run: ./tools/code_format/check_format.py fix test/common/upstream/cluster_manager_impl_test.cc Or (to fix all possible files), ./tools/code_format/check_format.py fix And here is the diff, after running the above command: diff --git a/test/common/upstream/cluster_manager_impl_test.cc b/test/common/upstream/cluster_manager_impl_test.cc
index 2b922ec09..cf718a40f 100644
--- a/test/common/upstream/cluster_manager_impl_test.cc
+++ b/test/common/upstream/cluster_manager_impl_test.cc
@@ -104,7 +104,7 @@ public:
auto message_ptr = admin_.config_tracker_.config_tracker_callbacks_["clusters"]();
const auto& clusters_config_dump =
dynamic_cast<const envoy::admin::v3::ClustersConfigDump&>(*message_ptr);
-
+
envoy::admin::v3::ClustersConfigDump expected_clusters_config_dump;
TestUtility::loadFromYaml(expected_dump_yaml, expected_clusters_config_dump);
EXPECT_EQ(expected_clusters_config_dump.DebugString(), clusters_config_dump.DebugString());
diff --git a/test/common/upstream/utility.h b/test/common/upstream/utility.h
index d2401caeb..f66353195 100644
--- a/test/common/upstream/utility.h
+++ b/test/common/upstream/utility.h
@@ -48,7 +48,6 @@ constexpr static const char* kDefaultStaticClusterTmpl = R"EOF(
}
)EOF";
-
inline std::string defaultStaticClusterJson(const std::string& name) {
return fmt::sprintf(kDefaultStaticClusterTmpl, name, R"EOF(
"socket_address": { For completeness, this is the log output from CI: https://dev.azure.com/cncf/4684fb3d-0389-4e0b-8251-221942316e06/_apis/build/builds/39431/logs/7 |
@dio Thanks for help. let me run script locally |
@dio though build is still running, let's wait for final results. |
@zuercher Hi, Thanks for help. finally it merged :) |
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
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.
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 updated the PR description. Thanks for working on this!
@envoyproxy/senior-maintainers I think this PR is jammed because it predates the CI changes for coverage so the status is not being reported. Can one of you with admin merge this? |
Please merge master to make sure we don't have other issue, thanks! /wait |
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
@ankatare do you mind merging master here? |
@junr03 sorry , I didn't get. What is ming merging ? |
typo s/ming/mind |
I'd like a master merge on this branch to make sure all the new CI flows run correctly. |
@junr03 ok , sure. Thanks for inputs. I will merge it ASAP. |
@junr03 done as per inputs. Thanks |
@ankatare did you push the merge? I don't see it here |
@junr03 ohh, really sorry. will do it ASAP today |
Signed-off-by: Abhay Narayan Katare <[email protected]>
Signed-off-by: Abhay Narayan Katare <[email protected]>
Signed-off-by: Abhay Narayan Katare <[email protected]>
Signed-off-by: Abhay Narayan Katare <[email protected]>
d04ac3e
to
6b15866
Compare
Signed-off-by: Abhay Narayan Katare <[email protected]>
@junr03 Done now. |
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Signed-off-by: Abhay Narayan Katare [email protected]
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Commit Message: changes in test files for "Convert v2 API test fragments to v3"
Additional Description: file changes in test/common/upstream/
Risk Level:
Testing: format test and integration test
Docs Changes:
Release Notes:
[Optional Runtime guard:]
Progress toward #10843
[Optional Deprecated:]
Note : I will push remaining files changes in next PR