Skip to content

feature: get cpu architecture info#7295

Closed
lengrongfu wants to merge 2 commits intocontainerd:mainfrom
lengrongfu:feat_cpuarchitecture_info
Closed

feature: get cpu architecture info#7295
lengrongfu wants to merge 2 commits intocontainerd:mainfrom
lengrongfu:feat_cpuarchitecture_info

Conversation

@lengrongfu
Copy link
Contributor

Signed-off-by: lengrongfu [email protected]

ref: #4109

@k8s-ci-robot
Copy link

Hi @lengrongfu. Thanks for your PR.

I'm waiting for a containerd 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.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@lengrongfu lengrongfu force-pushed the feat_cpuarchitecture_info branch from b515dfa to 1958c8a Compare August 16, 2022 03:44
@lengrongfu lengrongfu force-pushed the feat_cpuarchitecture_info branch 2 times, most recently from 45e0a8e to a7e4e23 Compare August 16, 2022 06:11
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

Left some thoughts/questions

@lengrongfu lengrongfu force-pushed the feat_cpuarchitecture_info branch from a7e4e23 to a81c041 Compare August 20, 2022 17:15
go.mod Outdated
require (
github.com/AdaLogics/go-fuzz-headers v0.0.0-20220706123152-fef3fe1bab07
github.com/Microsoft/go-winio v0.5.2
github.com/agiledragon/gomonkey/v2 v2.8.0
Copy link
Member

@AkihiroSuda AkihiroSuda Aug 20, 2022

Choose a reason for hiding this comment

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

I don’t think we want to introduce this dependency.
Probably hard to debug potential issues

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just for auxiliary unit testing, without this, I can't think of any other way to mock some functions inside.

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Please see my comments above

@lengrongfu lengrongfu force-pushed the feat_cpuarchitecture_info branch 2 times, most recently from f567be9 to 9914bfe Compare August 20, 2022 18:58
Signed-off-by: lengrongfu <[email protected]>
Signed-off-by: lengrongfu <[email protected]>
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.

5 participants