Skip to content

shell: Rename first-frame tests AddFirstFrameCallback* - #193418

Merged
cbracken merged 2 commits into
flutter:masterfrom
cbracken:fix-add-ff-callback-tests
Sep 29, 2026
Merged

cbracken merged 2 commits into
flutter:masterfrom
cbracken:fix-add-ff-callback-tests

Conversation

@cbracken

@cbracken cbracken commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

In #191841, we replaced Shell::WaitForFirstFrame with Shell::AddFirstFrameCallback but didn't update the test names to match the new API.

In particular, WaitForFirstFrameTimeout no longer tested that any caller-visible timeout fired, since the new API manages the timeout internally. The test now just verifies the first frame callback doesn't fire when no frame has rendered.

Just naming changes, no semantic changes.

Issue: b/521830222

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

In flutter#191841, we replaced `Shell::WaitForFirstFrame` with
`Shell::AddFirstFrameCallback` but didn't update the test names to
reflect the new API.

In particular, `WaitForFirstFrameTimeout` no longer actually tests that
any caller-visible timeout fires, since the new API manages the timeout
internally. The test now just verifies the first frame callback doesn't
fire when no frame has rendered.

Just naming changes, no semantic changes.

Issue: b/521830222
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 27, 2026
@github-actions github-actions Bot added the engine flutter/engine related. See also e: labels. label Sep 27, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request renames several unit tests in shell_unittests.cc from WaitForFirstFrame variants to AddFirstFrameCallback variants to reflect updated naming conventions. There are no review comments, and I have no feedback to provide.

@cbracken
cbracken enabled auto-merge September 28, 2026 20:39
@cbracken
cbracken added this pull request to the merge queue Sep 29, 2026
Merged via the queue into flutter:master with commit fab9915 Sep 29, 2026
18 checks passed
@cbracken
cbracken deleted the fix-add-ff-callback-tests branch September 29, 2026 01:12
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Sep 29, 2026
flutter/flutter@c5a061b...55b8f88

2026-09-29 [email protected] [Android 17] Added Android 17 device to Firebase tests (flutter/flutter#193251)
2026-09-29 [email protected] [engine] Fix remaining `unawaited_futures` lints (flutter/flutter#193508)
2026-09-29 [email protected] shell: Rename first-frame tests AddFirstFrameCallback* (flutter/flutter#193418)
2026-09-28 [email protected] Enable `unawaited_futures` lint across the Flutter repository (flutter/flutter#193125)
2026-09-28 [email protected] Upgrade flutter/flutter to Roblectric 4.17 (flutter/flutter#193369)
2026-09-28 [email protected] [engine] Decode animation frames with alpha after an opaque first frame (flutter/flutter#193113)
2026-09-28 [email protected] Allow macOS tests to use macOS 15 or 26 (flutter/flutter#193317)
2026-09-28 [email protected] Cleanup DDC SDK build targets (flutter/flutter#193193)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants