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

docs(core/config): Experimental feature handling #16183

Merged

Conversation

Gabriel-Ladzaretti
Copy link
Collaborator

Changes

Add experimental entry to RenovateOptionBase.

Context

Closes #14427

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 tick 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
  • Generated mkdocs

@Gabriel-Ladzaretti
Copy link
Collaborator Author

Generated docs -
image

Docs diff -
image

lib/config/options/index.ts Outdated Show resolved Hide resolved
tools/docs/config.ts Outdated Show resolved Hide resolved
tools/docs/config.ts Outdated Show resolved Hide resolved
Gabriel-Ladzaretti and others added 2 commits June 22, 2022 17:45
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@Gabriel-Ladzaretti
Copy link
Collaborator Author

Updated to the latest commit:
image
diff is basically the same as previously above

@Gabriel-Ladzaretti Gabriel-Ladzaretti marked this pull request as ready for review June 22, 2022 19:24
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.

please fix the wrong merge

@Gabriel-Ladzaretti
Copy link
Collaborator Author

please fix the wrong merge

i dont quite follow, what do you mean exactly ? i didnt merge anything in this PR 😶

@viceice
Copy link
Member

viceice commented Jun 22, 2022

sorry, the GitHub app showed wrong stuff

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.

please fix the wrong merge

wrong message

docs/usage/self-hosted-configuration.md Outdated Show resolved Hide resolved
tools/docs/config.ts Outdated Show resolved Hide resolved
lib/config/options/index.ts Outdated Show resolved Hide resolved
lib/config/options/index.ts Outdated Show resolved Hide resolved
@viceice viceice changed the title feat(core/config): Experimental feature handling docs(core/config): Experimental feature handling Jun 23, 2022
lib/config/options/index.ts Outdated Show resolved Hide resolved
tools/docs/config.ts Outdated Show resolved Hide resolved
let optionName = '';
let start = 0;
for (const [i, line] of lines.entries()) {
if (line.startsWith('##')) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (line.startsWith('##')) {
if (line.startsWith('## ') || line.startsWith('### ')) {

We've also ####, which aren't options but sub header. Not sure if we should render the warning before or after those 🤔
@rarkins WDYT?

headerIndex = configOptionsRaw.indexOf(`### ${option.name}`);

if (!indexed[option.name]) {
return;
Copy link
Member

Choose a reason for hiding this comment

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

This is an error, docs should fail, so log an error and throw to abort

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this happens quite a lot, options from lib/config/options/index.ts contains config options from both self-hosted-configuration.md and configuration-options.md and we are doing one file at a time.

Copy link
Member

Choose a reason for hiding this comment

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

Then we should check the globalOnly flag. Value should match bot variable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

so now it seems that options also includes keys from renovate-schema.json.
guess we cant throw here.

Complete list of such values

ansible
ansible-galaxy
argocd
autodiscover
autodiscoverFilter
azure-pipelines
baseDir
batect
batect-wrapper
bazel
bazelisk
bitbucket-pipelines
buildkite
bundler
cake
cargo
cdnurl
circleci
cloudbuild
cocoapods
composer
conan
deps-edn
docker-compose
dockerfile
droneci
flux
forceCli
fvm
git-submodules
github-actions
gitlabci
gitlabci-include
gomod
gradle
gradle-wrapper
helm-requirements
helm-values
helmfile
helmsman
helmv3
homebrew
html
jenkins
jsonnet-bundler
kubernetes
kustomize
leiningen
logFile
logFileLevel
maven
meteor
mix
nodenv
npm
nuget
nvm
pip-compile
pip_requirements
pip_setup
pipenv
poetry
prCommitsPerRunLimit
pre-commit
pub
pyenv
redisUrl
regex
repositories
ruby-version
sbt
setup-cfg
swift
terraform
terraform-version
terragrunt
terragrunt-version
travis
velaci

Copy link
Member

Choose a reason for hiding this comment

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

don't they have a header in one of the docs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

some do but not in self-hosted-configuration.md or configuration-options.md like managers. others have none, e.g. bitbucket-pipelines.

Copy link
Member

Choose a reason for hiding this comment

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

So our tests are wrong, every option should have a corresponding entry 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So our tests are wrong, every option should have a corresponding entry

i think we are good now, every option has an entry in self-hosted-configuration.md or configuration-options.md, otherwise its a manager that should have its own readme file which is covered by lib/modules/manager/metadata.spec.ts.

tools/docs/config.ts Outdated Show resolved Hide resolved
tools/docs/config.ts Outdated Show resolved Hide resolved
@viceice
Copy link
Member

viceice commented Jun 23, 2022

classified as docs, because no runtime change for renovate, so no relerase required 😉

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
tools/docs/config.ts Outdated Show resolved Hide resolved
@viceice
Copy link
Member

viceice commented Jun 23, 2022

btw: you should also remove releaseStatus in this PR it's unused and obsolete

image

@Gabriel-Ladzaretti
Copy link
Collaborator Author

@Gabriel-Ladzaretti Gabriel-Ladzaretti added the status:blocked Issue is blocked by another issue or external requirement label Jun 23, 2022
# Conflicts:
#	test/website-docs.spec.ts
@Gabriel-Ladzaretti Gabriel-Ladzaretti removed the status:blocked Issue is blocked by another issue or external requirement label Jun 24, 2022
rarkins
rarkins previously approved these changes Jun 25, 2022
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.

just a small neat

tools/docs/config.ts Outdated Show resolved Hide resolved
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@rarkins rarkins merged commit 26cf208 into renovatebot:main Jun 25, 2022
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 32.98.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Gabriel-Ladzaretti Gabriel-Ladzaretti deleted the 14427-Experimental-feature-handling branch June 26, 2022 07:22
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Experimental feature handling
4 participants