Skip to content
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 CI: Regenerate docs for authz subcommands #1231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ravjot07
Copy link
Contributor

@ravjot07 ravjot07 commented Feb 9, 2025

Fix ci issues in #1217

Signed-off-by: Ravjot Singh <ravu2004@gmail.com>
@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign supercharge-xsy for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

kmeshctl authz <kmesh-daemon-pod> enable/disable

# If you want to enable or disable authz offloading of all Kmeshs in the cluster
kmeshctl authz enable/disable
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, this document is autogenerated by the make gen tool based on CLI command comments. Therefore, your changes will not pass the checks in the GitHub Action.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had run make gen command in my local these changes are made by that action. I thought that it would resolve ci issues...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you mean you submitted this PR after running make gen commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yaa kinda like that

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is what I get when I run make gen-check:
image

Please confirm that the changes to the c-file in PR were caused by make gen-check?

Copy link
Collaborator

@LiZhenCheng9527 LiZhenCheng9527 Feb 10, 2025

Choose a reason for hiding this comment

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

make gen-check only is a tool.
You can revert your changes, then run make gen. After that, submit your changes again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure I will update this pr, actually I missed this flow initially

Copy link
Collaborator

Choose a reason for hiding this comment

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

When will this PR be updated?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This PR issue is blocking the #1237

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When will this PR be updated?

i am working on this

@@ -244,7 +244,7 @@ static inline int convert_v6(char *data, __u32 *ip6)
__u16 ip_1 = (ip >> 0) & 0xFFFF;
__u16 ip_2 = (ip >> 16) & 0xFFFF;
for (int j = 0; j < 2; j++) {
__u16 ip_1 = (ip)&0xFFFF;
__u16 ip_1 = (ip) & 0xFFFF;
Copy link
Member

Choose a reason for hiding this comment

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

Why change & related format?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's autogenrated by make gen command

@hzxuzhonghu
Copy link
Member

gen check failed

@ravjot07
Copy link
Contributor Author

gen check failed

Hey, can u guide me in right direction why these checks are failing

@hzxuzhonghu
Copy link
Member

related to, the CI use clang format. I think you can revert these white spaces added around &

-#define SET_RET_MSG_TYPE(n, type) (n) = (((n) & 0xff) | (((u32)(type) & 0xff) << KMESH_PROTO_TYPE_WIDTH))
+#define SET_RET_MSG_TYPE(n, type) (n) = (((n)&0xff) | (((u32)(type)&0xff) << KMESH_PROTO_TYPE_WIDTH))

@ravjot07
Copy link
Contributor Author

related to, the CI use clang format. I think you can revert these white spaces added around &

-#define SET_RET_MSG_TYPE(n, type) (n) = (((n) & 0xff) | (((u32)(type) & 0xff) << KMESH_PROTO_TYPE_WIDTH))
+#define SET_RET_MSG_TYPE(n, type) (n) = (((n)&0xff) | (((u32)(type)&0xff) << KMESH_PROTO_TYPE_WIDTH))

ok @hzxuzhonghu i will try this once

@hzxuzhonghu
Copy link
Member

please update

@LiZhenCheng9527
Copy link
Collaborator

This has been modified #1241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants