kiteco-public/scripts/ci_master_only.sh
2021-12-31 23:54:19 -08:00

23 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# JSON_STATS=$PWD/kite-completions-performance.json
# go build ./kite-go/lang/python/pythoncomplete/offline/cmds/performancetest
# ./performancetest --json "$JSON_STATS" >/dev/null 2>&1
# gzip "$JSON_STATS"
# aws s3 cp "${JSON_STATS}.gz" "s3://kite-offline-metrics/model-performance/$(date -u +%Y-%m-%d-%H%M%S).json.gz"
# RECALL_STATS=$PWD/kite-completions-recall.json
# go build ./kite-go/lang/python/pythoncomplete/offline/cmds/recalltest
# ./recalltest kite-go/lang/python/pythoncomplete/recalltest/samples_3347.json 1000 --json "$RECALL_STATS" >/dev/null 2>&1
# cp $RECALL_STATS ${TRAVIS_BUILD_DIR}/recalls_$(date -u +%Y_%m_%d).json # We copy the recall results to build dir to try to avoid recomputing them during the go unit test
# gzip "$RECALL_STATS"
# aws s3 cp "${RECALL_STATS}.gz" "s3://kite-offline-metrics/model-recall/$(date -u +%Y-%m-%d-%H%M%S).json.gz"
slow_pkgs=$(find ./kite-go ./kite-golib ./local-pipelines -type f -and -iname \*.go -and -exec grep -q '+build slow' {} \; -and -exec bash -c 'echo $(dirname {})/' \;)
scripts/limitci_linux.sh '\.go$' "go test -v -tags slow -timeout 60m $slow_pkgs"
# this is failing, @juan to look (see #11599)
# sudo apt-get install python3-venv
# local-pipelines/lexical/train/scripts/ci_test_searchconfiggen.sh