<commit_before>#!/usr/bin/env bash

set -e

export GOOGLE_CREDENTIALS_FILE="/tmp/google-account.json"
export GCLOUD_PROJECT="terraform-ci-acc-tests"
export TF_ACC=1
export GOOGLE_REGION="us-central1"
# TODO actually use a separate project for xpn resources
export GOOGLE_XPN_HOST_PROJECT="man-i-wish-i-was-a-real-project"
# Setup GOPATH
export GOPATH=${PWD}/go

# CI sets the contents of our json account secret in our environment; dump it
# to disk for use in tests.
echo "${google_json_account}" > /tmp/google-account.json

set -x

# Create GOPATH structure
mkdir -p "${GOPATH}/src/github.com/terraform-providers"
ln -s "${PWD}/terraform-provider-google" "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google"

cd "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google"
#
go test -v ./google -parallel 16 -run '^TestAcc'<commit_msg>Add a timeout<commit_after>#!/usr/bin/env bash

set -e

export GOOGLE_CREDENTIALS_FILE="/tmp/google-account.json"
export GCLOUD_PROJECT="terraform-ci-acc-tests"
export TF_ACC=1
export GOOGLE_REGION="us-central1"
# TODO actually use a separate project for xpn resources
export GOOGLE_XPN_HOST_PROJECT="man-i-wish-i-was-a-real-project"
# Setup GOPATH
export GOPATH=${PWD}/go

# CI sets the contents of our json account secret in our environment; dump it
# to disk for use in tests.
echo "${google_json_account}" > /tmp/google-account.json

set -x

# Create GOPATH structure
mkdir -p "${GOPATH}/src/github.com/terraform-providers"
ln -s "${PWD}/terraform-provider-google" "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google"

cd "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google"
#
go test -v ./google -parallel 16 -run '^TestAcc' -timeout 120m
{'fraction_non_alphanumeric': 0.13184931506849315, 'fraction_numerical': 0.006278538812785388, 'mean_word_length': 5.086805555555555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '479506', 'n_tokens_mistral': 632, 'n_tokens_neox': 614, 'n_words': 147}