Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
80cf4b2d
Commit
80cf4b2d
authored
Sep 16, 2021
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export pipeline_url with test stats
parent
84791752
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
qa/qa/support/formatters/test_stats_formatter.rb
qa/qa/support/formatters/test_stats_formatter.rb
+1
-0
qa/spec/support/formatters/test_stats_formatter_spec.rb
qa/spec/support/formatters/test_stats_formatter_spec.rb
+3
-0
No files found.
qa/qa/support/formatters/test_stats_formatter.rb
View file @
80cf4b2d
...
@@ -76,6 +76,7 @@ module QA
...
@@ -76,6 +76,7 @@ module QA
run_time:
(
example
.
execution_result
.
run_time
*
1000
).
round
,
run_time:
(
example
.
execution_result
.
run_time
*
1000
).
round
,
retry_attempts:
example
.
metadata
[
:retry_attempts
]
||
0
,
retry_attempts:
example
.
metadata
[
:retry_attempts
]
||
0
,
job_url:
QA
::
Runtime
::
Env
.
ci_job_url
,
job_url:
QA
::
Runtime
::
Env
.
ci_job_url
,
pipeline_url:
env
(
'CI_PIPELINE_URL'
),
pipeline_id:
env
(
'CI_PIPELINE_ID'
)
pipeline_id:
env
(
'CI_PIPELINE_ID'
)
}
}
}
}
...
...
qa/spec/support/formatters/test_stats_formatter_spec.rb
View file @
80cf4b2d
...
@@ -11,6 +11,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
...
@@ -11,6 +11,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
let
(
:ci_timestamp
)
{
"2021-02-23T20:58:41Z"
}
let
(
:ci_timestamp
)
{
"2021-02-23T20:58:41Z"
}
let
(
:ci_job_name
)
{
"test-job 1/5"
}
let
(
:ci_job_name
)
{
"test-job 1/5"
}
let
(
:ci_job_url
)
{
"url"
}
let
(
:ci_job_url
)
{
"url"
}
let
(
:ci_pipeline_url
)
{
"url"
}
let
(
:ci_pipeline_id
)
{
"123"
}
let
(
:ci_pipeline_id
)
{
"123"
}
let
(
:run_type
)
{
'staging-full'
}
let
(
:run_type
)
{
'staging-full'
}
let
(
:reliable
)
{
'false'
}
let
(
:reliable
)
{
'false'
}
...
@@ -47,6 +48,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
...
@@ -47,6 +48,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
run_time:
0
,
run_time:
0
,
retry_attempts:
0
,
retry_attempts:
0
,
job_url:
ci_job_url
,
job_url:
ci_job_url
,
pipeline_url:
ci_pipeline_url
,
pipeline_id:
ci_pipeline_id
pipeline_id:
ci_pipeline_id
}
}
}
}
...
@@ -103,6 +105,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
...
@@ -103,6 +105,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
stub_env
(
'CI_PIPELINE_CREATED_AT'
,
ci_timestamp
)
stub_env
(
'CI_PIPELINE_CREATED_AT'
,
ci_timestamp
)
stub_env
(
'CI_JOB_URL'
,
ci_job_url
)
stub_env
(
'CI_JOB_URL'
,
ci_job_url
)
stub_env
(
'CI_JOB_NAME'
,
ci_job_name
)
stub_env
(
'CI_JOB_NAME'
,
ci_job_name
)
stub_env
(
'CI_PIPELINE_URL'
,
ci_pipeline_url
)
stub_env
(
'CI_PIPELINE_ID'
,
ci_pipeline_id
)
stub_env
(
'CI_PIPELINE_ID'
,
ci_pipeline_id
)
stub_env
(
'CI_MERGE_REQUEST_IID'
,
nil
)
stub_env
(
'CI_MERGE_REQUEST_IID'
,
nil
)
stub_env
(
'TOP_UPSTREAM_MERGE_REQUEST_IID'
,
nil
)
stub_env
(
'TOP_UPSTREAM_MERGE_REQUEST_IID'
,
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment