Commit Graph

16 Commits

Author SHA1 Message Date
Jamie Tanna f932d52fbd feat(platform): get all branch update dates in a more performant manner (#44582)
* feat(platform): get all branch update dates in a more performant manner

When Renovate is working on a repository with many /potential/ branches,
as well as some actually created branches, it's possible for the
calculation for `commitHourlyLimit` to end up taking significant time.

This can lead to a less performant job generally, but can sometimes lead
to the Renovate job failing to complete, and then timing out when
executed by a job runner.

To handle this, we can instead use use `git for-each-ref` to look up
each Git ref (remotely) and request the commit date, which leads to a
much more performant lookup.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

* fixup! feat(platform): get all branch update dates in a more performant manner

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

* fixup! Merge remote-tracking branch 'origin/HEAD' into wip/commit-hourly-slow

---------

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-07-21 13:17:58 +00:00
Sebastian Poxhofer 171a591d84 feat(git): validate commit shas (#43988)
* feat(git): validate length commit shas

* test: adapt test mocks

* chore: update import paths

* feat(git): make the validation more strict and support repositories using sha256

* test: add fakeSha function for deterministic git commit shas in tests
2026-06-15 06:36:57 +00:00
Felipe Santos 7ebba26236 feat: add commitHourlyLimit (#36226)
* feat: add `commitHourlyLimit`

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>

* Update docs/usage/configuration-options.md

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Remove date optionality

* Fix lint comment

* Fix coverage

* Restore contents of commit.spec.ts

* Use ! somewhere else too

* Change optional parameter to nullish

* Refactor `!` to use proper check

* Fix set-branch-commit.spec.ts lint

* Fix test coverage

* Apply suggestions from code review

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Split commit-limit-reached into two

* Fix review comments

* Use toUTC() where applicable

* Simplify another test to utc()

---------

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-02-19 18:00:32 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Rhys Arkins dffabcbc87 fix(git): remotes sync (#36180)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-27 16:51:26 +00:00
Rhys Arkins f90b4c5ff9 fix(git): use custom name for upstream (#36149) 2025-05-26 14:24:47 +00:00
RahulGautamSingh 99411970a1 feat(git): Support baseBranches in fork mode (#36054)
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
Signed-off-by: Jan Høydahl <jan.git@cominvent.com>
Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
Co-authored-by: Jan Høydahl <jan.git@cominvent.com>
Co-authored-by: Jan Høydahl <jh@cominvent.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-24 07:06:07 +00:00
Aaron Moat 03919bbfef feat(git)!: determine branch modification based on all branch commits (#28225) 2024-07-25 15:28:16 +02:00
Rhys Arkins 242e2781f0 chore: rename CommitSha type to LongCommitSha (#25698) 2023-11-11 12:18:00 +00:00
Rhys Arkins 59d0149200 fix: Revert "feat: compare all branch authors when deciding if a branch is modified" (#25254) 2023-10-17 13:35:20 +02:00
Alex Kessock c2cb93ce44 feat: compare all branch authors when deciding if a branch is modified (#21558)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-10-17 08:45:53 +00:00
Markus Schulz 6c42022f78 refactor(scm): use scm for mergeBranch, mergeToLocal (#23448)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-08-07 15:39:43 +00:00
Rhys Arkins 9276a54069 refactor(scm): use scm for getFileList, checkoutBranch (#22006) 2023-05-07 04:12:15 +00:00
Rhys Arkins 5fb1747361 fix: Revert "feat: compare all branch authors when deciding if a branch is modified" (#21505) 2023-04-14 06:20:34 +00:00
Alex Kessock 8b0acd4108 feat: compare all branch authors when deciding if a branch is modified (#20739) 2023-04-13 15:19:13 +00:00
Markus Schulz dd6c8e5147 feat: Move some Git commands behind a PlatformScm interface (#19327)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-22 08:18:53 +00:00