Commit graph

872 commits

Author SHA1 Message Date
Gabriel-Ladzaretti
257d9a9d8e
fix(core/exec): use nodejs style error messages when throwing (#16961) 2022-08-04 14:29:11 +00:00
Michael Kriese
1bc8fee494
refactor: cleanup http option interface (#16967) 2022-08-04 12:54:52 +02:00
Michael Kriese
61c045ca2f
feat: use sha512 for hashes (#16907) 2022-08-02 11:36:26 +02:00
Sergei Zharinov
f8c789efb4
feat(github): Log warning when GitHub token is not configured (#16566)
* feat(github): Log warning when GitHub token is not configured

* Check `sourceUrl`

* Add tests

* Fix test

* Fix

* Remove `sourceUrl` check

* Test nullable input

* Fix nulls
2022-08-01 06:16:09 +00:00
Rhys Arkins
bba3c782e2
chore: fix packageRules test (#16866) 2022-07-30 07:49:05 +03:00
Michael Kriese
2c5fd14e25
fix(git): remove wrong submodule file filter (#16848) 2022-07-29 08:32:05 +00:00
Michael Kriese
a3d1235032
feat(manager/pipenv): support binarySource=install (#16828)
* feat(manager/pipenv): support binarySource=install

* docs: update docs

* fix: linting
2022-07-28 17:17:02 +00:00
Michael Kriese
cf7bb3226d
feat(manager/gradle-wrapper): support binarySource=install (#16830)
* feat(manager/gradle-wrapper): support `binarySource=install`

* docs: update docs
2022-07-28 13:47:56 +00:00
Michael Kriese
8270d5512d
refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00
Yun Lai
f1bcafc584
feat(fs): add localPathIsSymbolicLink and readLocalSymlink (#16673)
* fix: add localPathIsSymbolicLink and readLocalSymlink to fs module

* Update lib/util/fs/index.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/util/fs/index.ts

* Apply suggestions from code review

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-26 08:19:20 +00:00
Gabriel-Ladzaretti
2446f446b7
fix(git/cache): getCachedBehindBaseResult returns true when branch is not modified (#16752) 2022-07-26 04:41:09 +00:00
Gabriel-Ladzaretti
24a237c15b
fix(git/cache): getCachedBranchParentShaResult returns unexpected undefined (#16762) 2022-07-25 20:23:25 +02:00
RahulGautamSingh
9778ca67d9
feat: use getBranchParentSha cached result (#16724) 2022-07-24 19:49:39 +02:00
Michael Kriese
6854145528
feat(manager/elixir): support install binary source (#16710)
* feat(manager/elixir): support install binary source

* test: fix snapshot
2022-07-22 16:35:20 +00:00
Gabriel-Ladzaretti
892595aea8
feat(util/exec): use spawn instead of exec (#16414)
* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - init spawn-util

* refactor(util): use spawn instead of exec

 - spawn-util

* refactor(util): use spawn instead of exec

 - init index-spawn.spec.ts

* refactor(util): use spawn instead of exec

 - fixed various tests

* refactor(util): use spawn instead of exec

 - fix all artifacts.spec.ts

* refactor(util): use spawn instead of exec

 - fix all artifacts.spec.ts

* refactor(util): use spawn instead of exec

 - fix npm post update imports

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff
 - destroy stdio when terminating child process

* refactor(util): use spawn instead of exec

 - delete and revert dev related changes

* refactor(util): use spawn instead of exec
 - fix support for windows

* refactor(util): use spawn instead of exec

 - handle SIGSTOP and such
 - add test coverage

* refactor(util): use spawn instead of exec

 - now converts to strings when resolving/rejecting

* refactor(util): use spawn instead of exec

 - logs improvements
 - force shell (exec like)
 - fix tests

* refactor(util): use spawn instead of exec

 - strongly type listeners

* refactor(util): use spawn instead of exec

 - create helper mock for spawn

* refactor(util): use spawn instead of exec

 - cr changes

* Update lib/util/exec/common.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* refactor(util): use spawn instead of exec

 - documentation

* refactor(util): use spawn instead of exec

 - revert unnecessary formatting

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

 - added ExecError class

* refactor(util): use spawn instead of exec

 - exec-error.ts restructure

* refactor(util): use spawn instead of exec

* Apply suggestions from code review

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

 - deprecated RawExecOptions.encoding property

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-22 15:43:28 +00:00
Michael Kriese
6c78237993
test: simplify exec mock (#16698) 2022-07-22 07:42:30 +00:00
Michael Kriese
4f82df4c3d
feat(buildpack): enable cache (#16591) 2022-07-21 07:00:02 +00:00
RahulGautamSingh
93707c1ed7
feat: use isBranchBehindBase cached result (#16595) 2022-07-21 07:48:02 +02:00
RahulGautamSingh
54cff9aeb8
refactor: throw error if issue with git (#16618) 2022-07-18 12:33:20 +00:00
Michael Kriese
47b9493fe2
test(git): raise timeout to 60s (#16599) 2022-07-15 16:47:39 +02:00
RahulGautamSingh
c7507255b7
refactor: rename isBranchStale -> isBranchBehindBase (#16577)
* rename

* rename to isBranchBehindBase

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-15 09:21:32 +00:00
RahulGautamSingh
f506580e40
fix: add repoCache-check before cloning (#16533) 2022-07-15 09:09:08 +02:00
Michael Kriese
ad70360fda
fix(utils/fs): make assertions windows compatible (#16583)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-14 17:33:28 +02:00
Michael Kriese
62d5d670bf
test(git): tmp dir can be missing (#16585) 2022-07-14 16:17:19 +03:00
Sergei Zharinov
d0fe5f904e
feat(fs): Scope checks for filesystem functions (#16511) 2022-07-14 07:53:26 +00:00
renovate[bot]
210695c1a0
build(deps): update dependency git-url-parse to v12 (#16458)
* build(deps): update dependency git-url-parse to v12

* fix: add workaround

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-11 19:37:56 +00:00
Gabriel-Ladzaretti
6202b1c264
refactor(util/exec): change mocked modules in existing tests (#16519) 2022-07-11 11:41:24 +02:00
RahulGautamSingh
e10aa6aa5a
fix: check cache before cloning (#16517) 2022-07-11 10:58:51 +02:00
Sergei Zharinov
e26130329d
refactor(fs): Add tests for every filesystem function (#16495)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-09 18:50:45 +00:00
Sergei Zharinov
83f67c27d5
refactor(fs): Rename getSubDirectory to getParentDir (#16446)
* refactor(fs): Rename `getSubDirectory` to `getParentDir`

* Add tests for `getSiblingFileName`

* fix

* fix
2022-07-07 06:44:21 +00:00
Yun Lai
793095c1a0
fix(git): add options to getRepoStatus (#16253) 2022-07-06 05:17:39 +00:00
Sergei Zharinov
c866fd06fc
fix(github): Return remote commit hash for platformCommit=true (#16391) 2022-07-03 08:25:17 +00:00
Sergei Zharinov
b5df686fb7
refactor(github): Introduce misc query function for GraphQL (#16387)
* refactor(github): Introduce misc `query` function for GraphQL

* Update lib/modules/datasource/github-releases/cache/cache-base.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-02 15:24:17 +02: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
Yun Lai
432a888cdb
fix: make http.stream apply hostRules & authentication (#16255)
* fix(http): support asset download via octet-stream header in github http

* Update lib/util/http/github.spec.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* fix: make http.stream apply hostRules & authentication

* chore: fix disable host test for http.stream

* Update lib/util/http/index.ts

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-30 07:54:48 +00:00
Sergei Zharinov
11f41825ca
fix(fs): Windows CI tests (#16318) 2022-06-29 07:57:44 +00:00
Sergei Zharinov
bfc393ef00
refactor(fs): Don't proxy writeFile function (#16310)
* refactor(fs): Don't proxy `writeFile` function

* Fix

* Update lib/workers/global/index.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-29 06:23:36 +00:00
Sergei Zharinov
851d8f4f7a
refactor(fs): Move chmod to chmodLocalFile (#16306)
* refactor(fs): Move `chmod` to `chmodLocalFile`

* More refactoring and tests

* Fix tests

* Apply suggestions from code review

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Fix prettier

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-29 06:03:49 +00:00
Sergei Zharinov
0687799b28
refactor(fs): Remove unused proxied functions (#16311)
* refactor(fs): Remove unused proxied functions

* Fix lint/test

* Fix

* Update lib/util/fs/index.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-29 05:44:30 +00:00
Rhys Arkins
17f1b409a6
fix: log http and npm rejection cases (#16307) 2022-06-28 16:30:35 +02:00
Yun Lai
ce34a5530d
fix(git): add symbolic link file support to prepareCommit (#16254) 2022-06-27 07:55:25 +00:00
Sergei Zharinov
bce8dcc4e4
fix(github): Correct submodule updates for platformCommit=true (#16198) 2022-06-23 09:07:43 +02:00
Michael Kriese
10302eba68
refactor: fix prefer-nullish-coalescing (#16171) 2022-06-21 12:02:49 +00:00
Michael Kriese
0a582d31c7
refactor: fix nullable types (#16156)
* refactor: fix nullable types

* chore: revert changes

* chore: fix lint comments

* chore: revert changes
2022-06-20 16:15:40 +00:00
Michael Kriese
0838ca209c
refactor: strict datasource tests (#16150) 2022-06-20 13:15:02 +02:00
Sergei Zharinov
0cf4f48842
refactor: Strict null checks for all files except tests (#16071)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-20 11:47:07 +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
Gabriel-Ladzaretti
dd3598c5b8
feat(config/migration): migrate config with a PR (#15122)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-06-18 12:12:31 +00:00
Rhys Arkins
5c803f2e41
fix(config): check for undefined str when validating handlebars helpers (#16047) 2022-06-13 13:34:14 +02:00
Alfred Krohmer
83f54f5a8a
feat: allow currentDigest and currentDigestShort in templates (#15951) 2022-06-09 06:58:53 +00:00