ci: removing CI environment variable caching setup (#36936)
A caching mechanism was put in place to prevent repeated calls to the Github API. As the CI setup no longer relies on calls to the Github API, this caching is no longer necessary. It was discovered that this caching was causing a contention issue for saucelabs testing as the same tunnel was being reused for multiple jobs simultaneously. With this caching mechanism removed the jobs will once again run via separate tunnels. PR Close #36936
This commit is contained in:
parent
63a28d6805
commit
fc6c3ae97d
@ -5,13 +5,6 @@ readonly projectDir=$(realpath "$(dirname ${BASH_SOURCE[0]})/..")
|
|||||||
readonly envHelpersPath="$projectDir/.circleci/env-helpers.inc.sh";
|
readonly envHelpersPath="$projectDir/.circleci/env-helpers.inc.sh";
|
||||||
readonly bashEnvCachePath="$projectDir/.circleci/bash_env_cache";
|
readonly bashEnvCachePath="$projectDir/.circleci/bash_env_cache";
|
||||||
|
|
||||||
if [ -f $bashEnvCachePath ]; then
|
|
||||||
# Since a bash env cache is present, load this into the $BASH_ENV
|
|
||||||
cat "$bashEnvCachePath" >> $BASH_ENV;
|
|
||||||
echo "BASH environment loaded from cached value at $bashEnvCachePath";
|
|
||||||
else
|
|
||||||
# Since no bash env cache is present, build out $BASH_ENV values.
|
|
||||||
|
|
||||||
# Load helpers and make them available everywhere (through `$BASH_ENV`).
|
# Load helpers and make them available everywhere (through `$BASH_ENV`).
|
||||||
source $envHelpersPath;
|
source $envHelpersPath;
|
||||||
echo "source $envHelpersPath;" >> $BASH_ENV;
|
echo "source $envHelpersPath;" >> $BASH_ENV;
|
||||||
@ -83,10 +76,6 @@ else
|
|||||||
# **NOTE**: When updating the commit SHA, also update the cache key in the CircleCI `config.yml`.
|
# **NOTE**: When updating the commit SHA, also update the cache key in the CircleCI `config.yml`.
|
||||||
setPublicVar COMPONENTS_REPO_COMMIT "598db096e668aa7e9debd56eedfd127b7a55e371"
|
setPublicVar COMPONENTS_REPO_COMMIT "598db096e668aa7e9debd56eedfd127b7a55e371"
|
||||||
|
|
||||||
# Save the created BASH_ENV into the bash env cache file.
|
|
||||||
cat "$BASH_ENV" >> $bashEnvCachePath;
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
# Decrypt GCP Credentials and store them as the Google default credentials.
|
# Decrypt GCP Credentials and store them as the Google default credentials.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user