Skip to content

feat: makefile project engineering design and build design#2161

Open
cubxxw wants to merge 12 commits intosealerio:mainfrom
cubxxw:feature/makefile-super
Open

feat: makefile project engineering design and build design#2161
cubxxw wants to merge 12 commits intosealerio:mainfrom
cubxxw:feature/makefile-super

Conversation

@cubxxw
Copy link
Collaborator

@cubxxw cubxxw commented Apr 1, 2023

Signed-off-by: Xinwei Xiong(cubxxw) 3293172751nss@gmail.com

Describe what this PR does / why we need it

Does this pull request fix one issue?

Fixes #2148

Describe how you did it

Describe how to verify it

Special notes for reviews

@cubxxw cubxxw closed this Apr 1, 2023
@cubxxw cubxxw reopened this Apr 3, 2023
@github-actions github-actions bot added the ImageBuilding related to all staff with image building label Apr 3, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.77%. Comparing base (150c4cb) to head (d093afc).
⚠️ Report is 21 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

❗ There is a different number of reports uploaded between BASE (150c4cb) and HEAD (d093afc). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (150c4cb) HEAD (d093afc)
unit-tests 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #2161       +/-   ##
==========================================
- Coverage   19.93%   8.77%   -11.17%     
==========================================
  Files          98     165       +67     
  Lines        9220   13805     +4585     
==========================================
- Hits         1838    1211      -627     
- Misses       7128   12438     +5310     
+ Partials      254     156       -98     
Flag Coverage Δ
e2e-tests 8.77% <ø> (?)
unit-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@mouuii
Copy link

mouuii commented Apr 4, 2023

rebase to serval commits

@cubxxw cubxxw force-pushed the feature/makefile-super branch from 209813e to 0736b65 Compare April 4, 2023 14:12
@starnop
Copy link
Collaborator

starnop commented Apr 28, 2023

@cubxxw Cloud you please add more description for this PR?

cubxxw added 9 commits May 6, 2023 19:38
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
makefile:What is needed to preserve it

save makefile

add makefile go.build as dirty

Add the images and copyright portions of the makefile

Clear the output directory to tools.clean

add help info for samll makefile

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>

The help information is built

End help, Color and case

Complete the makefile tools section

Finish implementing the code generator

Initialize Initialize the contributor file

Remove some irrelevant directories

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>

fix: part about build issues

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>

fix: part about build issues

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
… of the script

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
@cubxxw cubxxw force-pushed the feature/makefile-super branch from aea8446 to d0ef7e1 Compare May 6, 2023 15:00
@cubxxw cubxxw changed the title 【draft】Design pre-version storage feat: makefile project engineering design and build design May 6, 2023
@cubxxw cubxxw marked this pull request as ready for review May 6, 2023 15:05
@cubxxw
Copy link
Collaborator Author

cubxxw commented May 6, 2023

After completing the basic tests, I will create a design document in the form of Google Docs and sync it to an issue.

cubxxw added 3 commits May 7, 2023 15:50
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
@cubxxw
Copy link
Collaborator Author

cubxxw commented May 7, 2023

# sealer build use BUILD_TOOLS
BUILD_TOOLS ?= golangci-lint goimports addlicense deepcopy-gen conversion-gen ginkgo go-junit-report
# Code analysis tools
ANALYSIS_TOOLS = golangci-lint goimports golines go-callvis kube-score
Copy link
Member

Choose a reason for hiding this comment

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

do we need all those tools ?

# docker registry: registry.example.com/namespace/image:tag as: registry.hub.docker.com/cubxxw/<image-name>:<tag>
#

DOCKER := docker
Copy link
Member

Choose a reason for hiding this comment

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

what does this image.mk do? do we need it ?

}
//TODO!
// missinfo := []string{}
// if OutputInfo.KubernetesVersion == nil {
Copy link
Member

Choose a reason for hiding this comment

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

version just show sealer git info. no need to include cluster info. or we can support it later by using another cmd.

return versionCmd
}

func PrintInfo() error {
Copy link
Member

Choose a reason for hiding this comment

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

could we split those code optimization from this pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Clusterfile ImageBuilding related to all staff with image building

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Sealer Makefile optimization

5 participants