Commit Graph

404 Commits

Author SHA1 Message Date
Jamie Tanna 57f01ae0a1 chore(workers/global): improve error message on parsing environment vars (#41324)
As part of #41323, we noticed that the error that's thrown isn't super
helpful, as it doesn't include the environment variable name.

To improve this, we can wrap the `Error` with the environment variable
name that's in use, as well as the error message.

In the future we can improve this further.
2026-02-19 11:59:28 +00:00
Jamie Tanna 2536f535c0 fix(workers/global): migrate string-based repositoryCacheForceLocal (#41323)
* fix(workers/global): migrate string-based `repositoryCacheForceLocal`

For users who had previously set `RENOVATE_X_REPO_CACHE_FORCE_LOCAL` to
a non-empty string, we can make sure to auto-migrate them to the
expected value of `true`.

Because this is an environment variable, we cannot use a migration, and
so instead need to handle it when we're performing the manual migration.

* test(workers/global): clarify empty `X_REPO_CACHE_FORCE_LOCAL` does not get migrated
2026-02-19 11:55:22 +00:00
Jamie Tanna 067a19490b feat: promote repositoryCacheForceLocal out of experimental (#41207)
We've been happily using this with Mend Renovate Self-Hosted customers
since introduction in 2024, and so we're happy making this
non-experimental now.

This follows other changes where we've promoted an experimental option
to non-experimental, and heavily driven by Claude Sonnet 4.5.

We can also rename config item to use the same `repositoryCache` prefix.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>
2026-02-16 11:20:30 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Sergei Zharinov 2b0e80b884 feat!: Switch to ESM modules (#40756) 2026-01-29 14:21:41 +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
Jamie Tanna 6a4fa3f245 refactor(presets): return merged presets from resolveConfigPresets (#40422)
As part of future changes, we want to log the shallow configuration (the
full resolved configuration, but without any internal Renovate
configuration presets), where we'll want to note which presets have not
been merged in.

Before that, we can start with an initial refactor to indicate which
have been merged, and return them.
2026-01-14 16:52:16 +00:00
Sergei Zharinov fe1573fed9 chore(lint): add oxlint for faster syntax linting (#40236)
feat(lint): add oxlint for faster syntax linting

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-01-13 14:43:43 +00:00
RahulGautamSingh 595eabd5b0 fix: log when limits are reached (#39917)
* log when limits are reached

* fixup! log when limits are reached

---------

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2025-12-11 10:42:29 +00:00
Birger Johan Nordølum 00db105f8c chore: fix typo (#39627)
atleast -> at least.
2025-11-29 13:39:45 +00:00
Jamie Tanna 1fc78a0326 fix(instrumentation): use Semantic Conventions for repository span (#39609)
As part of ongoing work to improve OpenTelemetry instrumentation of
Renovate in #38609, we can improve our repository instrumentation by
using Semantic Convention attributes for the platform, repo and owner.
2025-11-28 13:31:48 +00:00
Michael Kriese c641239c19 fix: use stricter types for renovate config (#39594)
* fix: use stricter types for renovate config

* fix: revert changes

* Apply suggestions from code review
2025-11-28 13:16:27 +00:00
Michael Kriese 050ac8d23b chore: better code coverage (#39518) 2025-11-25 15:01:54 +00:00
RahulGautamSingh 59fca8dbfa chore(limits): de-duplicate logs for same dep (#39413)
de-duplicate logs
2025-11-19 16:50:05 +00:00
Simon Berger cb1bd5a81b feat: allow configFileNames to be set through env (#39144)
* test: add failing test for reading configFileNames from env

* fix: move configFileNames handling to shared config parsing

* feat: allow configFileNames to be set through env

* fix: move unit test from file to index

* test: add test for setting configFileNames through cli

* fix: fix merge

* test: use multiple config file names in tests

* test: add a length check after adding custom filenames
2025-11-17 15:27:28 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
renovate[bot] b4ed9e65d9 chore(deps): update dependency @vitest/eslint-plugin to v1.3.23 (main) (#38702)
* chore(deps): update dependency @vitest/eslint-plugin to v1.3.23

| datasource | package               | from   | to     |
| ---------- | --------------------- | ------ | ------ |
| npm        | @vitest/eslint-plugin | 1.3.16 | 1.3.23 |

* remove now unnecessary exceptions

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2025-10-31 07:50:48 +00:00
RahulGautamSingh a86b32ea0f feat: configurable repo config filenames (#36644)
* feat: configurable repo config filenames

* docs: configFileNames

* fix tests

* update tests

* fix coverage

* Apply Suggestions

* refactor: remove platform-based filename filtering

* docs

* refactor

* docs: add note for config-validator use

* feat: add inherited config support

* fix: build

* fix lint

* fix test
2025-10-20 06:19:01 +00:00
renovate[bot] 1280fe4dc7 chore(deps): update dependency @vitest/eslint-plugin to v1.3.16 (main) (#38502)
* chore(deps): update dependency @vitest/eslint-plugin to v1.3.16

| datasource | package               | from   | to     |
| ---------- | --------------------- | ------ | ------ |
| npm        | @vitest/eslint-plugin | 1.3.13 | 1.3.16 |

* fix linting errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2025-10-13 09:24:15 +00:00
RahulGautamSingh 9799cb01c7 fix(config/parse): merge extends iff additionalConfigFile has extends (#37717) 2025-08-27 10:36:37 +00:00
RahulGautamSingh 35910b8c87 feat: add support for second file config (#37033)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2025-08-11 09:14:55 +00:00
RahulGautamSingh 37a1a93a06 refactor(config): move code for easier testing (#37297)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-08-04 15:04:55 +00:00
RahulGautamSingh 3691ff90b2 feat(config): baseBranchPatterns (#35579) 2025-07-14 19:05:27 +00:00
RahulGautamSingh 5adb95593f feat(config): variables (#35350) 2025-07-06 07:24:33 +00:00
RahulGautamSingh 8c7e931da3 feat(config)!: support jsonc in existing config + preset files (#36141)
Use JSONC parser for JSON config files.

Renovate will now officially support JSONC syntax in config files which are either explicitly (e.g. `renovate.json`) or implicitly (e.g. `.renovaterc`) JSON files.
You may continue using "pure" JSON in such files, or use JSONC syntax instead (e.g. trailing commas, comments).
Support for files ending in `.jsonc` will be added soon.

Note: this is not technically a breaking change as it is backwards-compatible with existing JSON support.
2025-06-19 11:01:54 +02:00
RahulGautamSingh 49fa1be464 feat(util): getEnv (#35161)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-06 18:37:28 +00:00
Claude Muller 22fc1acb26 fix(config): merge globalExtends before default config (#35521)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-05 09:46:24 +00:00
renovate[bot] 86408be681 build(deps): update dependency @sindresorhus/is to v7 (main) (#35682)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-02 09:43:35 +00:00
Rhys Arkins e7a4162169 refactor(config): set and delete keys early (#35679)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-02 08:15:56 +00:00
Rhys Arkins 319de90d4f feat(config)!: validate allowedCommands against post-compiled commands (#35564)
Drops `allowCommandTemplating` so that templating is always allowed. Changes validation logic so that `allowedCommands` are now compared to the post-compiled command instead of pre-compiled.

BREAKING CHANGE: `allowedCommands` filters need to be updated to match against the post-compiled `postUpgradeCommands` in cases where templating was in use.
2025-04-30 10:54:47 +02:00
Rhys Arkins a77a429d80 feat(autodiscoverFilter)!: support combined negative matches (#34707)
Rewrites `autodiscoverFilter` logic to use Renovate's "Glob or RegEx" syntax, allowing for negative matches to be combined.

BREAKING CHANGE: Syntax for autodiscoverFilter has been changed to allow for Glob, Regex, and negative matches.
2025-04-30 10:52:56 +02:00
RahulGautamSingh af1cc9902b fix(config): apply secrets to global config (#35266) 2025-04-22 08:34:22 +00:00
Michael Kriese a910126752 fix(worker): init user agent early (#35364) 2025-04-14 12:16:52 +00:00
RahulGautamSingh e0e53b9d76 refactor: move customEnvVariables to util folder (#35097) 2025-03-31 09:10:48 +00:00
renovate[bot] 94c073ab6b chore(deps): update linters (main) (#34869)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2025-03-23 17:57:04 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Michael Kriese 4f60a8b7fe test: mock git globally (#34783) 2025-03-13 15:48:02 +00:00
Michael Kriese b5ff90f2bd fix: improve coverage (#34667) 2025-03-06 17:05:19 +00:00
Michael Kriese a60c1c4752 fix(global): import config file as url (#34637) 2025-03-05 17:35:12 +00:00
Sebastian Poxhofer 78002a0993 feat: add RENOVATE_ prefix to Github com token and env host rules (#34568) 2025-03-05 12:54:30 +00:00
Michael Kriese b88eabcb9f feat(config): support .mjs config files (#34626) 2025-03-05 09:53:09 +01:00
Michael Kriese 3f0f6a04b6 build: compile with nodenext target (still cjs) (#34584) 2025-03-04 07:37:06 +00:00
Trim21 6e5731b554 test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00
RahulGautamSingh e5fb2e57ee feat(config/self-hosted): processEnv (#34137)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-02-17 11:21:19 +00:00
Rhys Arkins 12a62cc0c7 feat: rename allowedPostUpgradeCommands/allowPostUpgradeCommandTemplating (#32657) 2025-01-24 12:30:09 +00:00
RahulGautamSingh c57d3cc4e0 fix(workers/limits): rectify faulty if condition (#33735) 2025-01-21 16:32:32 +00:00
RahulGautamSingh 03f2229604 feat(config): allow multiple branch/pr limits (#32556) 2025-01-21 07:59:07 +00:00
RahulGautamSingh 0d23707604 refactor(logger): remove templating from WARN log messages (#33488) 2025-01-14 13:03:05 +00:00