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 cpuinfo panic on arm64 #97

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

saintube
Copy link
Member

Ⅰ. Describe what this PR does

revise getProcessorInfos()(in pkg/util/cpuinfo.go) logic on arm64 platform.

Ⅱ. Does this pull request fix one issue?

fixes #89 #90 .

Ⅲ. Describe how to verify it

expect no longer panic when running koordlet on arm64

Ⅳ. Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Apr 26, 2022

Codecov Report

Merging #97 (e923704) into main (8ad6cf9) will decrease coverage by 0.07%.
The diff coverage is 26.92%.

@@            Coverage Diff             @@
##             main      #97      +/-   ##
==========================================
- Coverage   44.26%   44.19%   -0.08%     
==========================================
  Files          72       73       +1     
  Lines        5946     5965      +19     
==========================================
+ Hits         2632     2636       +4     
- Misses       3019     3036      +17     
+ Partials      295      293       -2     
Flag Coverage Δ
unittests 44.19% <26.92%> (-0.08%) ⬇️

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

Impacted Files Coverage Δ
pkg/util/system/lscpu.go 0.00% <0.00%> (ø)
pkg/util/cpuinfo.go 71.53% <100.00%> (+3.07%) ⬆️

Continue to review full report at Codecov.

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

Signed-off-by: saintube <saintube@foxmail.com>
@zwzhang0107
Copy link
Contributor

/lgtm

@hormes
Copy link
Member

hormes commented Apr 26, 2022

/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hormes

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

The pull request process is described 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

@koordinator-bot koordinator-bot bot merged commit ccbad0c into koordinator-sh:main Apr 26, 2022
Copy link
Member

@jasonliu747 jasonliu747 left a comment

Choose a reason for hiding this comment

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

/lgtm

@jasonliu747 jasonliu747 linked an issue May 10, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants