Commit graph

3809 commits

Author SHA1 Message Date
Rhys Arkins
bdd30bb2a5 logs: less info 2018-09-05 20:50:13 +02:00
Renovate Bot
920a8dbe60 chore(deps): update dependency jest-silent-reporter to v0.1.1 2018-09-05 16:01:57 +00:00
Rhys Arkins
c4f67cf077 refactor: measure git clone time 2018-09-05 16:03:14 +02:00
Rhys Arkins
1d16040905 chore: package.json ordering 2018-09-05 16:02:38 +02:00
Rhys Arkins
88c6a48b2a logs: less debug 2018-09-05 15:04:18 +02:00
Rhys Arkins
e2b8cef040 refactor: gitFs configuration option
Adds configuration option gitFs for git-based file operations.
2018-09-05 14:46:36 +02:00
Rhys Arkins
2e78f515d1 logs: lower debug 2018-09-05 14:45:52 +02:00
Renovate Bot
5256fd0c2a chore(deps): update node:8.11.4 docker digest to 338284 2018-09-05 14:41:22 +02:00
Rhys Arkins
bf3f086240 refactor: clear stats only if more than one request 2018-09-05 14:19:03 +02:00
Rhys Arkins
4539487d26 refactor: less logging 2018-09-05 14:18:31 +02:00
Rhys Arkins
d6b1040de2 refactor: improve get stats 2018-09-05 11:03:47 +02:00
Rhys Arkins
c3a4b90411 chore: fix clean-cache paths 2018-09-05 11:03:06 +02:00
Rhys Arkins
8e81a647a2 refactor: lazy load branch status to reduce requests 2018-09-05 10:52:00 +02:00
Rhys Arkins
80463651ca feat: logger err serializer
Include body, message and stack with every error if present
2018-09-05 10:32:53 +02:00
Rhys Arkins
b054c63ffb tests: fix github platform tests 2018-09-05 07:00:30 +02:00
Rhys Arkins
8c613a6149 refactor(gitfs): clone depth 2 2018-09-05 06:41:23 +02:00
Rhys Arkins
b54ffa5661 logs: log git fs mode 2018-09-05 06:40:30 +02:00
Rhys Arkins
58b731798e refactor(github): don’t prefetch prList and fileList 2018-09-05 06:34:39 +02:00
Rhys Arkins
4a0b3cf83e fix: move cleanRepo to finally 2018-09-05 06:31:25 +02:00
Rhys Arkins
f5b93de82d refactor(github): simplify getAllRenovateBranches 2018-09-05 06:23:55 +02:00
Renovate Bot
11a347543e chore(deps): update dependency codecov to v3.1.0 2018-09-05 00:01:50 +00:00
Renovate Bot
44314366cd build(deps): update dependency handlebars to v4.0.12 2018-09-04 20:22:53 +00:00
Rhys Arkins
a548837b7b fix: maintainer_can_modify for forked PRs
Closes #2476
2018-09-04 18:35:42 +02:00
Rhys Arkins
ed0bb8760e fix(yarn): throw errors when registry down
Detect strings in `yarn` `stderr` that indicate a registry problem and if found then throw a `registry-failure` error instead of continuing with a PR creation or update. This way they should be retried on each run until the registry is available again.

Closes #2474, Closes #2475
2018-09-04 18:06:07 +02:00
Rhys Arkins
31a1c11660 feat(github): dump request stats per-repo
Closes #1516
2018-09-04 17:56:28 +02:00
Rhys Arkins
c13c49863e logs: drop retries debug from gh wrapper 2018-09-04 17:45:21 +02:00
Rhys Arkins
f0e53028b0 fix: set endpoint for GITHUB_COM_TOKEN 2018-09-04 15:56:37 +02:00
Rhys Arkins
3ac7f7923d logs: simplify config file missing error 2018-09-04 15:34:08 +02:00
Rhys Arkins
9867ac3dc8 refactor: print masked Token when Bad credentials 2018-09-04 14:51:58 +02:00
Rhys Arkins
9572eaa6f9 refactor(github): getBranchList 2018-09-04 06:40:47 +02:00
Rhys Arkins
ef70c48d4b fix: sort dependencies by name in PRs
Remove randomness
2018-09-04 06:30:47 +02:00
Rhys Arkins
28902d78eb refactor: increase release notes caching to 55 min 2018-09-03 22:54:20 +02:00
Rhys Arkins
167049502a fix: don’t look up release notes compare URLs by date 2018-09-03 22:39:35 +02:00
Rhys Arkins
5e38150154 fix: skip changelog lookup for @types
There’s never anything there
2018-09-03 22:20:01 +02:00
Rhys Arkins
df8bebe10d refactor: log pr body change only if branch didn’t change 2018-09-03 21:29:23 +02:00
Rhys Arkins
bdaff7b64d refactor: fix oldPrBody log 2018-09-03 21:23:09 +02:00
Rhys Arkins
6f0b477777 fix: revert pagination cache 2018-09-03 18:57:20 +02:00
Rhys Arkins
f239df8025 logs: stop logging scoped headers 2018-09-03 18:50:05 +02:00
Rhys Arkins
63f062b13a refactor: better debug cached pagination 2018-09-03 18:32:35 +02:00
Rhys Arkins
6e494d11aa fix: try/catch all cache attempts 2018-09-03 17:52:19 +02:00
Rhys Arkins
1e1cdf8b6d
feat(github): cache pagination results (#2458)
Renovate will cache the results body of any paginated results from GitHub, such as list of Pull Requests or release tags. Then, after receiving the first page of results in future, Renovate will compare the received eTag with the cached eTag and if they match then it will return the cached results instead of querying them again via the GitHub API.

The benefits should be two-fold:
- Reduce the number of API calls required to GitHub
- Reduce the time taken to retrieve such results
2018-09-03 17:35:48 +02:00
Rhys Arkins
0d2e3bd451 chore: update snapshot 2018-09-03 17:11:13 +02:00
Rhys Arkins
358070cb15 fix: releases cache on prev and next 2018-09-03 17:09:10 +02:00
Rhys Arkins
1f7b25e51c fix: cache changelog on from/to 2018-09-03 16:19:02 +02:00
Rhys Arkins
562ca43859 tests: fix lint 2018-09-03 16:01:47 +02:00
Rhys Arkins
a505376c12 tests: fix github datasource cache test 2018-09-03 15:52:06 +02:00
Rhys Arkins
0d767c598d fix(cache): lazy fetch tags for changelog 2018-09-03 15:36:04 +02:00
Rhys Arkins
af54869555 chore: rename changelog params->args 2018-09-03 15:35:41 +02:00
Rhys Arkins
8bfe3897de fix(github): platform-error if ENOTFOUND 2018-09-03 10:58:20 +02:00
Rhys Arkins
4d48ba1395 refactor: cache changelog per-release
Closes #2473
2018-09-03 10:25:30 +02:00