Skip to content

Commit

Permalink
chore: fix nightly samples check (#1976)
Browse files Browse the repository at this point in the history
* chore: fix nighly samples check

* chore:  test if teh new setup works

* chore: add regular presubmit samples check
  • Loading branch information
Neenu1995 committed Apr 8, 2022
1 parent eab45ff commit f9f7abd
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 252 deletions.
30 changes: 0 additions & 30 deletions .kokoro/continuous/java11-samples.cfg

This file was deleted.

33 changes: 0 additions & 33 deletions .kokoro/continuous/java8-samples.cfg

This file was deleted.

30 changes: 0 additions & 30 deletions .kokoro/nightly/java11-samples.cfg

This file was deleted.

33 changes: 0 additions & 33 deletions .kokoro/nightly/java8-samples.cfg

This file was deleted.

30 changes: 0 additions & 30 deletions .kokoro/presubmit/java11-samples.cfg

This file was deleted.

33 changes: 0 additions & 33 deletions .kokoro/presubmit/java8-samples.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion .kokoro/presubmit/samples.cfg
Expand Up @@ -29,5 +29,5 @@ env_vars: {

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-docs-samples-service-account"
value: "java-docs-samples-service-account, java-bigquery-samples-secrets"
}
4 changes: 4 additions & 0 deletions .kokoro/run_samples_resource_cleanup.sh
Expand Up @@ -30,6 +30,10 @@ source ${scriptDir}/common.sh

# Setup required env variables
source ${KOKORO_GFILE_DIR}/secret_manager/java-bigquery-samples-secrets
# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
fi
echo "********** Successfully Set All Environment Variables **********"

# Move into the samples directory
Expand Down
55 changes: 0 additions & 55 deletions .kokoro/run_samples_tests.sh

This file was deleted.

9 changes: 2 additions & 7 deletions owlbot.py
Expand Up @@ -17,14 +17,9 @@
import synthtool.languages.java as java

java.common_templates(excludes=[
'.kokoro/continuous/java8-samples.cfg',
'.kokoro/continuous/java11-samples.cfg',
'.kokoro/nightly/java8-samples.cfg',
'.kokoro/nightly/java11-samples.cfg',
'.kokoro/nightly/samples.cfg',
'.kokoro/presubmit/java8-samples.cfg',
'.kokoro/presubmit/java11-samples.cfg',
'.kokoro/presubmit/samples.cfg',
'.kokoro/dependencies.sh',
'codecov.yaml',
'renovate.json',
])
])

0 comments on commit f9f7abd

Please sign in to comment.