flutter/packages/flutter_tools/test/general.shard/base
auto-submit[bot] a01eac78ee
Reverts "Reland #128236 "Improve build output for all platforms" (#145376)" (#145487)
Reverts: flutter/flutter#145376
Initiated by: loic-sharma
Reason for reverting: It caused the following post-submit failures:

1. https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8752928710548811665/+/u/run_run_release_test_windows/stdout
2. https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8752927564747697169/+/u/run_run_release_test_windows/stdout
Original PR Author: guidezpl

Reviewed By: {loic-sharma}

This change reverts the following previous change:
Reland #128236, reverted in https://github.com/flutter/flutter/pull/143125 and https://github.com/flutter/flutter/pull/145261.

This PR contains 3 additional commits, fixing post-submit tests on Android and Windows.

## Original description

Improves the build output:

1. Gives confirmation that the build succeeded, in green
1. Gives the path to the built executable, without a trailing period to make it slightly easier to cmd/ctrl+open
1. Gives the size of the built executable (when the built executable is self contained) 

### `apk`, `appbundle` 

<img width="607" alt="image" src="https://github.com/flutter/flutter/assets/6655696/ecc52abe-cd2e-4116-b22a-8385ae3e980d">

<img width="634" alt="image" src="https://github.com/flutter/flutter/assets/6655696/8af8bd33-c0bd-4215-9a06-9652ee019436">

### `macos`, `ios`, `ipa`
Build executables are self-contained and use a newly introduced `OperatingSystemUtils.getDirectorySize`.

<img width="514" alt="image" src="https://github.com/flutter/flutter/assets/6655696/b5918a69-3959-4417-9205-4f501d185257">

<img width="581" alt="image" src="https://github.com/flutter/flutter/assets/6655696/d72fd420-18cf-4470-9e4b-b6ac10fbcd50">

<img width="616" alt="image" src="https://github.com/flutter/flutter/assets/6655696/5f235ce1-252a-4c13-898f-139f6c7bc698">

### `windows`, `linux`, and `web`
Build executables aren't self-contained, and folder size can sometimes overestimate distribution size, therefore their size isn't mentioned (see discussion below).

<img width="647" alt="image" src="https://github.com/flutter/flutter/assets/6655696/7179e771-1eb7-48f6-b770-975bc073437b">

<img width="658" alt="image" src="https://github.com/flutter/flutter/assets/6655696/a6801cab-7b5a-4975-a406-f4c9fa44d7a2">

<img width="608" alt="image" src="https://github.com/flutter/flutter/assets/6655696/ee7c4125-a273-4a65-95d7-ab441edf8ac5">

### Size reporting
When applicable, the printed size matches the OS reported size.

- macOS
    <img width="391" alt="image" src="https://github.com/flutter/flutter/assets/6655696/881cbfb1-d355-444b-ab44-c1a6343190ce">
- Windows
    <img width="338" alt="image" src="https://github.com/flutter/flutter/assets/6655696/3b806def-3d15-48a9-8a25-df200d6feef7">
- Linux   
    <img width="320" alt="image" src="https://github.com/flutter/flutter/assets/6655696/89a4aa3d-2148-4f3b-b231-f93a057fee2b">

## Related issues
Part of #120127
Fixes https://github.com/flutter/flutter/issues/121401
2024-03-20 18:18:25 +00:00
..
analyze_size_test.dart Clean up lint ignores (#144229) 2024-02-27 23:21:03 +00:00
async_guard_test.dart fixes to anticipate next Dart linter release (#127211) 2023-05-19 21:27:24 +00:00
bot_detector_test.dart [flutter_tools] fix null check in crash reporter (#80382) 2021-04-13 14:04:25 -07:00
build_test.dart Set template and migrate apps to iOS 12 minimum (#140823) 2024-01-03 00:47:40 +00:00
command_help_test.dart Support disabling animations in the CLI (#132239) 2023-08-23 03:35:22 +00:00
common_test.dart use throwsXxx instead of throwsA(isA<Xxx>()) (#82328) 2021-05-12 09:59:02 -07:00
context_test.dart use throwsA (#82238) 2021-05-11 10:19:01 -07:00
deferred_component_test.dart [reland] Support conditional bundling of assets based on --flavor (#139834) 2023-12-14 05:30:10 +00:00
error_handling_io_test.dart [flutter_tools] handle FileSystemException trying to delete temp directory from core_devices.dart (#140415) 2023-12-20 00:08:54 +00:00
file_system_test.dart Update copyDirectory to allow links to not be followed (#144040) 2024-02-26 16:07:22 +00:00
fingerprint_test.dart Only run pod install on the first iOS build (#108205) 2022-07-26 19:39:06 +00:00
io_test.dart Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
logger_test.dart Reduce animations further when --no-cli-animations is set. (#133598) 2023-11-16 21:05:22 +00:00
multi_root_file_system_test.dart Add MultiRootFileSystem to better support using --filesystem-root. (#82991) 2021-05-24 22:04:02 -07:00
net_test.dart Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
os_test.dart Reverts "Reland #128236 "Improve build output for all platforms" (#145376)" (#145487) 2024-03-20 18:18:25 +00:00
os_utils_test.dart Flutter preview device (#135639) 2023-10-18 00:27:54 +00:00
platform_test.dart Convert some general.shard base tests to null safety (#79985) 2021-04-08 14:55:19 -07:00
process_test.dart [flutter_tools] ensure processUtils reports exit code in ProcessExceptions (#136672) 2023-10-30 19:51:26 +00:00
signals_test.dart [flutter_tools] Run ShutdownHooks when handling signals (#134590) 2023-09-13 13:05:29 -07:00
task_queue_test.dart [flutter_tools] Replace Future.catchError() with Future.then(onError: ...) (#120637) 2023-02-15 19:03:00 +00:00
terminal_test.dart [flutter_tools] catch StdinException when setting terminal to SingleCharMode (#136283) 2023-10-10 23:10:29 +00:00
user_messages_test.dart Fix the message strings for xcodeMissing and xcodeIncomplete (#117922) 2023-01-04 02:48:00 +00:00