makefile: Add -buildvcs=false flag to go build

This PR adds the -buildvcs=false flag to the go build of checkmetrics.

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes 2023-06-28 19:03:37 +00:00
parent e94aaed3c7
commit b481ef1883
2 changed files with 9 additions and 6 deletions

View File

@ -16,6 +16,6 @@ description = "measure container lifecycle timings"
# within (inclusive) # within (inclusive)
checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result" checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
checktype = "mean" checktype = "mean"
midval = 0.54 midval = 0.42
minpercent = 10.0 minpercent = 15.0
maxpercent = 10.0 maxpercent = 15.0

View File

@ -8,6 +8,7 @@
set -o errexit set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
set -x
kata_tarball_dir="${2:-kata-artifacts}" kata_tarball_dir="${2:-kata-artifacts}"
metrics_dir="$(dirname "$(readlink -f "$0")")" metrics_dir="$(dirname "$(readlink -f "$0")")"
@ -94,7 +95,7 @@ function check_metrics() {
sudo make install sudo make install
popd popd
local cm_base_file="${checkmetrics_config_dir}/checkmetrics-json-${hypervisor}-$(uname -n).toml" local cm_base_file="${checkmetrics_config_dir}/checkmetrics-json-clh-kata-metric8.toml"
checkmetrics --debug --percentage --basefile "${cm_base_file}" --metricsdir "${results_dir}" checkmetrics --debug --percentage --basefile "${cm_base_file}" --metricsdir "${results_dir}"
cm_result=$? cm_result=$?
if [ "${cm_result}" != 0 ]; then if [ "${cm_result}" != 0 ]; then
@ -110,6 +111,10 @@ function run_test_launchtimes() {
exit 0 exit 0
create_symbolic_links create_symbolic_links
bash tests/metrics/time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n 20 bash tests/metrics/time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n 20
if [ "${hypervisor}" = "clh" ]; then
check_metrics
fi
} }
function run_test_memory_usage() { function run_test_memory_usage() {
@ -139,8 +144,6 @@ function main() {
run-test-memory-usage-inside-container) run_test_memory_usage_inside_container ;; run-test-memory-usage-inside-container) run_test_memory_usage_inside_container ;;
*) >&2 die "Invalid argument" ;; *) >&2 die "Invalid argument" ;;
esac esac
check_metrics
} }
main "$@" main "$@"