-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fingerprint kernel architecture name #13182
Conversation
Vercel requires an explicit approval when deploying code from PRs, not a test failure 😄 I will double check with team with regards to the naming here, in the meantime, would mind adding a Thanks for the PR! |
@shantanugadgil I spoke with the team and they brought up a good point, which is that these naming are really standardized and the same ISA can have even more than two common representations. For example, One suggestion is to instead set node metadata values for the architectures that you need. How does that sound for you? |
I agree and disagree. Let me explain... I agree to the part that "32-bit" was That said, I still somehow want the access to the classic names. In hindsight, I see my PR was Linux specific and should be updated. I do not agree completely with what Golang has done with the names. There was a reference of nomenclature before. NetBSD's list of platforms was quite exhaustive and should have been factored into the I don't have big problem with adding node meta variables, though it upsets the workflow as the node metadata is set in If this "classic arch" variable was available, I would need to make changes only in the Nomad job file and re-run the job. |
after thinking about this a bit more ... what I essentially need/want is (pseudo-code): if (linux) {
attr.cpu.machine=$(uname -m)
}
|
Ah yeah, that's a great point. To make the implementation even more robust and support other operating systems, you can read this value from the More specifically, you can do this in the And then, just one last thing missing in the PR would to document this new attribute in this page: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shantanugadgil!
I just pushed a commit to keep the attribute table in alphabetical order.
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
first attempt at classic cpu architecture names while fingerprinting the cpu.
ref: #13181
Note as mentioned in the issue, I am fine if folks can come up with a name different that "classic" :)