-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use git diff
instead of GitHub's API to detect if manifest fields changed during validation
#7599
Conversation
Codecov Report
|
git diff
instead of GitHub's API to detect if manifest fields changed during validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs look good
What does this PR do?
Updates the
ddev validate manifest
command to:* remove the
-i
option* remove the
repo_url
optionand switch the method used to detect if a manifest file changed to use a local git diff instead of the github api.
Motivation
Using local git is much faster (and less error prone) than reaching out to the github API for each integration's manifest content. Locally the runtime of the command went from ~45 seconds down to ~3 seconds.
Additionally this lets us work with private integration repos since the detection is all done locally.
This comes with the drawback of no longer supporting the
fix
flag for this specific part of the validation.Additional Notes
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached