Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config)!: experimental flags #28187

Open
wants to merge 193 commits into
base: v38
Choose a base branch
from

Conversation

RahulGautamSingh
Copy link
Collaborator

@RahulGautamSingh RahulGautamSingh commented Mar 30, 2024

Changes

  • Converted all experimental env vars of type:boolean to experimental flags.
  • Added validation for both experimentalFlags
  • Added a new function, validateExperimentalFlag which has a list of allowedExperimentalFlags object which we use to check for invalid flags
  • Updated the self-hosted-configuration.md file to include information about the new experimentalFlags options.
  • Created a new doc file in the self-hosted-experimental-flags.md file for the experimental flags.
  • Added a new method getExperimentalFlag in the GlobalConfig which checks whether flag is set.

List of new flags:

Experimental Env Var Experimental Flag
RENOVATE_X_DISABLE_DOCKER_HUB_TAGS disableDockerHubTags
RENOVATE_X_EXEC_GPID_HANDLE execGpidHandle
RENOVATE_EXPERIMENTAL_NO_MAVEN_POM_CHECK noMavenPomCheck
RENOVATE_X_NUGET_DOWNLOAD_NUPKGS nugetDownloadNupkgs
RENOVATE_PAGINATE_ALL paginateAll
RENOVATE_X_REBASE_PAGINATION_LINKS rebasePaginationLinks
RENOVATE_X_REPO_CACHE_FORCE_LOCAL repoCacheForceLocal
RENOVATE_X_SUPPRESS_PRE_COMMIT_WARNING suppressPreCommitWarning
RENOVATE_X_YARN_PROXY yarnProxy
RENOVATE_X_USE_OPENPGP useOpenpgp

Context

Closes: #27879

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

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.

.

docs/usage/self-hosted-experimental.md Outdated Show resolved Hide resolved
lib/util/experimental-flags.ts Outdated Show resolved Hide resolved
docs/usage/self-hosted-experimental-flags.md Show resolved Hide resolved
lib/util/experimental-flags.ts Outdated Show resolved Hide resolved
lib/util/experimental-flags.ts Outdated Show resolved Hide resolved
lib/util/experimental-flags.ts Outdated Show resolved Hide resolved
lib/util/experimental-flags.ts Outdated Show resolved Hide resolved
RahulGautamSingh and others added 5 commits April 7, 2024 16:42
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
docs/usage/self-hosted-experimental-flags.md Show resolved Hide resolved
docs/usage/self-hosted-experimental-flags.md Outdated Show resolved Hide resolved
docs/usage/self-hosted-experimental-flags.md Outdated Show resolved Hide resolved
docs/usage/self-hosted-experimental-flags.md Outdated Show resolved Hide resolved
docs/usage/self-hosted-configuration.md Outdated Show resolved Hide resolved
docs/usage/self-hosted-configuration.md Outdated Show resolved Hide resolved
docs/usage/self-hosted-configuration.md Outdated Show resolved Hide resolved
lib/config/options/index.ts Outdated Show resolved Hide resolved
lib/config/validation.ts Outdated Show resolved Hide resolved
@viceice viceice changed the title refactor: experimental flags feat: experimental flags Apr 9, 2024
lib/config/global.ts Outdated Show resolved Hide resolved
lib/config/global.ts Outdated Show resolved Hide resolved
lib/config/validation.ts Outdated Show resolved Hide resolved
lib/util/cache/package/index.ts Outdated Show resolved Hide resolved
lib/util/s3.spec.ts Outdated Show resolved Hide resolved
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.

Convert experimental env into globalOnly experimentalFlags
8 participants