flutter/dev/bots/test
Christopher Fujino 88710972da
Refactor prepare_package.dart (#139277)
I plan to extend the prepare_package.dart script to upload the flutter preview device ([design doc](https://docs.google.com/document/d/1AzI-_Uk2v1LA2kKKFJ7gVD4xcakXJ6yVZiS5Ek6RHtg/edit#heading=h.byp03plw7mg9)).

However, given that that script is one large >1k line file, I decided to organize it into smaller libraries in this PR. There should be no behavioral change in this PR, this is a cleanup only. I made the following changes:

1. Created a //dev/bots/prepare_package/ directory to contain helper libraries
2. Moved everything but the `main()` function in //dev/bots/prepare_package.dart into one of 4 helper libraries under the new directory from step 1:
  a. archive_creator.dart which contains the code that creates archive directory locally on disk
  b. archive_publisher.dart which contains the code that uploads the archive to cloud storage
  c. common.dart for shared constants and definitions
  d. process_runner.dart for an abstraction over running sub-processes
3. Changed all definitions to `File` and `Directory` from `dart:io` to use the testable versions from `package:file`. This allowed me to use the `MemoryFileSystem` in the unit tests, rather than creating real temp file system directories.
2023-11-30 19:25:50 +00:00
..
analyze-snippet-code-test-dart-ui Enable strict-inference (#135043) 2023-09-20 19:59:08 +00:00
analyze-snippet-code-test-input Enable strict-inference (#135043) 2023-09-20 19:59:08 +00:00
analyze-test-input Analyze against using Stopwatches in the framework (#138507) 2023-11-29 08:49:35 -06:00
analyze_snippet_code_test.dart Enable strict-inference (#135043) 2023-09-20 19:59:08 +00:00
analyze_test.dart Analyze against using Stopwatches in the framework (#138507) 2023-11-29 08:49:35 -06:00
check_code_samples_test.dart Check sample links for malformed links (#137807) 2023-11-06 18:46:18 +00:00
common.dart Align more closely with package:test (#77118) (#78343) 2021-03-16 13:58:02 -07:00
post_process_docs_test.dart Deprecate these old APIs (#116793) 2023-04-06 19:53:50 +00:00
prepare_package_test.dart Refactor prepare_package.dart (#139277) 2023-11-30 19:25:50 +00:00
sdk_directory_has_space_test.dart Skip test audit for dev tests. (#87147) 2021-08-03 11:17:41 -07:00
test_test.dart Fix typos (#121171) 2023-02-23 19:43:21 +00:00
tool_subsharding_test.dart Parser machine logs (#118707) 2023-02-02 20:04:06 +00:00