spotify / XCMetrics

XCMetrics is the easiest way to collect Xcode build metrics and improve developer productivity.
https://xcmetrics.io
Other
1.1k stars 77 forks source link

Some fields are empty in the `build_hosts` table #104

Open jkmathew opened 9 months ago

jkmathew commented 9 months ago

I am seeing some fields like host_os, host_architecture, host_os_version, cpu_model are empty in the build_hosts table. Also, integer fields like cpu_count, memory_total_mb, swap_total_mb etc are 0. Is this because of some configuration issue or something I am doing wrong?

Another issue I am seeing is CPU model is Apple M1 Pro but the CPU architecture is x86_64, is this because the developer enabled Rosseta for their Xcode? Screenshot 2023-09-19 at 10 46 13

BalestraPatrick commented 9 months ago

@jkmathew Most of the hardware information are being fetched in this class: https://github.com/spotify/XCMetrics/blob/c045eb9769e62a51bdf7d1d7bb7cbe0f2acb34dc/Sources/XCMetricsClient/Hardware%20Management/HardwareFactsFetcher.swift

We use mostly standard commands to collect the hardware information, so you should be able to easily reproduce if those commands are erroring out or producing invalid data and aren't sent correctly to the service.

Another issue I am seeing is CPU model is Apple M1 Pro but the CPU architecture is x86_64, is this because the developer enabled Rosseta for their Xcode?

Yes, that's correct.