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
16bd7f36
Commit
16bd7f36
authored
9 years ago
by
Donna Dionne
Browse files
Options
Downloads
Patches
Plain Diff
Modifying test result and log storage for better keeping of test history.
parent
452af9d6
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
+11
-19
11 additions, 19 deletions
tools/gce_setup/cloud_prod_runner.sh
tools/gce_setup/interop_test.sh
+2
-2
2 additions, 2 deletions
tools/gce_setup/interop_test.sh
with
13 additions
and
21 deletions
tools/gce_setup/cloud_prod_runner.sh
+
11
−
19
View file @
16bd7f36
...
...
@@ -29,11 +29,8 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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
pass_log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/log/cloud_prod_pass_log_history
fail_log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/log/cloud_prod_fail_log_history
cur
=
$(
date
"+%Y-%m-%d-%H-%M-%S"
)
log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/prod_result/prod/
$cur
/logs
main
()
{
source
grpc_docker.sh
...
...
@@ -47,12 +44,12 @@ 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/cloud_prod_pass_log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', true, '<a href="
$pass_log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
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/cloud_prod_fail_log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', false, '<a href="
$fail_log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
echo
" ['
$test_case
', '
$client
', 'prod', false, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
fi
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/prod_result/prod/
$cur
/logs/
$log_file_name
rm
/tmp/
$log_file_name
done
done
for
test_case
in
"
${
auth_test_cases
[@]
}
"
...
...
@@ -62,24 +59,19 @@ 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/cloud_prod_pass_log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', true, '<a href="
$pass_log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
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/cloud_prod_fail_log_history/
$log_file_name
echo
" ['
$test_case
', '
$client
', 'prod', false, '<a href="
$fail_log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
echo
" ['
$test_case
', '
$client
', 'prod', false, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/cloud_prod_result.txt
fi
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/prod_result/prod/
$cur
/logs/
$log_file_name
rm
/tmp/
$log_file_name
done
done
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_pass_log_history gs://stoked-keyword-656-output/log
gsutil
cp
-R
gs://stoked-keyword-656-output/cloud_prod_fail_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
gsutil
cp
/tmp/cloud_prod_result.html gs://stoked-keyword-656-output/prod_result/prod/
$cur
/cloud_prod_result.html
rm
/tmp/cloud_prod_result.txt
rm
/tmp/cloud_prod_result.html
rm
/tmp/cloud
*
.txt
fi
}
...
...
This diff is collapsed.
Click to expand it.
tools/gce_setup/interop_test.sh
+
2
−
2
View file @
16bd7f36
...
...
@@ -34,7 +34,7 @@ client_vm=$2
server_vm
=
$3
result
=
interop_result.
$1
cur
=
$(
date
"+%Y-%m-%d-%H-%M-%S"
)
log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/interop_result/
$test_case
/
$cur
log_link
=
https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/interop_result/
$test_case
/
$cur
/logs
main
()
{
source
grpc_docker.sh
...
...
@@ -51,7 +51,7 @@ main() {
else
echo
" ['
$test_case
', '
$client
', '
$server
', false, '<a href="
$log_link
/
$log_file_name
">log</a>'],"
>>
/tmp/
$result
.txt
fi
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/interop_result/
$test_case
/
$cur
/
$log_file_name
gsutil
cp
/tmp/
$log_file_name
gs://stoked-keyword-656-output/interop_result/
$test_case
/
$cur
/
logs/
$log_file_name
rm
/tmp/
$log_file_name
done
done
...
...
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