Skip to content

Conversation

@nate-thegrate
Copy link
Contributor

@nate-thegrate nate-thegrate commented May 18, 2024

'flutter create should tool exit if the template manifest cannot be read' fails consistently, as shown by #148614.

The test expects a ToolExit with the message "Unable to read the template manifest", but depending on how the test is being run, a different exception ("Cannot create a project within the Flutter SDK") is sometimes thrown first.

This pull request relocates the test project to dev/ to prevent the extraneous error.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 18, 2024
@nate-thegrate nate-thegrate force-pushed the fix-template-manifest-test branch from 72a3f01 to 11b4488 Compare May 18, 2024 19:53
@nate-thegrate nate-thegrate force-pushed the fix-template-manifest-test branch from a810413 to d2a7a67 Compare May 18, 2024 20:44
@nate-thegrate nate-thegrate marked this pull request as ready for review May 18, 2024 21:33
@nate-thegrate nate-thegrate requested a review from andrewkolos May 18, 2024 23:08
@andrewkolos
Copy link
Contributor

To add more context, here are some logs from a failure: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8747578640646662689/+/u/run_test.dart_for_tool_tests_shard_and_subshard_commands/stdout

This is probably a flake depending on test order execution. I notice a lot of tests in this file tamper with the global Cache.flutterRoot, so I wouldn't be surprised if this has something to do with the flake.

Copy link
Contributor

@andrewkolos andrewkolos left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@nate-thegrate nate-thegrate added the autosubmit Merge PR when tree becomes green via auto submit App label May 18, 2024
@auto-submit auto-submit bot merged commit adf279f into flutter:master May 18, 2024
@nate-thegrate nate-thegrate deleted the fix-template-manifest-test branch May 18, 2024 23:42
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 19, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 19, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request May 19, 2024
flutter/flutter@00425ef...adf279f

2024-05-18 [email protected] Fix template manifest test (flutter/flutter#148616)
2024-05-18 [email protected] Disable shuffling in the flutter_tools create_test suite (flutter/flutter#148619)
2024-05-18 [email protected] Move `Feedback` to widgets layer (flutter/flutter#148523)
2024-05-18 [email protected] Roll Flutter Engine from 93f1b5a146ed to 552a965b707b (4 revisions) (flutter/flutter#148595)
2024-05-18 [email protected] Swap crash reporting with unified analytics (flutter/flutter#148525)
2024-05-17 [email protected] Roll Flutter Engine from 5b3bf9a950b2 to 93f1b5a146ed (3 revisions) (flutter/flutter#148581)
2024-05-17 [email protected] Migrate the flutter/flutter wiki to docs/unsorted_wiki (flutter/flutter#148562)
2024-05-17 [email protected] Roll Flutter Engine from 17decdf12557 to 5b3bf9a950b2 (3 revisions) (flutter/flutter#148567)
2024-05-17 [email protected] Shift a test on MotoG4 to staging, add it on Mokey (flutter/flutter#148552)
2024-05-17 [email protected] Revert "`if` chains â�� `switch` expressions" (flutter/flutter#148556)
2024-05-17 [email protected] Roll Packages from 87a02e3 to ae4dd32 (9 revisions) (flutter/flutter#148555)
2024-05-17 [email protected] Roll Flutter Engine from 7d244ab0348a to 17decdf12557 (1 revision) (flutter/flutter#148549)
2024-05-17 [email protected] Roll Flutter Engine from a19d3722922d to 7d244ab0348a (4 revisions) (flutter/flutter#148546)

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 [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
jason-simmons added a commit to jason-simmons/flutter that referenced this pull request May 20, 2024
auto-submit bot pushed a commit that referenced this pull request May 20, 2024
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
flutter/flutter@00425ef...adf279f

2024-05-18 [email protected] Fix template manifest test (flutter/flutter#148616)
2024-05-18 [email protected] Disable shuffling in the flutter_tools create_test suite (flutter/flutter#148619)
2024-05-18 [email protected] Move `Feedback` to widgets layer (flutter/flutter#148523)
2024-05-18 [email protected] Roll Flutter Engine from 93f1b5a146ed to 552a965b707b (4 revisions) (flutter/flutter#148595)
2024-05-18 [email protected] Swap crash reporting with unified analytics (flutter/flutter#148525)
2024-05-17 [email protected] Roll Flutter Engine from 5b3bf9a950b2 to 93f1b5a146ed (3 revisions) (flutter/flutter#148581)
2024-05-17 [email protected] Migrate the flutter/flutter wiki to docs/unsorted_wiki (flutter/flutter#148562)
2024-05-17 [email protected] Roll Flutter Engine from 17decdf12557 to 5b3bf9a950b2 (3 revisions) (flutter/flutter#148567)
2024-05-17 [email protected] Shift a test on MotoG4 to staging, add it on Mokey (flutter/flutter#148552)
2024-05-17 [email protected] Revert "`if` chains â�� `switch` expressions" (flutter/flutter#148556)
2024-05-17 [email protected] Roll Packages from 87a02e3 to ae4dd32 (9 revisions) (flutter/flutter#148555)
2024-05-17 [email protected] Roll Flutter Engine from 7d244ab0348a to 17decdf12557 (1 revision) (flutter/flutter#148549)
2024-05-17 [email protected] Roll Flutter Engine from a19d3722922d to 7d244ab0348a (4 revisions) (flutter/flutter#148546)

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 [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
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 6, 2024
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 tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants