StackStorm / StackStorm/st2-packages

[INFO] Collecting Build Stats/Timing

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
Shell
Stars
28
Forks
63
PR merge metrics
No merged PRs in 30d

Description

Problem

Mentioned in Slack idea about collecting data on build time/timing and make sure we can track regressions/optimizations:

@jfryman What I’d like to get a better understanding of wrt CI/Packages… better understanding of how we’re going to collect data points on timing

Solution 1 - CircleCI Web interface

There is already nice looking graph in CircleCI UI showing time for recent builds:
a11b8oo 1
That's what we already have and it's nice!

Solution 2 - API for custom processing

Advanced option is to use CircleCI API.
Example request: [https://circleci.com/docs/api#recent-builds-project](Recent Builds For a Single Project) outputs recent builds with needed metadata:

  ...
  "start_time" : "2013-02-12T21:33:38Z", // time build started running
  "stop_time" : "2013-02-12T21:34:01Z", // time build finished running
  "build_time_millis" : 23505,
  ...

So we can collect it/process ^^ and display on our side if needed.
Even create StackStorm sensors and rules to trigger blaming ChatOps message if build time is exceeded specified +% threshold :)

FYI @jfryman and @lakshmi-kannan

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Start by reviewing the existing CircleCI configuration and the CircleCI recent-builds API documentation; done would require an agreed design and an implemented way to collect, process, and display build timing data.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, ci-cd, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.