Coder Social home page Coder Social logo

atlassian / build-stats Goto Github PK

View Code? Open in Web Editor NEW
81.0 5.0 15.0 2.01 MB

๐Ÿ† get the build stats for pipelines ๐Ÿ†

License: MIT License

JavaScript 3.60% TypeScript 96.40%
travis-ci bitbucket-pipelines stats performance-analysis build

build-stats's People

Contributors

ajaymathur avatar dependabot[bot] avatar jamiebuilds avatar lukebatchelor avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

build-stats's Issues

Bug: Doesn't seem to be loading all history (rate limiting?)

I ran this in atlaskit and only received around 2000 files

$ build-stats bitbucket:atlassian/atlaskit-mk-2 download
โœ” Download completed. Total Builds: 33722

$ ls ~/.config/yarn/global/node_modules/build-stats/.data/bitbucket/atlassian/atlaskit-mk-2/builds | wc -l
2130

I'm thinking this could have been an error response from BB, possibly a rate limit? In either case, we should be catching the error, not returning success.

Not working for private bitbucket repo

Steps to reproduce

  1. build-stats bitbucket:<user>/<repo> download --auth <username>:<app_password>
    Result:
name: 'HTTPError',
  host: 'api.bitbucket.org',
  hostname: 'api.bitbucket.org',
  method: 'GET',
  path: '/2.0/repositories/<user>/<repo>/pipelines/',
  protocol: 'https:',
  url:
   'https://api.bitbucket.org/2.0/repositories/<user>/<repo>/pipelines/',
  statusCode: 404,
  statusMessage: 'Not Found',
  headers:
   { server: 'nginx',
     'cache-control': 'max-age=900',
     'content-type': 'application/json; charset=utf-8',
     'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
     date: 'Sun, 08 Dec 2019 15:52:34 GMT',
     'x-served-by': 'app-1107',
     'x-static-version': 'abd48467d96e',
     etag: '"d8570ff7a4314593e35e9bc69e81400a"',
     'x-render-time': '0.0135359764099',
     connection: 'close',
     'x-version': 'abd48467d96e',
     'x-frame-options': 'SAMEORIGIN',
     'x-reads-before-write-from': 'default',
     'x-request-count': '1860',
     'x-cache-info': 'caching',
     'content-length': '52' } }

However when I simply use curl https://api.bitbucket.org/2.0/repositories/<user>/<repo>/pipelines/ --user <username>:<app_password> I receive a JSON response of the 1st page of pipelines data.

Let me know if I can provide any other information.

Feature request: a flag for download to fetch all data

If you ever get in an inconsistent state (i.e from a bug like #15) where you have the latest data, but not data before it, currently there is no way to get the missing data.

A couple of ways to solve this

  • We could either refactor how we decide which builds to download (looking at the list
    of files we have currently and starting from the first missing),
  • We could add it as a flag (--force, --all) that works the same as currently (downloading backwards), but instead of stopping when we reach one we already know, we continue going back, each time checking if we have the file before doing the request

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update babel monorepo (@babel/core, @babel/preset-env, @babel/preset-typescript)
  • Update dependency @types/node to v16.18.96
  • Update jest monorepo (@types/jest, babel-jest, jest)
  • Update actions/checkout action to v4
  • Update actions/setup-node action to v4
  • Update borales/actions-yarn action to v5
  • Update dependency @types/meow to v6
  • Update dependency @types/node to v20
  • Update dependency chai to v5
  • Update dependency date-fns to v3
  • Update dependency inquirer to v9 (inquirer, @types/inquirer)
  • Update dependency meow to v13
  • Update dependency mkdirp to v3
  • Update dependency ora to v8
  • Update dependency p-limit to v5
  • Update dependency prettier to v3
  • Update dependency typescript to v5
  • Update jest monorepo to v29 (major) (@types/jest, babel-jest, jest, ts-jest)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/test.yml
  • actions/checkout v2
  • actions/setup-node v1
  • borales/actions-yarn v2.3.0
  • borales/actions-yarn v2.3.0
  • borales/actions-yarn v2.3.0
  • borales/actions-yarn v2.3.0
npm
package.json
  • chalk ^4.1.2
  • cli-table ^0.3.1
  • date-fns ^1.29.0
  • default-pager ^1.1.0
  • got ^8.0.1
  • inquirer ^8.2.0
  • left-pad ^1.2.0
  • lodash.groupby ^4.6.0
  • lodash.pick ^4.4.0
  • meow ^v9.0.0
  • mkdirp ^0.5.1
  • ora ^5.4.1
  • p-limit ^2.0.0
  • rimraf-promise ^2.0.0
  • string-to-stream ^1.1.0
  • @babel/core ^7.16.0
  • @babel/preset-env ^7.16.4
  • @babel/preset-typescript ^7.16.0
  • @types/inquirer ^8.2.0
  • @types/jest ^27.0.3
  • @types/lodash.pick ^4.4.6
  • @types/meow ^5.0.0
  • @types/node ^16.11.12
  • babel-jest ^27.4.4
  • chai ^4.3.4
  • fixturez ^1.0.1
  • jest ^27.4.4
  • prettier 2.5.1
  • ts-jest ^27.1.4
  • ts-node ^8.6.2
  • tsc-files ^1.1.3
  • typescript 3.9.10
  • node >=8.5.0
travis
.travis.yml
  • node 8

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.