Skip to content

fix(workers/global): migrate string-based repositoryCacheForceLocal#41323

Merged
jamietanna merged 2 commits intomainfrom
migration/x-enabled
Feb 19, 2026
Merged

fix(workers/global): migrate string-based repositoryCacheForceLocal#41323
jamietanna merged 2 commits intomainfrom
migration/x-enabled

Conversation

@jamietanna
Copy link
Contributor

@jamietanna jamietanna commented Feb 19, 2026

Changes

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.

Context

Please select one of the below:

  • This closes an existing Issue: Closes #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository:

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.
@jamietanna jamietanna changed the title fix(migrations): migrate string-based repositoryCacheForceLocal fix(workers/global): migrate string-based repositoryCacheForceLocal Feb 19, 2026
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise lgtm

@jamietanna jamietanna requested a review from viceice February 19, 2026 11:49
@jamietanna jamietanna marked this pull request as ready for review February 19, 2026 11:49
jamietanna added a commit that referenced this pull request Feb 19, 2026
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.
@jamietanna jamietanna added this pull request to the merge queue Feb 19, 2026
Merged via the queue into main with commit 2536f53 Feb 19, 2026
47 of 67 checks passed
@jamietanna jamietanna deleted the migration/x-enabled branch February 19, 2026 12:01
github-merge-queue bot pushed a commit that referenced this pull request Feb 19, 2026
…ars (#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.
@github-actions
Copy link
Contributor

🎉 This PR is included in version 43.25.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants