Commit graph

191 commits

Author SHA1 Message Date
Jamie Magee
b23700d749
test: jest isolation (#21406) 2023-04-10 04:32:04 +00:00
RahulGautamSingh
1d95167b13
feat(onboarding): use cache to check if repo is onboarded (#20733)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-04-07 05:19:25 +00:00
Sergei Zharinov
8081d08ec4
refactor(http): Enhanced integration with data schemas (#21338) 2023-04-06 15:56:27 +00:00
Gabriel-Ladzaretti
c5b7a451a9
fix(cache): catch redis set value errors (#21290) 2023-04-02 16:23:17 +00:00
Jamie Magee
176282e65f
chore: use node: protocol imports (#21181) 2023-03-28 21:05:36 +00:00
Sergei Zharinov
3e28c4ee9f
feat(cache): Fallback to older decorator results on error (#20795) 2023-03-23 15:59:51 +00:00
John Daly
15c7e8dea2
fix: Prevent uninitialized cacheProxy from being accessed in cleanup (#20975) 2023-03-16 04:57:34 +00:00
Sergei Zharinov
095c84ebfd
test: Refactor tests for package cache decorator (#20958) 2023-03-15 15:37:12 +00:00
Rhys Arkins
222cda6058
feat(cache): file cache cleanup (#20061)
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time.

Closes #13732
2023-03-10 09:34:39 +01:00
Rhys Arkins
a3cc159f7e
chore: extract and lookup duration logging (#20816) 2023-03-09 11:24:50 +00:00
RahulGautamSingh
63fde6b3bc
feat(cache): pr fingerprint implementation (#18850)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-21 06:07:48 +00:00
Rhys Arkins
cc33d34ca8
refactor: PackageFile types (#20498)
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-20 14:58:49 +00:00
Rhys Arkins
3cef2f2e4f
refactor: PackageFile -> PackageFileContent (#20502) 2023-02-19 12:43:48 +00:00
Rhys Arkins
cf6be1719e
feat(cache): retain fingerprints for all matched managers (#20138) 2023-02-01 09:12:45 +01:00
renovate[bot]
99a7c8af89
build(deps): update aws-sdk-js-v3 monorepo to v3.226.0 (#19444)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-12-17 07:05:16 +01:00
Gabriel-Ladzaretti
06f23a47b8
feat(logs): print branch pristine status as part of the branch summary (#19210) 2022-12-02 08:19:17 +00:00
Michael Kriese
7603bebd03
fix(cache): skip save repo cache on dry-run (#19094) 2022-11-25 09:33:16 +00:00
RahulGautamSingh
987421b8ad
feat: add pristine in branchCache (#18478) 2022-11-20 07:10:25 +00:00
Jamie Magee
92eb2200fd
refactor(jest): enable clearMocks (#18779) 2022-11-14 22:46:37 -08:00
Gabriel-Ladzaretti
991cc7ac3d
feat(repo/cache): add s3 support for user configured folder hierarchy (#18865)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2022-11-13 11:00:06 +02:00
RahulGautamSingh
a613692588
refactor: remove gitConflicts (#18576) 2022-11-10 19:56:46 +00:00
Rhys Arkins
c229652e9f
fix: Revert "refactor: move branch cache files to util/cache" (#18667) 2022-10-31 07:50:33 +02:00
RahulGautamSingh
f04a7c75ff
refactor: move branch cache files to util/cache (#18646) 2022-10-29 07:29:51 +00:00
Sergei Zharinov
c885c889a5
docs: Document cache decoder utility (#18633) 2022-10-28 11:48:07 +03:00
RahulGautamSingh
3c7ca03b38
refactor: change conflict cache logic (#17898)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-26 08:11:51 +02:00
RahulGautamSingh
ef8c4ac1c1
fix: parentSha logic (#18331) 2022-10-21 16:20:51 +03:00
Sergei Zharinov
98003f4cce
feat(cache): Compress package cache (#18241) 2022-10-11 06:26:19 +03:00
Sergei Zharinov
b5eed5f8ff
refactor(util): Compression utils (#18240) 2022-10-10 14:01:53 +00:00
Rhys Arkins
40b7393040
fix: don’t count duplicate package cache stats (#18172) 2022-10-07 11:36:49 +03:00
Rhys Arkins
f34e89fec4
feat: package cache stats (#18170) 2022-10-07 07:57:37 +00:00
RahulGautamSingh
72371cb778
feat: improve branch cache logic (#17848)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-06 07:37:47 +03:00
Sergei Zharinov
db1086a79f
fix: Remove repository cache migrations (#18025) 2022-10-02 05:34:50 +00:00
RahulGautamSingh
266b5e4798
fix: create branch cache before processing branch (#17801) 2022-09-20 09:43:14 +00:00
Sergei Zharinov
5dc1eb3ad6
fix(cache): Store cache with sorted object keys (#17607) 2022-09-04 10:53:20 +00:00
Gabriel-Ladzaretti
4ccd085aa5
feat(cache/repository): add modification query function to the repository cache interface (#17529)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-09-03 16:36:55 +03:00
Sergei Zharinov
6a93997863
feat(cache): Repository cache fingerprinting (#17367) 2022-08-30 04:58:57 +00:00
Michael Kriese
10fd0f2827
fix(cache/repository): don't log error for non-existant files (#17427) 2022-08-26 12:25:35 +00:00
Gabriel-Ladzaretti
ba13dc547b
feat(cache/repository): Implement S3 client (#17322)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-26 04:47:14 +00:00
Sergei Zharinov
57ade2b33e
refactor(cache): Restore each revision with own separate method (#17364) 2022-08-23 20:27:34 +02:00
Sergei Zharinov
9e2c81f0ef
refactor(cache): Explicit types for different cache revisions (#17362) 2022-08-23 17:35:09 +02:00
Michael Kriese
ae2e584c18
refactor(repository/cache): fix types and log errors (#17355)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-23 07:19:10 +00:00
Gabriel-Ladzaretti
f93927af63
refactor(repo/cache): handle data parsing inside repository base class (#17346)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-23 04:22:32 +00:00
Sergei Zharinov
064c1e9204
refactor(cache): Make read method return unknown type (#17335) 2022-08-22 20:48:49 +02:00
RahulGautamSingh
1a25ac6fc3
feat: use cached configHash to prevent branch updates (#16661) 2022-08-22 09:01:48 +00:00
Gabriel-Ladzaretti
039fce8dc6
refactor(repository/cache): add support for adding various cache clients (#17146)
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-21 12:53:20 +00:00
Sergei Zharinov
2b43f273bf
refactor(fs): Remove proxies.ts file (#16325)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-01 14:57:30 +02:00
RahulGautamSingh
3d31fa371d
refactor(lib/util): strict null check for test files (#15812)
* add types for tmp

* expand files in lib/util

* update yarn lock

* Update tsconfig.strict.json

* util/exec

* util/git

* util/http

* Revert "util/exec"

This reverts commit 96cf479a1b.

* update strict.json

* redo util/exec

* revert util/git

* util/merge-confidence

* update util/git

* util/package-rules

* fix util/git

* util/template

* util/

* revert extras

* rm newline

* add tmp back

* apply suggestion from review

* util/cache

* more changes

* Update tsconfig.strict.json

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-19 21:17:46 +00:00
Sergei Zharinov
c32b74bdee
fix(redis): Fix TTL minutes type (#15886) 2022-06-04 07:47:36 +02:00
Rhys Arkins
dd84b9c7f3 fix(redis): valid integer for ttl 2022-06-04 07:04:33 +02:00
Sergei Zharinov
cbed78630a
fix(cache): Fix repositoryCache support for reset value (#15874) 2022-06-03 13:35:20 +00:00
Rhys Arkins
cf6885f71a
fix(config): move endpoint, platform to GlobalConfig (#15864)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-03 06:43:58 +02:00
Jamie Magee
0cb19fa997
refactor(decorator): extract general purpose decorator methods (#15772) 2022-05-29 01:07:30 +02:00
Sergei Zharinov
b9dc73ac43
feat(cache): Compression for repository cache (#15289) 2022-04-24 22:15:11 +02:00
Sergei Zharinov
f911b0ba22
refactor: Class-based implementations of repo cache (#15157) 2022-04-23 04:44:28 +00:00
Sergei Zharinov
a06e5d9ce7
refactor(cache): Separate data and metadata for repo cache (#15117) 2022-04-16 06:51:29 +01:00
Sergei Zharinov
d663859207
feat(github): Fetch PRs using cacheable REST (#14907) 2022-04-15 17:21:09 +00:00
Michael Kriese
64f5bd5f03
test: enforce lint style rules (#15085) 2022-04-12 14:49:49 +00:00
Rhys Arkins
143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00
Rhys Arkins
dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00
Sergei Zharinov
4f3dfbcc18
feat(platform): Cache created comments (#14279)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-02-28 20:11:57 +01:00
Sergei Zharinov
d3b774e8ef
feat(git): Cache for local conflict detection (#13764)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-28 09:53:30 +01:00
renovate[bot]
995dd0e670
build(deps): update dependency redis to v4 (#13260)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-19 06:05:23 +00:00
Sergei Zharinov
3b14ef2869
feat(github): Remember GraphQL optimal page size (#13047)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-18 15:36:44 +00:00
Michael Kriese
038969bc86
refactor: fix more esm imports (#13246) 2021-12-22 15:19:53 +01:00
Michael Kriese
c5d50f6da3
refactor: more esm imports (#13233)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 11:28:20 +00:00
Michael Kriese
2b24a98359
refactor: update imports for esm (#13230)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 08:37:47 +00:00
Michael Kriese
7c4a71b679
feat!: remove node v12 and node v15 support (#12658)
BREAKING CHANGE: remove node v12 and v15 support
2021-12-09 13:44:42 +01:00
Sergei Zharinov
52b2bdbb48
refactor(util/cache): Enable strict nulls (#12887) 2021-11-29 17:04:43 +01:00
Sergei Zharinov
ef51e85b7a
refactor(cache/package): Enable strict checks (#12862)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-11-27 12:08:24 +00:00
Maksim
06d8c27043
refactor: global config (#12743)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-23 21:10:45 +01:00
Michael Kriese
7afc2b75d5
test: fix lint (#12551) 2021-11-08 13:16:58 +01:00
Sergei Zharinov
eef4c2f11f
feat(github): Use native auto-merge when possible (#12045) 2021-10-20 03:31:03 +00:00
Jamie Magee
4461796836
refactor(crate): convert to class-based datasource (#12033) 2021-10-13 04:42:12 +00:00
Rhys Arkins
dcfc9d9885
fix(travis): massage currentValue to string (#11475) 2021-08-30 11:08:48 +02:00
Sergei Zharinov
5f4b9f9a3a
test: Fix test descriptions and enforce it via new linting rule (#11285) 2021-08-18 05:46:56 +00:00
Rhys Arkins
9150854d75 chore: rename config/admin -> config/global 2021-08-17 07:57:45 +02:00
Rhys Arkins
bf69924b78 refactor: rename config admin functions to global 2021-08-17 07:57:45 +02:00
Sebastian Poxhofer
6a361c6150 feat(cache): allow caching of null values (#11014) 2021-08-17 07:57:45 +02:00
Jamie Magee
55d23ad3b9
fix(cache): don't catch errors (#10449) 2021-06-17 07:36:34 +02:00
Rhys Arkins
7249ee0870 fix: cache decorate log 2021-06-15 14:23:40 +02:00
Jamie Magee
52b63e4163
feat(cache): cache decorator for automatic caching (#10203) 2021-06-07 16:28:05 +00:00
Rhys Arkins
d0434d5df1 chore: GlobalConfig -> AllConfig 2021-06-02 11:25:10 +02:00
Rhys Arkins
854d0a86e8
feat(internal): use cache to delay git cloning (#10209)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-05-28 10:36:53 +00:00
Rhys Arkins
9ebf804d4e fix(cache): cacheDir adminConfig 2021-05-19 12:27:37 +02:00
Michael Kriese
9ca604b345
refactor: extract more types (#9959) 2021-05-11 19:08:02 +02:00
Michael Kriese
7daa93a78d
refactor: extract types to new files (#9951) 2021-05-11 12:51:21 +02:00
Sergei Zharinov
38620be343
refactor: Replace some TODO items with issue ids (#9596) 2021-04-26 20:19:30 +00:00
Sergei Zharinov
ce51f05cef
feat(test): Detect test utils callers and simplify helpers (#9707) 2021-04-26 16:15:03 +02:00
Sergei Zharinov
72d97ec2f4
refactor(workers): Enforce getName usage (#9525) 2021-04-13 10:25:51 +00:00
Rhys Arkins
98f17c31a7 fix: defensive config check in cleanup 2021-04-06 15:55:41 +02:00
Rhys Arkins
2fb87eddcf
fix: revert npmrc handling changes (#9347) 2021-04-01 14:19:47 +02:00
Rhys Arkins
5949f39773
fix(npm): use configured npmrc (#9319) 2021-03-29 21:52:21 +02:00
Rhys Arkins
11454b547e
refactor: composer managerData (#9226) 2021-03-20 08:10:53 +01:00
Rhys Arkins
1185a464ae refactor: CACHE_REVISION 2021-03-19 16:18:45 +01:00
Rhys Arkins
0747c9aef4 fix: CACHE_REVISION=4
Git submodules extraction has changed.
2021-03-15 18:13:58 +01:00
Michael Kriese
74d7691bef
refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
Rhys Arkins
b0026d9e08 fix: bump CACHE_REVISION
Due to #8898
2021-02-27 16:41:57 +01:00
Rhys Arkins
728082b3c3 fix(cache): correct revision 2021-02-22 19:39:33 +01:00
Rhys Arkins
7118404981
feat: matchFiles + lockFiles (#8783) 2021-02-20 14:22:50 +01:00
Rhys Arkins
d2a7147222
feat(internal): repository cache revision (#8782) 2021-02-20 09:14:08 +01:00