-
Notifications
You must be signed in to change notification settings - Fork 3
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
Set up dry-run
#41
Comments
That seems to be a great idea @minhqdao . |
Hi @minhqdao , I have added the functionality for dry-run , to send a request for a dry run you would have to just add form field |
Are both package and token being verified, if the latter is provided? And if not, is the package being validated ignoring the token? |
@minhqdao I think we should only validate the package when a token is available else it would be very easy to break/ddos the backend if we don't restrict by token as it would be a simple post request only and for each post request as we have to create a new docker container for the verification of package (for security purposes). |
Let's always include the token then. |
I uploaded a package using |
@minhqdao this is due to the fact that the url hardcoded in the fpm ( https://github.com/fortran-lang/fpm/blob/ee397acad30d4891bb0fcfcf3578841f2dd0c5bd/src/fpm_settings.f90#L13 ) is of the @arteevraina 's fork which would not have been updated till the latest commit . can you retry using my forks API url: https://henilp105.vercel.app/ ? |
@henilp105 Do you think it should be good that I update the live testing url with the latest changes ? |
But I can now test Henil's url before you update the "live testing url". |
I get this as an response although my "file type" hasn't changed (still a tarball):
|
@minhqdao Thanks , earlier we didn't have a restriction on the file type , but in #36 I had added the restriction to restrict the file type to |
We are in the process of setting up a common base url , it is taking time as we have to get this setup with numfocus , It will be up soon. |
I understand that it takes time. But it has nothing to do with NumFOCUS. You can set up any url you want. Main thing is that |
|
I Agree, but We intend to setup a dev and a prod version of the registry like |
A "dry run" for uploading a package means that the uploaded package goes through every validation step but in the end isn't stored in the database. It is a "simulated run". However, it is necessary that the dry run is performed via the backend to make sure that all the requirements of the backend for uploading the package are met.
We could optionally include verification of the token. If the token is provided, it will be validated. If it is missing, only the package will be validated without the token.
Instead of a success message like "Upload successful.", a message like "Dry run successful." should be returned. In case a validation step failes, the same error message would be returned as if it was an actual upload attempt.
The text was updated successfully, but these errors were encountered: