Closed ah8ad3 closed 1 month ago
Hi @ah8ad3. Thanks for your PR.
I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
Im not sure about this test https://github.com/etcd-io/etcd/actions/runs/9534220896/job/26278395488?pr=18183
Attention: Patch coverage is 53.29670%
with 85 lines
in your changes missing coverage. Please review.
Project coverage is 68.80%. Comparing base (
d0ea231
) to head (2de1500
). Report is 120 commits behind head on main.:exclamation: Current head 2de1500 differs from pull request most recent head a4b42c5
Please upload reports for the commit a4b42c5 to get more accurate results.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Im not sure about this test https://github.com/etcd-io/etcd/actions/runs/9534220896/job/26278395488?pr=18183
I think you need to run a make fix
and commit the changes to the go.mod
s, because you moved a file from pkg
to etcdctl
and didn't update the go.mod
.
I think you need to run a make fix and commit the changes to the go.mods, because you moved a file from pkg to etcdctl and didn't update the go.mod.
I see what you mean, thanks that makes sense. I updated the code hopefully that will fix it.
Speaking of moving the file from pkg/cobrautil
to etcdctl/util
, why did you decide to do so? I'm not persuaded by this change, as if at some point we want to improve the help from other commands like etcdutl
, it would make sense to move it back. Or maybe there's some reason why you moved it that is not clear to me.
/retitle Add examples to etcdctl snapshot
command's help
Speaking of moving the file from pkg/cobrautil to etcdctl/util, why did you decide to do so? I'm not persuaded by this change, as if at some point we want to improve the help from other commands like etcdutl, it would make sense to move it back. Or maybe there's some reason why you moved it that is not clear to me.
As i understand this help file is only for etcdctl
and not etcdutl
and etcd
commands, So it would make sense to move it to the etcdctl
package.
Also this helper is not well written, or maybe it was few years ago, we should change it to be more readable but i don't want to do that in this PR.
/remove-label area/*
@ah8ad3: The label(s) /remove-label area/*
cannot be applied. These labels are supported: api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda, refactor
. Is this label configured under labels -> additional_labels
or labels -> restricted_labels
in plugin.yaml
?
Sorry, always happens to me when i rebase with wrong repository(forked one), tried to fix it. Let me know if should i do something. PTAL @jmhbnz
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ah8ad3, ahrtr, ivanvc, jmhbnz
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Part of https://github.com/etcd-io/etcd/issues/17777. Add example section into
etcdctl
by first adding it to helper function of cobra. Create autil
module intoetcdctl
move helper there. Add a normalizer function for exmaples. Change indent ofetcdctl
from"\t
" to" "
.I tried to keep this PR simple and add only functionality of examples to helper and add examples of snapshot so it can be easy to review. /cc @ivanvc @jmhbnz