Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Fixed a wrong command for setting app/use_runtime_builders config (#331)
Browse files Browse the repository at this point in the history
* Fixed a wrong command for setting app/use_runtime_builders config

* Pass GOOGLE_PROJECT_ID to CollectDeploymentLatencyTest
  • Loading branch information
Takashi Matsuo authored Jul 12, 2017
1 parent 2fee1e4 commit 8657998
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions perf-dashboard/deployment-latency/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ steps:
- name: ${_TEST_RUNNER}
env:
- GCLOUD_TRACK=${_GCLOUD_TRACK}
- GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
class CollectDeploymentLatencyTest extends \PHPUnit_Framework_TestCase
{
const DEPLOYMENT_MAX_RETRY = 5;
const PROJECT_ID = 'php-perf-dash';
const DATASET_ID = 'deployment_latency';
const TABLE_ID = 'flex_deployments';

Expand Down Expand Up @@ -76,7 +75,7 @@ public function testDeploymentLatency()
. str_replace('.', '', $reportName)
. ' --no-stop-previous-version --no-promote';
$configCmd = 'gcloud config set app/use_runtime_builders '
. $type === 'xrt' ? 'false' : 'true';
. ($type === 'xrt' ? 'false' : 'true');
self::execWithError($configCmd, 'runtime-builders-config');
$latency = 0.0;
while ($failureCount < self::DEPLOYMENT_MAX_RETRY) {
Expand Down Expand Up @@ -121,7 +120,7 @@ private static function createBigQueryClient()

return new BigQueryClient(
[
'projectId' => self::PROJECT_ID,
'projectId' => getenv('GOOGLE_PROJECT_ID'),
'accessToken' => $token['access_token']
]
);
Expand Down
2 changes: 1 addition & 1 deletion scripts/record_deployment_latency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ fi
gcloud -q container builds submit perf-dashboard/deployment-latency\
--timeout 7200 \
--config perf-dashboard/deployment-latency/cloudbuild.yaml \
--substitutions _TEST_RUNNER="${TEST_RUNNER}",_GCLOUD_TRACK="${GCLOUD_TRACK}"
--substitutions _TEST_RUNNER="${TEST_RUNNER}",_GCLOUD_TRACK="${GCLOUD_TRACK}",_GOOGLE_PROJECT_ID=${GOOGLE_PROJECT_ID}

0 comments on commit 8657998

Please sign in to comment.