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
c87cbba3
Commit
c87cbba3
authored
7 years ago
by
Matt Kwong
Browse files
Options
Downloads
Patches
Plain Diff
Add return code as a field in BQ results uplaod
parent
e9089624
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_tests/python_utils/upload_test_results.py
+2
-0
2 additions, 0 deletions
tools/run_tests/python_utils/upload_test_results.py
with
2 additions
and
0 deletions
tools/run_tests/python_utils/upload_test_results.py
+
2
−
0
View file @
c87cbba3
...
...
@@ -49,6 +49,7 @@ _RESULTS_SCHEMA = [
(
'
elapsed_time
'
,
'
FLOAT
'
,
'
How long test took to run
'
),
(
'
cpu_estimated
'
,
'
FLOAT
'
,
'
Estimated CPU usage of test
'
),
(
'
cpu_measured
'
,
'
FLOAT
'
,
'
Actual CPU usage of test
'
),
(
'
return_code
'
,
'
INTEGER
'
,
'
Exit code of test
'
),
]
...
...
@@ -96,6 +97,7 @@ def upload_results_to_bq(resultset, bq_table, args, platform):
test_results
[
'
language
'
]
=
args
.
language
[
0
]
test_results
[
'
platform
'
]
=
platform
test_results
[
'
result
'
]
=
result
.
state
test_results
[
'
return_code
'
]
=
result
.
returncode
test_results
[
'
test_name
'
]
=
shortname
test_results
[
'
timestamp
'
]
=
time
.
strftime
(
'
%Y-%m-%d %H:%M:%S
'
)
...
...
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