-
Notifications
You must be signed in to change notification settings - Fork 34
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
Standardize git_repository_url
for better parsing
#622
Comments
Thank you for the report, @aliceinwire! We standardized the URL quite a while ago: https://github.com/kernelci/kcidb-io/blob/308e85f914b687a5544c41bec7c86a752dec8949/kcidb_io/schema/v04_05.py#L210-L224 Basically, the description there is trying to say: "send us the shortest possible HTTPS URL" (that is, e.g. if credentials are not needed, drop them, use shortest path, etc.). And "If that's not available, send us the shorted Git URL". That should cover everything (unless we really need unencrypted HTTP). The problem is of course to get everyone to comply correctly. |
kcidb have some benefit from knowing the repository protocol? |
I would love to have all of them HTTPS, but we had to add an exception in case it is not available. One of the maintainer repos is only available over git://. KCIDB doesn't have any benefits from knowing the repo protocol, except having a URL which could actually be used.
That's why we have the "Use git://, only if https:// is unavailable" rule. The rules are aimed at producing preferred and unique repo URLs. There's still discrepancy in the use of trailing slash, but we can deal with it later. |
@aliceinwire, is this a satisfactory approach for you, can we close this? |
there is still no way for know if is git:// or https:// from kci-dev |
Hmm, I'm not sure what that exactly means and why kci-dev can't get the URL from KCIDB, but I would say if you simply default to |
kci-dev is getting the url from the git config file and standardize clean by default whatever link to "https://" without possibility to know how the link is saved on kcidb what is the only link exception? couldn't find it from your link |
I think support for this was actually requested by KernelCI, because they had this repository in the configuration: I think you can safely hardcode this to Regarding changing the schema to require |
I don't know off hand about rmk's repo or the hosting, I know most people running servers are happier with https:// than git:// these days since it's a bit friendlier to host but it does require some setup. |
kci-dev is currently matching repository git configurations to kcidb
git_repository_url
The problem is that there is no way fro kci-dev to know if the url as been saved with git:// or http:// or https://
in same rare case the url could have a guest username and password
I propose to standardize
git_repository_url
in kcidb to the currently most used protocolhttps://
without any authentication. this could be done easy from the result committer by cleaning the url to be sent or even directly by kcidb with something similar to what kci-dev is doing kernelci/kci-dev#76 (comment)ref PR: kernelci/kci-dev#76
The text was updated successfully, but these errors were encountered: