Skip to content
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

Remove DEDUPLICATE_BUILDS feature flag #7306

Closed
wants to merge 1 commit into from

Conversation

humitos
Copy link
Member

@humitos humitos commented Jul 21, 2020

We have been testing this for some weeks now and we haven't seen any issue with
it. We are ready to remove the feature flag and make this the default behavior.

We have been testing this for some weeks now and we haven't seen any issue with
it. We are ready to remove the feature flag and make this the default behavior.
@humitos humitos requested a review from a team July 21, 2020 16:50
@stsewd
Copy link
Member

stsewd commented Jul 22, 2020

You can also do a final test by making the flag Historical default is True

@ericholscher
Copy link
Member

Yea, let's set the feature flag for a week before we fully remove it.

Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on setting the feature flag to historical_deafult_true for a week.

@stsewd
Copy link
Member

stsewd commented Aug 5, 2020

I have marked this one as default true today.

@humitos
Copy link
Member Author

humitos commented Aug 18, 2020

@stsewd @ericholscher are we ready to merge this PR now?

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some problems with one of our repos, not sure if we want so solve that first.

@ericholscher
Copy link
Member

Yea, I feel like without being able to cancel a build, you can get stuck in a state where it's getting deduped but the build failed and didn't report status. Pretty bad UX, which was happening on test-builds.

@humitos
Copy link
Member Author

humitos commented Aug 19, 2020

I'm going to mark this PR as blocked for now since it will have a big impact and could bring issues to some projects.

@humitos humitos added the Status: blocked Issue is blocked on another issue label Aug 19, 2020
@humitos
Copy link
Member Author

humitos commented Jul 1, 2021

This is still a good improvement to reduce our servers load, but we need a smarter "Finish inactive builds" first. I experimented with this at #8269

@humitos humitos self-assigned this Feb 1, 2022
@humitos
Copy link
Member Author

humitos commented Mar 31, 2022

@ericholscher

I feel like without being able to cancel a build, you can get stuck in a state where it's getting deduped but the build failed and didn't report status

We had implemented the ability to cancel a build now. Should we solve the conflicts and try to move forward with this PR now? The first test would be to re-enable DEDUPLICATE_BUILDS for all projects again. If that works, we can recover this PR.

@humitos humitos removed the Status: blocked Issue is blocked on another issue label Mar 31, 2022
@ericholscher
Copy link
Member

@humitos yep. Thought we did hit some issues with cancelling builds not actually cancelling them in the UX, which made users struggle with their concurrency limit.

@humitos
Copy link
Member Author

humitos commented Aug 25, 2022

Today, while taking a look at #8961I checked if the DEDUPLICATE_BUILDS feature was enabled, and it seems we had enabled it for a long time now. So, I think we can recover this PR, solve the conflicts and merge it, probably.

Screenshot_2022-08-25_11-57-02

I think this is currently working fine because we added the condition that only applies to builds triggered 5 minutes ago only:

# By filtering for builds triggered in the previous 5 minutes we
# avoid false positives for builds that failed for any reason and
# didn't update their state, ending up on blocked builds for that
# version (all the builds are marked as DUPLICATED in that case).
# Adding this date condition, we reduce the risk of hitting this
# problem to 5 minutes only.
date__gte=timezone.now() - datetime.timedelta(minutes=5),

@humitos
Copy link
Member Author

humitos commented Aug 29, 2022

This PR won't probably be needed if we move forward with #9549 😄

humitos added a commit that referenced this pull request Sep 8, 2022
With the introduction of `CANCEL_OLD_BUILDS` we are moving away from the
`DEDUPLICATE_BUILDS` feature since these scenario is managed in a better way by
the new feature.

Closes #7306
Related #9549
@humitos humitos closed this in #9591 Oct 6, 2022
@stsewd stsewd deleted the humitos/rollout-dedup-builds branch October 6, 2022 17:18
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.

3 participants