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

[CP][iOS] increase max concurrent background tasks to 64. #164506

Merged

Conversation

jonahwilliams
Copy link
Member

Fixes #161142

Partial workaround for flutter#161142
. Since this was an arbitrary number anyway we can increase it a bit.
@jonahwilliams jonahwilliams requested a review from jtmcdole March 3, 2025 19:05
@jonahwilliams jonahwilliams added the cp: stable cherry pick this pull request to stable release candidate branch label Mar 3, 2025
@github-actions github-actions bot added engine flutter/engine repository. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Mar 3, 2025
@jonahwilliams jonahwilliams added cp: review Cherry-picks in the review queue and removed engine flutter/engine repository. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Mar 3, 2025
Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

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

LGTM; still working on the hotfix so I think we merge this after?

@github-actions github-actions bot added engine flutter/engine repository. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Mar 6, 2025
@camsim99 camsim99 added the cp: approved Approved cherry-pick request label Mar 6, 2025
@@ -57,7 +57,7 @@ class Context {
/// This number was arbitrarily chosen. The idea is that this is a somewhat
/// rare situation where tasks happen to get executed in that tiny amount of
/// time while an app is being backgrounded but still executing.
static constexpr int32_t kMaxTasksAwaitingGPU = 10;
static constexpr int32_t kMaxTasksAwaitingGPU = 64;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a test as part of another pr for this? Or is this fix something that is not testable?

@reidbaker
Copy link
Contributor

I will also take @jtmcdole override that we need a test.

@jtmcdole
Copy link
Contributor

I will also take @jtmcdole override that we need a test.

It's a magic number. I don't believe there's value in writing a test for the cherry pick. I'll ask if we can add something later to only passes if this was set to 64 (e.g. creating a bunch of images)

Copy link
Contributor

@reidbaker reidbaker left a comment

Choose a reason for hiding this comment

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

can apply autosubmit after the changelog is updated. I would do it now but I would prefer a review on what I wrote.

@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 11, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 11, 2025
Copy link
Contributor

auto-submit bot commented Mar 11, 2025

autosubmit label was removed for flutter/flutter/164506, because - The status or check suite Mac tool_integration_tests_1_5 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 11, 2025
Copy link
Contributor

auto-submit bot commented Mar 11, 2025

autosubmit label was removed for flutter/flutter/164506, because Pull request flutter/flutter/164506 is not in a mergeable state.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 11, 2025
@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 12, 2025
@auto-submit auto-submit bot merged commit 9999151 into flutter:flutter-3.29-candidate.0 Mar 12, 2025
150 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App cp: approved Approved cherry-pick request cp: review Cherry-picks in the review queue cp: stable cherry pick this pull request to stable release candidate branch e: impeller Impeller rendering backend issues and features requests engine flutter/engine repository. See also e: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants