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
ea1fa277
"git@gitlab.uni-hannover.de:esistoiamk/LIO-SAM.git" did not exist on "18ebdbe11a440909ba187fc77b747d90669fc6b5"
Commit
ea1fa277
authored
7 years ago
by
Matt Kwong
Browse files
Options
Downloads
Patches
Plain Diff
Add Kokoro metadata to BQ upload
parent
c7d9c804
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/run_tests/dockerize/build_docker_and_run_tests.sh
+3
-0
3 additions, 0 deletions
tools/run_tests/dockerize/build_docker_and_run_tests.sh
tools/run_tests/python_utils/upload_test_results.py
+7
-4
7 additions, 4 deletions
tools/run_tests/python_utils/upload_test_results.py
with
10 additions
and
4 deletions
tools/run_tests/dockerize/build_docker_and_run_tests.sh
+
3
−
0
View file @
ea1fa277
...
@@ -66,6 +66,9 @@ docker run \
...
@@ -66,6 +66,9 @@ docker run \
-e
"BUILD_ID=
$BUILD_ID
"
\
-e
"BUILD_ID=
$BUILD_ID
"
\
-e
"BUILD_URL=
$BUILD_URL
"
\
-e
"BUILD_URL=
$BUILD_URL
"
\
-e
"JOB_BASE_NAME=
$JOB_BASE_NAME
"
\
-e
"JOB_BASE_NAME=
$JOB_BASE_NAME
"
\
-e
"KOKORO_BUILD_NUMBER=
$KOKORO_BUILD_NUMBER
"
\
-e
"KOKORO_BUILD_URL=
$KOKORO_BUILD_URL
"
\
-e
"KOKORO_JOB_NAME=
$KOKORO_JOB_NAME
"
\
-i
$TTY_FLAG
\
-i
$TTY_FLAG
\
--sysctl
net.ipv6.conf.all.disable_ipv6
=
0
\
--sysctl
net.ipv6.conf.all.disable_ipv6
=
0
\
-v
~/.config/gcloud:/root/.config/gcloud
\
-v
~/.config/gcloud:/root/.config/gcloud
\
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/python_utils/upload_test_results.py
+
7
−
4
View file @
ea1fa277
...
@@ -50,10 +50,12 @@ _RESULTS_SCHEMA = [
...
@@ -50,10 +50,12 @@ _RESULTS_SCHEMA = [
def
_get_build_metadata
(
test_results
):
def
_get_build_metadata
(
test_results
):
"""
Add Jenkins build metadata to test_results based on environment variables set by Jenkins.
"""
"""
Add Jenkins/Kokoro build metadata to test_results based on environment
build_id
=
os
.
getenv
(
'
BUILD_ID
'
)
variables set by Jenkins/Kokoro.
build_url
=
os
.
getenv
(
'
BUILD_URL
'
)
"""
job_name
=
os
.
getenv
(
'
JOB_BASE_NAME
'
)
build_id
=
os
.
getenv
(
'
BUILD_ID
'
)
or
os
.
getenv
(
'
KOKORO_BUILD_NUMBER
'
)
build_url
=
os
.
getenv
(
'
BUILD_URL
'
)
or
os
.
getenv
(
'
KOKORO_BUILD_URL
'
)
job_name
=
os
.
getenv
(
'
JOB_BASE_NAME
'
)
or
os
.
getenv
(
'
KOKORO_JOB_NAME
'
)
if
build_id
:
if
build_id
:
test_results
[
'
build_id
'
]
=
build_id
test_results
[
'
build_id
'
]
=
build_id
...
@@ -62,6 +64,7 @@ def _get_build_metadata(test_results):
...
@@ -62,6 +64,7 @@ def _get_build_metadata(test_results):
if
job_name
:
if
job_name
:
test_results
[
'
job_name
'
]
=
job_name
test_results
[
'
job_name
'
]
=
job_name
def
upload_results_to_bq
(
resultset
,
bq_table
,
args
,
platform
):
def
upload_results_to_bq
(
resultset
,
bq_table
,
args
,
platform
):
"""
Upload test results to a BQ table.
"""
Upload test results to a BQ table.
...
...
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