atlassian / build-stats Goto Github PK
View Code? Open in Web Editor NEW๐ get the build stats for pipelines ๐
License: MIT License
๐ get the build stats for pipelines ๐
License: MIT License
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.
Steps to reproduce
build-stats bitbucket:<user>/<repo> download --auth <username>:<app_password>
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.
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
--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 requestThis issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@babel/core
, @babel/preset-env
, @babel/preset-typescript
)@types/jest
, babel-jest
, jest
)inquirer
, @types/inquirer
)@types/jest
, babel-jest
, jest
, ts-jest
)These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
inquirer
, @types/inquirer
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
.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
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.yml
node 8
Hello @ajaymathur ,
As a user I want to have the build stats for custom builds.
introduction
This project is to help during simcard verification.
problem solving
To prevent frauds from picking IDs and registering more simcards without permission.
conclusion
Will automatically search for builds from a specific build number.
This is more used in recovery situations, but means there will always be a way to force a redownload without losing data.
Suggested from PR #19 , for anyone that wants downloads to be faster.
Should be a super small change
I believe there is a cwd flag, but most people wouldn't use it.
But it'd be useful to have the equivalent of yarn bin
, etc for showing the default directory.
Since, now we are downloading builds in ascending order from 1 to now, we are required to download/ wait for tool to download all the builds before we can start checking latest stats.
@ajaymathur 's suggestion, as discussed.
https://en.wikipedia.org/wiki/Standard_deviation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.