Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LbNightlyTools
Manage
Activity
Members
Labels
Plan
Issues
40
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb Core Software
LbNightlyTools
Merge requests
!90
Added view for stats
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added view for stats
couchDbViewsForStat
into
prepare-for-new-jenkins
Overview
0
Commits
1
Pipelines
0
Changes
7
Merged
Stefan-Gabriel Chitic
requested to merge
couchDbViewsForStat
into
prepare-for-new-jenkins
8 years ago
Overview
0
Commits
1
Pipelines
0
Changes
7
Expand
👍
0
👎
0
Merge request reports
Compare
prepare-for-new-jenkins
prepare-for-new-jenkins (base)
and
latest version
latest version
e6443300
1 commit,
8 years ago
7 files
+
111
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
couchdb/frontend-stats/views/byDate/map.js
0 → 100644
+
58
−
0
Options
function
(
doc
)
{
if
(
doc
.
type
==
"
slot-info
"
)
{
if
(
doc
.
date
!=
null
){
to_emit
=
{};
to_emit
[
'
slot
'
]
=
doc
[
'
slot
'
];
to_emit
[
'
build_id
'
]
=
doc
[
'
build_id
'
];
to_emit
[
'
platforms
'
]
=
{}
for
(
c_platform
in
doc
[
'
config
'
][
'
platforms
'
]){
platform
=
doc
[
'
config
'
][
'
platforms
'
][
c_platform
]
to_emit
[
'
platforms
'
][
platform
]
=
{}
for
(
c
in
doc
[
'
config
'
][
'
projects
'
]){
build_errors
=
0
build_warnings
=
0
test_errors
=
0
test_passed
=
0
test_failed
=
0
test_untested
=
0
if
(
doc
[
'
config
'
][
'
projects
'
][
c
][
'
disabled
'
])
continue
project
=
doc
[
'
config
'
][
'
projects
'
][
c
][
'
name
'
]
build
=
doc
[
'
builds
'
]
if
(
build
&&
build
[
platform
]
&&
build
[
platform
][
project
]){
build_errors
=
build
[
platform
][
project
][
'
errors
'
];
build_warnings
=
build
[
platform
][
project
][
'
warnings
'
];
}
tests
=
doc
[
'
tests
'
]
if
(
tests
&&
tests
[
platform
]
&&
tests
[
platform
][
project
]){
tmp
=
tests
[
platform
][
project
][
'
results
'
];
if
(
tmp
){
if
(
tmp
[
'
FAIL
'
]){
test_failed
=
tmp
[
'
FAIL
'
].
length
}
if
(
tmp
[
'
PASS
'
]){
test_passed
=
tmp
[
'
PASS
'
].
length
}
if
(
tmp
[
'
UNTESTED
'
]){
test_untested
=
tmp
[
'
UNTESTED
'
].
length
}
if
(
tmp
[
'
ERROR
'
]){
test_errors
=
tmp
[
'
ERROR
'
].
length
}
}
}
to_emit
[
'
platforms
'
][
platform
][
project
]
=
{
'
build_errors
'
:
build_errors
,
'
build_warnings
'
:
build_warnings
,
'
test_errors
'
:
test_errors
,
'
test_passed
'
:
test_passed
,
'
test_failed
'
:
test_failed
,
'
test_untested
'
:
test_untested
}
}
}
emit
(
doc
.
date
,
to_emit
);
}
}
}
\ No newline at end of file
Loading