Skip to content

Build: avoid breaking builds when a new argument is added to a task #10374

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

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Jun 1, 2023

For #10289 we are going to need to pass a new argument (build_api_key). And since we deploy webs first,
builders will have the old task that doesn't match the new signature, and the task will fail.

To avoid this, we can just accept any kwargs,
this obviously only works if the change is backwards compatible with the old code from the builders (in this case it will be).

For #10289
we are going to need to pass a new argument (build_api_key).
And since we deploy webs first,
builders will have the old task that doesn't match the new signature,
and the task will fail.

To avoid this, we can just accept any kwargs,
this obviously only works if the change is backwards compatible
with the old code from the builders (in this case it will be).
@stsewd stsewd requested a review from a team as a code owner June 1, 2023 01:06
@stsewd stsewd requested a review from humitos June 1, 2023 01:06
@humitos
Copy link
Member

humitos commented Jun 1, 2023

We can also change the deploy order a bit and deploy web-celery after the builders if that's easier/better

@humitos
Copy link
Member

humitos commented Jun 1, 2023

Oh, these are tasks that run on the builders. OK. I think this makes sense as a general solution too 👍🏼

@stsewd stsewd merged commit 251ff12 into main Jun 1, 2023
@stsewd stsewd deleted the avoid-breaking-builds-on-task-params-changes branch June 1, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants