-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add an API for releng to submit entirely new locales #7908
Comments
I'd have to take a closer look at the existing signing API but I think it could be added there. See also #5348 which describes the missing data we'd need a default value for. |
I still think like I said in #5348, we should take the opportunity to build basic support for creating via /api/addons (e.g. /api/addons/upload to handle the upload, then a POST|PUT on /api/addons to create the addon, with necessary metadata) |
Note that currently, we don't automatically set |
Creating a new API would be kind of defeating the purpose, no? It means that you need to know in advance that you need to do something different for new langpacks, and at that point you could as well just submit it manually. I think it makes sense to create a langpack listing if we get something we didn't have before via the current API. Langpack listings aren't particularly distinctive and they could be edited to something nicer later on if needed. |
Releng submits langpacks automatically, and forcing a manual step in there breaks our automation. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions. |
This hit us in 91.0b2, it's still important for RelEng to get fixed on AMO side. Every time this breaks, it requires RelEng to perform the manual fix. It impacts RelMan as well if we're not around. |
Note to self: TIL #5348 will be a good starting point to fixing this issue. |
(Please ignore my earlier comment in case you got an email notification). I'd like to understand why you were hit by this recently. Until this API has been implemented, we have an established process to get new langpacks added manually. /cc @flodolo Could you expand what went wrong or why that didn't work this time? |
Per this issue's description, the API requested is to add new locales (i.e., new langpacks), so we don't have to submit them manually. Requiring manual steps in an otherwise automated release blocks releases on a handful of individuals. The manual steps are a considerable pain point. |
While I don't have any visibility over what happens on the RelEng's side, I don't think the problem happened only this time, it happens every time there's new locale (which is not frequent, possibly making things even worse). There are some manual steps I need to do once the langpack is available, but that's acceptable on my side, given everything is manual to get to that point. |
#5348 would be the base for any support for lang packs to be submitted entirely automatically, but we'll keep this issue open because langpacks will certainly need some special support adding - if not a separate endpoint. (In particular, you need the ability to submit an xpi without knowing if it's a new add-on or a new version, which is something that ends up being problematic for add-ons in general.) |
mozilla/addons-server#19342 will allow an upload to be sent as a PUT request to Some things to note:
|
I forgot to double check this! We have some automatic detection for dictionaries but only dictionaries. Logged #8802 |
@eviljeff I'm stuck with a 400 response even if I add version as form-data. Am I doing something wrong? |
@ioanarusiczki it looks like you're sending for data that would be sent for a version create request, but PUT needs the addon create request data. |
@eviljeff If I take version out it would throw the same error -> that version is required |
yes, a |
@eviljeff Ah, I thought the whole idea is to make one request and skip the upload , I got confused reading the discussions around it. Alright , then I know what to do, thanks! |
I verified this on -dev:
|
yeah, that's odd - it should be a consistent error. That it's changing implies that something is saved/changed even when there's an error, which is also isn't good. Can you file a follow-up? |
The current signing API does not support submission of the first listed add-on version, due to required extra meta-data. To remove the obstacles and avoid breakage in the release process, we could add an API that support this specifically for langpack submissions from the releng account.
When a the first listed version gets submitted through the API, AMO will set the required metadata to some hard-coded defaults, for example setting the license etc.
/cc @escapewindow
The text was updated successfully, but these errors were encountered: