From a265c6d6b23f05e7eb2aec0891336529e1ac350c Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 27 Sep 2021 10:36:39 +0200 Subject: [PATCH] Log info about mac workers in the kokoro mac jobs. (#27471) * remove useless option: prepare_build_macos_rc is always sourced * print info about mac workers to the log --- .../helper_scripts/prepare_build_macos_rc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc index 27ef037313f..bd95a43a94f 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc +++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc @@ -1,4 +1,4 @@ -#!/bin/bash -ex +#!/bin/bash # Copyright 2017 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,6 +14,18 @@ # limitations under the License. # Source this rc script to prepare the environment for macos builds +# Print basic info about the mac worker +echo "kokoro pool: \"$KOKORO_JOB_POOL\"" +echo "OS: $(sw_vers -productName) $(sw_vers -productVersion) $(sw_vers -buildVersion)" +echo "CPU type: $(sysctl -n machdep.cpu.brand_string)" +echo "CPU: $(sysctl -n machdep.cpu.vendor) $(uname -m) Family $(sysctl -n machdep.cpu.family) Model $(sysctl -n machdep.cpu.brand_string)" +echo "CPU Cores: $(sysctl -n hw.ncpu)" +echo "Memory: $(sysctl -n hw.memsize)" + +# Info on disk usage and mounted volumes +mount +df -h /tmpfs / + # show original open file limit values launchctl limit maxfiles ulimit -a