Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .kokoro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This directory contains kokoro configurations and associated scripts for tests
and workflows, like unit tests, which are replicated in other Node.JS
repositories.

To simplify maintenance these files are kept together in this directory.
9 changes: 5 additions & 4 deletions testing/README.md → system-test/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
This directory contains an integration test that confirms the basic functionality
of the profiler works on Compute Engine. In particular, this test confirms that
the agent can create and upload profiles from a Comput Engine VM, and that
these profiles contain symbolized samples from the benchmark application.
This directory contains an integration test that confirms the basic
functionality of the profiler works on Compute Engine. In particular, this test
confirms that the agent can create and upload profiles from a Compute Engine
VM, and that these profiles contain symbolized samples from the benchmark
application.

More specifically, this test:
1. Starts 3 Compute Engine VMs, one to test Node.js versions 6, 8, and 9.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ PROFILER="$HOME/cloud-profiler-nodejs/google-cloud-profiler-$VERSION.tgz"

TESTDIR="$HOME/test"
mkdir -p "$TESTDIR"
cp -r "testing/busybench" "$TESTDIR"
cp -r "system-test/busybench" "$TESTDIR"
cd "$TESTDIR/busybench"

retry npm install node-pre-gyp &>/dev/ttyS2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export GOOGLE_APPLICATION_CREDENTIALS="${SERVICE_KEY}"
# Move test to go path.
export GOPATH="$HOME/go"
mkdir -p "$GOPATH/src"
cp -R "testing" "$GOPATH/src/proftest"
cp -R "system-test" "$GOPATH/src/proftest"

# Run test.
cd "$GOPATH/src/proftest"
Expand Down
File renamed without changes.
21 changes: 21 additions & 0 deletions system-test/kokoro/continuous-v8-canary.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Location of the build script in this repository.
build_file: "cloud-profiler-nodejs/system-test/integration_test.sh"

env_vars {
key: "RUN_ONLY_V8_CANARY_TEST"
value: "true"
}
16 changes: 16 additions & 0 deletions system-test/kokoro/continuous.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Location of the build script in this repository.
build_file: "cloud-profiler-nodejs/system-test/integration_test.sh"
16 changes: 16 additions & 0 deletions system-test/kokoro/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Location of the build script in this repository.
build_file: "cloud-profiler-nodejs/system-test/integration_test.sh"
2 changes: 1 addition & 1 deletion tools/kokoro/continuous/continuous-v8-canary.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Location of the build script in this repository.
build_file: "cloud-profiler-nodejs/testing/integration_test.sh"
build_file: "cloud-profiler-nodejs/system-test/integration_test.sh"

env_vars {
key: "RUN_ONLY_V8_CANARY_TEST"
Expand Down
2 changes: 1 addition & 1 deletion tools/kokoro/continuous/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.

# Location of the build script in this repository.
build_file: "cloud-profiler-nodejs/testing/integration_test.sh"
build_file: "cloud-profiler-nodejs/system-test/integration_test.sh"
2 changes: 1 addition & 1 deletion tools/kokoro/presubmit/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.

# Location of the build script in this repository.
build_file: "cloud-profiler-nodejs/testing/integration_test.sh"
build_file: "cloud-profiler-nodejs/system-test/integration_test.sh"
2 changes: 1 addition & 1 deletion tools/kokoro/release/linux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.

# Location of the build script in this repository.
build_file: "cloud-profiler-nodejs/testing/integration_test.sh"
build_file: "cloud-profiler-nodejs/system-test/integration_test.sh"