• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chaoss / grimoirelab-elk / 2300 / 2
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 19 Jun 2020 02:28PM UTC
Files 115
Run time 32s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Jun 2020 02:20PM UTC coverage: 82.064% (+0.03%) from 82.038%
2300.2

push

travis-ci

zhquan
[enriched-githubql] Add duration analysis study

The purpose of this study is to calculate the
duration between two GitHub events.

The study requires a start event type (e.g., UnlabeledEvent
or MovedColumnsInProjectEvent), which is used to retrieve
for each issue all events of that type.

For each issue event obtained, the first previous event
of one of the types defined at `fltr_event_types` is
returned, and used to calculate the duration (in
days) between the two events. Optionally, an additional
filter can be defined to retain the events that share a
given property (e.g., a specific label, the name of project
board).

Finally, the duration and the previous event uuid are
added to the start event via the attributes
`duration_from_previous_event` and `previous_event_uuid`.

This study is executed in a incremental way, thus only
the start events that don't include the attribute
`duration_from_previous_event` are retrieved and processed.

The examples below show how to activate the study by modifying
the setup.cfg. The first example calculates the duration
between Unlabeled and Labeled events per label. The second example
calculates the duration between the MovedColumnsInProject and
AddedToProject events per column in each board

```
[githubql]
...
studies = [enrich_duration_analysis:label, enrich_duration_analysis:kanban]

[enrich_duration_analysis:kanban]
start_event_type = MovedColumnsInProjectEvent
fltr_attr = board_name
target_attr = board_column
fltr_event_types = [MovedColumnsInProjectEvent, AddedToProjectEvent]

[enrich_duration_analysis:label]
start_event_type = UnlabeledEvent
target_attr = label
fltr_attr = label
fltr_event_types = [LabeledEvent]
```

Tests have been added accordingly.
Schema of githubql has been updated.

Signed-off-by: Valerio Cosentino <valcos@bitergia.com>

8300 of 10114 relevant lines covered (82.06%)

0.82 hits per line

Source Files on job 2300.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1223
  • Travis Job 2300.2
  • 054e2c71 on github
  • Prev Job for on master (#2298.2)
  • Next Job for on master (#2301.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc