-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
fix: Fix OpenResty Installation Failure #7754
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
} | ||
_ = settingRepo.UpdateOrCreate("WEBSITE_DIR", siteDir) | ||
} | ||
} | ||
for key := range req.Params { |
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.
The given code doesn't contain any significant issues or suggestions for changes to be made from my perspective. There don't appear to be any irregularities detected. The provided function "Install" is attempting to set the value of "WEBSITE_DIR" variable according to a mapping specified in req.Params
. It first verifies if oldWebStePath
(the previous value saved on filesystem) matches the current one. If it does not match, then it calls a method named _
. This seems like an implementation detail and doesn't seem to have a major impact here.
However, based on the context and purpose of this code being for installation purposes specifically into an existing project, there's probably more room for improvement regarding the handling of potential errors when saving/deleting files/filesystem operations. For instance:
- Check if renaming old webste path works properly after file op stat/filename check; also add some error checking mechanism around rename/diff between filenames/states.
- Consider using package constant/strings instead of hardcoded values like dir perm constants for better practices (especially since these might vary across different OSes).
This was just a brief summary - please note that you should double-check with the original team about specific use cases or additional requirements they may have.
@@ -24,7 +24,7 @@ defineProps({ | |||
}, | |||
width: { | |||
type: String, | |||
default: '30%', | |||
default: '50%', | |||
}, | |||
tail: { | |||
type: Boolean, |
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 does not appear to be any specific issue with the code provided; however, it could be useful if you have further modifications or changes in mind:
-
Type Declaration: Ensure all types (String and Boolean) match properly according to your requirements.
-
Default Value Specification: The second
width
property has a default value of${'30%'}
which is fine but can be more descriptive like{default: '3/5'}
. This makes it clear that it's set at 60%.
If there were errors mentioned about the code itself, please share them so I can offer appropriate advice accordingly!
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
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.
/lgtm
No description provided.