Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
ae35546d
Commit
ae35546d
authored
9 years ago
by
Stanley Cheung
Browse files
Options
Downloads
Plain Diff
Merge pull request #1497 from donnadionne/test-log
Test log
parents
096528d6
71cbac4b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/gce_setup/cloud_prod_runner.sh
+6
-5
6 additions, 5 deletions
tools/gce_setup/cloud_prod_runner.sh
tools/gce_setup/interop_test_runner.sh
+4
-3
4 additions, 3 deletions
tools/gce_setup/interop_test_runner.sh
with
10 additions
and
8 deletions
tools/gce_setup/cloud_prod_runner.sh
+
6
−
5
View file @
ae35546d
...
...
@@ -32,7 +32,7 @@ thisfile=$(readlink -ne "${BASH_SOURCE[0]}")
current_time
=
$(
date
"+%Y-%m-%d-%H-%M-%S"
)
result_file_name
=
cloud_prod_result.
$current_time
.html
echo
$result_file_name
log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/log_history
log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/log
/cloud_prod_log
_history
main
()
{
source
grpc_docker.sh
...
...
@@ -46,10 +46,10 @@ main() {
log_file_name
=
cloud_
{
$test_case
}
_
{
$client
}
.txt
if
grpc_cloud_prod_test
$test_case
grpc-docker-testclients
$client
>
/tmp/
$log_file_name
2>&1
then
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/log_history/
$log_file_name
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/
cloud_prod_
log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', true, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
else
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/log_history/
$log_file_name
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/
cloud_prod_
log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', false, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
fi
done
...
...
@@ -61,10 +61,10 @@ main() {
log_file_name
=
cloud_
{
$test_case
}
_
{
$client
}
.txt
if
grpc_cloud_prod_auth_test
$test_case
grpc-docker-testclients
$client
>
/tmp/
$log_file_name
2>&1
then
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/log_history/
$log_file_name
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/
cloud_prod_
log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', true, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
else
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/log_history/
$log_file_name
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/
cloud_prod_
log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', false, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
fi
done
...
...
@@ -72,6 +72,7 @@ main() {
if
[[
"
${
BASH_SOURCE
[0]
}
"
==
"
${
0
}
"
]]
;
then
cat
pre.html /tmp/cloud_prod_result.txt post.html
>
/tmp/cloud_prod_result.html
gsutil
cp
/tmp/cloud_prod_result.txt gs://stoked-keyword-656-output/cloud_prod_result.txt
gsutil
cp
-R
gs://stoked-keyword-656-output/cloud_prod_log_history gs://stoked-keyword-656-output/log
gsutil
cp
/tmp/cloud_prod_result.html gs://stoked-keyword-656-output/cloud_prod_result.html
gsutil
cp
/tmp/cloud_prod_result.html gs://stoked-keyword-656-output/result_history/
$result_file_name
rm
/tmp/cloud_prod_result.txt
...
...
This diff is collapsed.
Click to expand it.
tools/gce_setup/interop_test_runner.sh
+
4
−
3
View file @
ae35546d
...
...
@@ -32,7 +32,7 @@ thisfile=$(readlink -ne "${BASH_SOURCE[0]}")
current_time
=
$(
date
"+%Y-%m-%d-%H-%M-%S"
)
result_file_name
=
interop_result.
$current_time
.html
echo
$result_file_name
log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/log_history
log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/log
/interop_log
_history
main
()
{
source
grpc_docker.sh
...
...
@@ -48,10 +48,10 @@ main() {
log_file_name
=
interop_
{
$test_case
}
_
{
$client
}
_
{
$server
}
.txt
if
grpc_interop_test
$test_case
grpc-docker-testclients
$client
grpc-docker-server
$server
>
/tmp/
$log_file_name
2>&1
then
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/log_history/
$log_file_name
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/
inteorp_
log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', '
$server
', true, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/interop_result.txt
else
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/log_history/
$log_file_name
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/
interop_
log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', '
$server
', false, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/interop_result.txt
fi
done
...
...
@@ -60,6 +60,7 @@ main() {
if
[[
"
${
BASH_SOURCE
[0]
}
"
==
"
${
0
}
"
]]
;
then
cat
pre.html /tmp/interop_result.txt post.html
>
/tmp/interop_result.html
gsutil
cp
/tmp/interop_result.txt gs://stoked-keyword-656-output/interop_result.txt
gsutil
cp
-R
gs://stoked-keyword-656-output/interop_log_history gs://stoked-keyword-656-output/log
gsutil
cp
/tmp/interop_result.html gs://stoked-keyword-656-output/interop_result.html
gsutil
cp
/tmp/interop_result.html gs://stoked-keyword-656-output/result_history/
$result_file_name
rm
/tmp/interop_result.txt
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment