-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Fix addMemberAsLearnerAndPromote to avoid error 'etcdserver: can only… #19279
Conversation
… promote a learner member' Signed-off-by: Benjamin Wang <[email protected]>
See #19272 (comment) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted filessee 19 files with indirect coverage changes @@ Coverage Diff @@
## main #19279 +/- ##
==========================================
+ Coverage 68.87% 68.92% +0.05%
==========================================
Files 420 420
Lines 35680 35680
==========================================
+ Hits 24573 24591 +18
+ Misses 9685 9668 -17
+ Partials 1422 1421 -1 Continue to review full report in Codecov by Sentry.
|
/test pull-etcd-integration-1-cpu-arm64 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, serathius The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I'm unsure if it will be possible to add a workflow, as workflows still need approval to run. I think a better approach would be prioritizing migrating all remaining workflows to prow jobs and eventually enabling tide. |
Something like below?
|
@ahrtr, yes, but the issue is that we'll need someone to approve the workflows manually (which is what etcd/.github/workflows/gh-workflow-approve.yaml Lines 39 to 44 in 2895b19
For Prow, having the So, if we add a workflow as you suggest, we will still need to approve the workflow somehow. Therefore, having a workflow like that sounds redundant if it can't run unless someone approves it. |
Probably I missed something. If we just run the workflow (Check ok-to-test Label) in github instead of prow, then it should work? |
Please look at this pull request from a first-time contributor: #19123. It doesn't run any GitHub workflows unless someone approves them. Therefore, a workflow to check if the |
However, for regular contributors (still not team members), it will still trigger the workflows, i.e., #18711. I guess it would still be an improvement. Would you like to pursue this workflow? |
YES, it's exactly the motivation of the suggestion. |
… promote a learner member'
Fix a test regression caused by #19272
This is another example of regression caused by "ok-to-test" label wasn't added.
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.