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

feat: 原生适配 Apple M系列Mac构建机 #6495

Closed
2 tasks done
irwinsun opened this issue Apr 6, 2022 · 2 comments
Closed
2 tasks done

feat: 原生适配 Apple M系列Mac构建机 #6495

irwinsun opened this issue Apr 6, 2022 · 2 comments
Assignees
Labels
area/ci/agent 构建机Agent issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy help wanted Extra attention is needed kind/feat/tech 技术性特性 kind/version/sample 所属开源版本特性 sample/passed 开源验证通过 streams/doing stream环境开发中 streams/done stream 生产部署成功 streams/for gray stream 灰度环境部署成功 streams/for test stream 测试环境部署成功

Comments

@irwinsun
Copy link
Member

irwinsun commented Apr 6, 2022

背景:
现有devopsAgent 同时支持在 Intel CPU 和Apple M序列 CPU的Mac机型上运行。 但一些较底层的业务编译场景可能会受到影响,比如使用cmake编译器进行编译,会导致在M序列的Mac构建机上编译出来制品仍然属于X86_64架构,而非Arm64构架。
以下几个变量比较明显受到影响:
https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html
https://cmake.org/cmake/help/latest/variable/CMAKE_HOST_SYSTEM_PROCESSOR.html
https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html

期望:

  • 原生适配Apple M系列的Mac构建机的devopsAgent程序。

  • 验收标准, 简单在构建中使用Shell执行 uname -m 获得 arm64 而非 x86_64

发布:
image
这个需求发布时,需要在保存agentjre的地方添加 linux_arm64 ,linux_mips64 ,macos_arm64三个文件夹,文件夹下存放响应架构的jre才可正常使用。

注意:
因为macos的telegraf的监控指标采集中的 CPU,DISK 两个指标的采集依赖于 shirou的cgo开启具体可以参考
influxdata/telegraf#1484
influxdata/telegraf#4801
这两个issue
所以如果需要macos构建机的 CPU,DISK 两个指标 需要在对应架构如amd64和arm64上的macos机器使用mackfile中的 build_macos 自行编译,编译后放于保存agent的路径即可

@irwinsun irwinsun added help wanted Extra attention is needed area/ci/agent 构建机Agent issue kind/feat/tech 技术性特性 labels Apr 6, 2022
@irwinsun irwinsun changed the title feat: 原生适配 Apple Silicon 系列Mac构建机 feat: 原生适配 Apple M系列Mac构建机 Apr 7, 2022
@hingbong
Copy link
Contributor

这个页面能不能做成配置文件渲染,可以添加linux arm64/mips之类的,根据文件名的规则去下载构建机

@irwinsun
Copy link
Member Author

这个页面能不能做成配置文件渲染,可以添加linux arm64/mips之类的,根据文件名的规则去下载构建机

是的,目前就是要借这个需求,完善按架构下载。 目前内部开始有一些非标的系统,单独维护也存在一定的维护成本。

@bkci-bot bkci-bot added doing 开发中 for test Test environment in tencent has been deploy labels Apr 24, 2022
irwinsun added a commit that referenced this issue May 23, 2022
feat: 原生适配 Apple M系列Mac构建机 #6495
@bkci-bot bkci-bot added streams/for gray stream 灰度环境部署成功 for gray UAT environment in tencent has been deploy labels May 24, 2022
@irwinsun irwinsun added kind/version/sample 所属开源版本特性 sample/passed 开源验证通过 labels May 26, 2022
@bkci-bot bkci-bot added the streams/done stream 生产部署成功 label May 26, 2022
irwinsun added a commit that referenced this issue May 26, 2022
feat: 原生适配 Apple M系列Mac构建机 #6495
@bkci-bot bkci-bot added streams/for test stream 测试环境部署成功 streams/doing stream环境开发中 doing 开发中 and removed doing 开发中 labels May 30, 2022
@bkci-bot bkci-bot added doing 开发中 and removed doing 开发中 labels Aug 10, 2022
@bkci-bot bkci-bot added doing 开发中 and removed doing 开发中 labels Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci/agent 构建机Agent issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy help wanted Extra attention is needed kind/feat/tech 技术性特性 kind/version/sample 所属开源版本特性 sample/passed 开源验证通过 streams/doing stream环境开发中 streams/done stream 生产部署成功 streams/for gray stream 灰度环境部署成功 streams/for test stream 测试环境部署成功
Projects
None yet
Development

No branches or pull requests

4 participants