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

Refactor external_uiexternal_textures #142062

Merged
merged 6 commits into from
Jan 24, 2024

Conversation

matanlurey
Copy link
Contributor

@matanlurey matanlurey commented Jan 23, 2024

This PR makes no behavioral changes to executed code, and instead focuses on organization and naming:

  1. Almost1 anything named external_ui is renamed external_textures
  2. Extended the README to explain the intent of the test, as well as how to run it
  3. Renamed main.dart and main_test.dart to frame_rate_main.dart and frame_rate_test.dart (we'll add more)
  4. Did some refactoring of the test to make it more obvious what is being asserted (i.e. widgetBuilds and friends)

Given how complex (and in-flux) this directory is, I'm also requesting either John, Jonah or I review any changes.

Footnotes

  1. Except the name of the .ci.yaml task, i.e. name: Linux_pixel_7pro external_ui_integration_test because I'm apparently not able to change that without creating a new task as bringup: true and playing a bit of a dance. Maybe that's worth doing though (in future PRs)?

@github-actions github-actions bot added the a: text input Entering text in a text field or keyboard related problems label Jan 23, 2024
@matanlurey matanlurey changed the title WIP: Rename and refactor external_textures. Refactor external_uiexternal_textures Jan 23, 2024
@matanlurey matanlurey marked this pull request as ready for review January 23, 2024 21:07
@matanlurey
Copy link
Contributor Author

Ping @jonahwilliams just because I've never touched these files before :)

@matanlurey
Copy link
Contributor Author

/cc @jmagman as well (again, no behavioral impact - but names are changing!)

Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

I think this will work, but I've never renamed a devicelab task before.

LGTM

@@ -4272,7 +4272,7 @@ targets:
properties:
tags: >
["devicelab", "ios", "mac"]
task_name: external_ui_integration_test_ios
task_name: external_textures_integration_test_ios
Copy link
Contributor

Choose a reason for hiding this comment

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

This will affect the benchmark metrics as they are tied to task_name. If this is the way to go, you may want to give engine people a heads up. /cc @zanderso

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These aren't benchmarks confusingly.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -2175,7 +2175,7 @@ targets:
properties:
tags: >
["devicelab", "android", "linux", "pixel", "7pro"]
task_name: external_ui_integration_test
task_name: external_textures_integration_test
Copy link
Member

Choose a reason for hiding this comment

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

I believe this is only cosmetic, but I'd suggest keeping the task_name and the name field above matching. So the name above on line 2171 would change to Linux_pixel_7pro external_textures_integration_test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately I can't do that in a single PR because you can only rename a task by starting it as bringup: true. I can do that but I'll need a few more PRs.

@matanlurey matanlurey merged commit 2e2042f into flutter:master Jan 24, 2024
127 checks passed
@eliasyishak eliasyishak added the revert Autorevert PR (with "Reason for revert:" comment) label Jan 24, 2024
@eliasyishak
Copy link
Contributor

Reverting due to errors in post submit

Example of builder erroring out: https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_ios%20external_ui_integration_test_ios/9562/overview

Sample error

[2024-01-24 13:06:08.688564] [STDOUT] stdout: [  +59 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[2024-01-24 13:06:08.688645] [STDOUT] stdout: [        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[2024-01-24 13:06:08.689204] [STDOUT] stdout: [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[2024-01-24 13:06:08.689265] [STDOUT] stdout: [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[2024-01-24 13:06:08.689301] [STDOUT] stdout: [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[2024-01-24 13:06:08.689334] [STDOUT] stdout: [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[2024-01-24 13:06:08.689403] [STDOUT] stdout: [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[2024-01-24 13:06:08.689442] [STDOUT] stdout: [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[2024-01-24 13:06:08.689475] [STDOUT] stdout: [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[2024-01-24 13:06:08.707419] [STDOUT] stdout: [  +17 ms] "flutter drive" took 20,989ms.
[2024-01-24 13:06:08.713860] [STDOUT] stderr: [   +4 ms] Target file "lib/main.dart" not found.
[2024-01-24 13:06:08.714128] [STDOUT] stderr: [   +1 ms] 
[2024-01-24 13:06:08.714185] [STDOUT] stderr:            #0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1858:9)
[2024-01-24 13:06:08.714228] [STDOUT] stderr:            #1      DriveCommand.validateCommand (package:flutter_tools/src/commands/drive.dart:227:18)
[2024-01-24 13:06:08.714263] [STDOUT] stderr:            #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1713:11)
[2024-01-24 13:06:08.714294] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714325] [STDOUT] stderr:            #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1398:27)
[2024-01-24 13:06:08.714357] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714459] [STDOUT] stderr:            #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
[2024-01-24 13:06:08.714527] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714562] [STDOUT] stderr:            #5      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
[2024-01-24 13:06:08.714594] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714625] [STDOUT] stderr:            #6      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:355:9)
[2024-01-24 13:06:08.714656] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714686] [STDOUT] stderr:            #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
[2024-01-24 13:06:08.714717] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714747] [STDOUT] stderr:            #8      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:295:5)
[2024-01-24 13:06:08.714777] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714899] [STDOUT] stderr:            #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:119:9)
[2024-01-24 13:06:08.714943] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.714976] [STDOUT] stderr:            #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
[2024-01-24 13:06:08.715012] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.715043] [STDOUT] stderr:            #11     main (package:flutter_tools/executable.dart:90:3)
[2024-01-24 13:06:08.715100] [STDOUT] stderr:            <asynchronous suspension>
[2024-01-24 13:06:08.715183] [STDOUT] stderr: 
[2024-01-24 13:06:08.715238] [STDOUT] stderr: 
[2024-01-24 13:06:08.715324] [STDOUT] stdout: [        ] ensureAnalyticsSent: 0ms
[2024-01-24 13:06:08.715362] [STDOUT] stdout: [        ] Running 1 shutdown hook
[2024-01-24 13:06:08.715392] [STDOUT] stdout: [        ] Shutdown hooks complete
[2024-01-24 13:06:08.715422] [STDOUT] stdout: [        ] exiting with code 1

auto-submit bot pushed a commit that referenced this pull request Jan 24, 2024
@auto-submit auto-submit bot removed the revert Autorevert PR (with "Reason for revert:" comment) label Jan 24, 2024
auto-submit bot added a commit that referenced this pull request Jan 24, 2024
Reverts #142062
Initiated by: eliasyishak
This change reverts the following previous change:
Original Description:
This PR makes no _behavioral_ changes to executed code, and instead focuses on organization and naming:

1. Almost[^1] anything named `external_ui` is renamed `external_textures`
1. Extended the README to explain the intent of the test, as well as how to run it
1. Renamed `main.dart` and `main_test.dart` to `frame_rate_main.dart` and `frame_rate_test.dart` (we'll add more)
1. Did some refactoring of the test to make it more obvious what is being asserted (i.e. `widgetBuilds` and friends)

Given how complex (and in-flux) this directory is, I'm also requesting either John, Jonah or I review any changes.

[^1]: Except the name of the `.ci.yaml` task, i.e. `name: Linux_pixel_7pro external_ui_integration_test` because I'm apparently not able to change that without creating a new task as `bringup: true` and playing a bit of a dance. Maybe that's worth doing though (in future PRs)?
@yusuf-goog
Copy link
Contributor

@eliasyishak do you need to add the revert label to this issue?

@eliasyishak
Copy link
Contributor

Yep it was my mistake to open that other PR manually @yusuf-goog, the bot already created a new PR and reverted this change

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 25, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Jan 25, 2024
Roll Flutter from 19b06f4ee9a0 to a8efa771d6a3 (38 revisions)

flutter/flutter@19b06f4...a8efa77

2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from e2014f007f61 to 7c4ed15cb271 (1 revision) (flutter/flutter#142221)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from 5fa2e2920274 to e2014f007f61 (1 revision) (flutter/flutter#142213)
2024-01-25 andrewrkolos@gmail.com provide command to `FakeCommand::onRun` (flutter/flutter#142206)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from c346fd3d9ca1 to 5fa2e2920274 (1 revision) (flutter/flutter#142212)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from d4d8f668159b to c346fd3d9ca1 (1 revision) (flutter/flutter#142209)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from 499ed00bbda2 to d4d8f668159b (2 revisions) (flutter/flutter#142205)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4880592ca5ba to 499ed00bbda2 (6 revisions) (flutter/flutter#142202)
2024-01-25 ditman@gmail.com [ci] Adds test for web hot restart with const App. (flutter/flutter#141824)
2024-01-25 godofredoc@google.com Migrate android_view to linux_android_emu platform. (flutter/flutter#142184)
2024-01-25 matanlurey@users.noreply.github.com Refactor `external_ui` without making any name changes (I think) (flutter/flutter#142192)
2024-01-25 rmolivares@renzo-olivares.dev Fix text selection edge scrolling when inside a horizontal scrollable (flutter/flutter#140250)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from d7bf5ec1dcdd to 4880592ca5ba (2 revisions) (flutter/flutter#142186)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from 6a7f963dc751 to d7bf5ec1dcdd (2 revisions) (flutter/flutter#142185)
2024-01-24 polinach@google.com Reland "Remove hack from PageView." (flutter/flutter#142172)
2024-01-24 polinach@google.com Upgrade leak_tracker. (flutter/flutter#142162)
2024-01-24 godofredoc@google.com Migrate android views to devicelab. (flutter/flutter#142081)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from ed498f111d53 to 6a7f963dc751 (4 revisions) (flutter/flutter#142176)
2024-01-24 jaeyoi.dev@gmail.com Support wireless debugging for iOS 12 or earlier (flutter/flutter#141439)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4bc368ee5f74 to ed498f111d53 (5 revisions) (flutter/flutter#142167)
2024-01-24 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Refactor `external_ui` � `external_textures`" (flutter/flutter#142173)
2024-01-24 matanlurey@users.noreply.github.com Refactor `external_ui` � `external_textures` (flutter/flutter#142062)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from 0b9fce355df9 to 4bc368ee5f74 (3 revisions) (flutter/flutter#142157)
2024-01-24 jhy03261997@gmail.com Update navigationBar label's maxScaleFactor to meet GAR requirement (flutter/flutter#141998)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from b65556fa543e to 0b9fce355df9 (1 revision) (flutter/flutter#142147)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_2_4 to be unflaky (flutter/flutter#142115)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_2_4 to be unflaky (flutter/flutter#142111)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_1_4 to be unflaky (flutter/flutter#142110)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_3_4 to be unflaky (flutter/flutter#142112)
2024-01-24 greg@zulip.com Revise tooltip theme docs, including more cross-references (flutter/flutter#137316)
2024-01-24 godofredoc@google.com Run some tests explicitly in both arm and x64. (flutter/flutter#141910)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from ba3a70ce7722 to b65556fa543e (3 revisions) (flutter/flutter#142140)
2024-01-24 31859944+LongCatIsLooong@users.noreply.github.com Fixes #138773, port autocomplete to OverlayPortal (flutter/flutter#140285)
2024-01-24 jesus_sguerrero@hotmail.com Revert "[web] - Fix broken `TextField` in semantics mode when it's a sibling of `Navigator`" (flutter/flutter#142129)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_1_4 to be unflaky (flutter/flutter#142114)
2024-01-24 engine-flutter-autoroll@skia.org Roll Packages from 841fe90 to 8fbdf65 (2 revisions) (flutter/flutter#142139)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_3_4 to be unflaky (flutter/flutter#142116)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_4_4 to be unflaky (flutter/flutter#142113)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_4_4 to be unflaky (flutter/flutter#142117)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC bmparr@google.com,rmistry@google.com,stuartmorgan@google.com 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
...
arc-yong pushed a commit to Arctuition/packages-arc that referenced this pull request Jun 14, 2024
…r#5969)

Roll Flutter from 19b06f4ee9a0 to a8efa771d6a3 (38 revisions)

flutter/flutter@19b06f4...a8efa77

2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from e2014f007f61 to 7c4ed15cb271 (1 revision) (flutter/flutter#142221)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from 5fa2e2920274 to e2014f007f61 (1 revision) (flutter/flutter#142213)
2024-01-25 andrewrkolos@gmail.com provide command to `FakeCommand::onRun` (flutter/flutter#142206)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from c346fd3d9ca1 to 5fa2e2920274 (1 revision) (flutter/flutter#142212)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from d4d8f668159b to c346fd3d9ca1 (1 revision) (flutter/flutter#142209)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from 499ed00bbda2 to d4d8f668159b (2 revisions) (flutter/flutter#142205)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4880592ca5ba to 499ed00bbda2 (6 revisions) (flutter/flutter#142202)
2024-01-25 ditman@gmail.com [ci] Adds test for web hot restart with const App. (flutter/flutter#141824)
2024-01-25 godofredoc@google.com Migrate android_view to linux_android_emu platform. (flutter/flutter#142184)
2024-01-25 matanlurey@users.noreply.github.com Refactor `external_ui` without making any name changes (I think) (flutter/flutter#142192)
2024-01-25 rmolivares@renzo-olivares.dev Fix text selection edge scrolling when inside a horizontal scrollable (flutter/flutter#140250)
2024-01-25 engine-flutter-autoroll@skia.org Roll Flutter Engine from d7bf5ec1dcdd to 4880592ca5ba (2 revisions) (flutter/flutter#142186)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from 6a7f963dc751 to d7bf5ec1dcdd (2 revisions) (flutter/flutter#142185)
2024-01-24 polinach@google.com Reland "Remove hack from PageView." (flutter/flutter#142172)
2024-01-24 polinach@google.com Upgrade leak_tracker. (flutter/flutter#142162)
2024-01-24 godofredoc@google.com Migrate android views to devicelab. (flutter/flutter#142081)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from ed498f111d53 to 6a7f963dc751 (4 revisions) (flutter/flutter#142176)
2024-01-24 jaeyoi.dev@gmail.com Support wireless debugging for iOS 12 or earlier (flutter/flutter#141439)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4bc368ee5f74 to ed498f111d53 (5 revisions) (flutter/flutter#142167)
2024-01-24 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Refactor `external_ui` � `external_textures`" (flutter/flutter#142173)
2024-01-24 matanlurey@users.noreply.github.com Refactor `external_ui` � `external_textures` (flutter/flutter#142062)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from 0b9fce355df9 to 4bc368ee5f74 (3 revisions) (flutter/flutter#142157)
2024-01-24 jhy03261997@gmail.com Update navigationBar label's maxScaleFactor to meet GAR requirement (flutter/flutter#141998)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from b65556fa543e to 0b9fce355df9 (1 revision) (flutter/flutter#142147)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_2_4 to be unflaky (flutter/flutter#142115)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_2_4 to be unflaky (flutter/flutter#142111)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_1_4 to be unflaky (flutter/flutter#142110)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_3_4 to be unflaky (flutter/flutter#142112)
2024-01-24 greg@zulip.com Revise tooltip theme docs, including more cross-references (flutter/flutter#137316)
2024-01-24 godofredoc@google.com Run some tests explicitly in both arm and x64. (flutter/flutter#141910)
2024-01-24 engine-flutter-autoroll@skia.org Roll Flutter Engine from ba3a70ce7722 to b65556fa543e (3 revisions) (flutter/flutter#142140)
2024-01-24 31859944+LongCatIsLooong@users.noreply.github.com Fixes #138773, port autocomplete to OverlayPortal (flutter/flutter#140285)
2024-01-24 jesus_sguerrero@hotmail.com Revert "[web] - Fix broken `TextField` in semantics mode when it's a sibling of `Navigator`" (flutter/flutter#142129)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_1_4 to be unflaky (flutter/flutter#142114)
2024-01-24 engine-flutter-autoroll@skia.org Roll Packages from 841fe90 to 8fbdf65 (2 revisions) (flutter/flutter#142139)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_3_4 to be unflaky (flutter/flutter#142116)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_x64 build_tests_4_4 to be unflaky (flutter/flutter#142113)
2024-01-24 fluttergithubbot@gmail.com Marks Mac_arm64 build_tests_4_4 to be unflaky (flutter/flutter#142117)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC bmparr@google.com,rmistry@google.com,stuartmorgan@google.com 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
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: text input Entering text in a text field or keyboard related problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants