Skip to content

Fix: make build should build kmeshctl#1419

Merged
kmesh-bot merged 3 commits intokmesh-net:mainfrom
brushax:make-fix
May 29, 2025
Merged

Fix: make build should build kmeshctl#1419
kmesh-bot merged 3 commits intokmesh-net:mainfrom
brushax:make-fix

Conversation

@brushax
Copy link
Copy Markdown
Contributor

@brushax brushax commented May 22, 2025

What type of PR is this?

/kind enhancement

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #1113

Follow up of #1214

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Copilot AI review requested due to automatic review settings May 22, 2025 16:40
@kmesh-bot kmesh-bot added the kind/enhancement New feature or request label May 22, 2025
@kmesh-bot kmesh-bot requested review from hzxuzhonghu and nlgwcy May 22, 2025 16:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that the kmeshctl binary is included in the build artifacts and install/uninstall workflows.

  • Adds copying of kmeshctl in the host staging script
  • Updates Makefile to install and remove the kmeshctl binary

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
hack/utils.sh Added cp /usr/bin/kmeshctl out/ in copy_to_host()
Makefile Included $(APPS4) (kmeshctl) in install/uninstall
Comments suppressed due to low confidence (2)

Makefile:177

  • [nitpick] The variable APPS4 is ambiguous. Rename it to something descriptive like KMEHSCTL_BIN or APPS_KMESHCTL to make its purpose clear.
$(call printlog, INSTALL, $(INSTALL_BIN)/$(APPS4))

Makefile:178

  • The build rule does not include a step to compile kmeshctl before installing it. Consider adding a build or go build command for kmeshctl so the binary exists when the install target runs.
$(QUIET) install -Dp -m 0500 $(APPS4) $(INSTALL_BIN)

hack/utils.sh Outdated
cp /usr/bin/kmesh-daemon out/
cp /usr/bin/kmesh-cni out/
cp /usr/bin/mdacore out/
cp /usr/bin/kmeshctl out/
Copy link

Copilot AI May 22, 2025

Choose a reason for hiding this comment

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

[nitpick] The copy_to_host function lists each binary explicitly. Consider iterating over an array of binary names to reduce duplication and simplify future additions.

Copilot uses AI. Check for mistakes.
@kmesh-bot kmesh-bot added size/S and removed size/XS labels May 22, 2025
@brushax brushax force-pushed the make-fix branch 2 times, most recently from 7c931c1 to d2b7ffa Compare May 22, 2025 18:07
@kmesh-bot kmesh-bot added size/XS and removed size/S labels May 22, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented May 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.33%. Comparing base (10e8eb3) to head (66582a1).
Report is 31 commits behind head on main.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fd6d19...66582a1. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

brushax and others added 3 commits May 23, 2025 20:09
Signed-off-by: Tom <yusencao@outlook.com>
Signed-off-by: Tom <yusencao@outlook.com>
Signed-off-by: Tom <yusencao@outlook.com>
Copy link
Copy Markdown
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

@lec-bit any other comment

@kmesh-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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

The pull request process is described here

Details 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

@LiZhenCheng9527
Copy link
Copy Markdown
Contributor

/lgtm

@kmesh-bot kmesh-bot added the lgtm label May 29, 2025
@kmesh-bot kmesh-bot merged commit baf9bf2 into kmesh-net:main May 29, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make build should build kmeshctl

6 participants