mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

125c117a43...07496eb030
2025-04-02 alexander.irion@siemens.com [multicast_dns] MDnsClient::listen supports onError callback (flutter/packages#8888) 2025-04-02 15619084+vashworth@users.noreply.github.com Upgrade tests to use Xcode 16 and iOS 18 (flutter/packages#8968) 2025-04-01 engine-flutter-autoroll@skia.org Manual roll Flutter from1d954f4e96
to05b5e79105
(225 revisions) (flutter/packages#8960) 2025-04-01 kevmoo@users.noreply.github.com Drop deprecated HTML head meta tags (flutter/packages#8970) 2025-04-01 stuartmorgan@google.com Adjust PR checklist formatter discussion (flutter/packages#8924) 2025-04-01 stuartmorgan@google.com Update CODEOWNERS username (flutter/packages#8933) 2025-04-01 69054810+M97Chahboun@users.noreply.github.com [flutter_markdown] Added sizedImageBuilder to Markdown widget (flutter/packages#6739) 2025-04-01 stuartmorgan@google.com [google_maps_flutter] Skip impl copy of iOS tests (flutter/packages#8975) 2025-04-01 stuartmorgan@google.com [google_maps_flutter] Skip more hanging iOS tests (flutter/packages#8967) 2025-04-01 stanleycocoa@gmail.com [url_launcher] When not fully loaded, clicking close causes the callback to not be triggered correctly. (flutter/packages#8582) 2025-04-01 robert.odrowaz@leancode.pl [camera_avfoundation] Test utils and mocks swift migration - part 2 (flutter/packages#8892) 2025-03-31 15619084+vashworth@users.noreply.github.com [webview_flutter] Skip flaky legacy tests on iOS (flutter/packages#8911) 2025-03-31 davidmartos96@gmail.com [camera_android] Don't override default fps range when not recording (flutter/packages#8891) 2025-03-31 filiph@users.noreply.github.com [google_maps_flutter] Fix typo and remove duplicitous CHANGELOG entry (flutter/packages#8754) 2025-03-31 kevmoo@users.noreply.github.com [extension_gsi] Support the latest version of googleapis_auth (flutter/packages#8931) 2025-03-31 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.0.0 to 8.9.1 in /packages/pigeon/platform_tests/test_plugin/android (flutter/packages#8955) 2025-03-31 linxunfeng@yeah.net [webview_flutter_wkwebview] Fixes crash when sending undefined message via javascript channel (flutter/packages#8776) 2025-03-31 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump com.android.tools.build:gradle from 8.0.0 to 8.9.1 in /packages/pigeon/platform_tests/alternate_language_test_plugin/android (flutter/packages#8946) 2025-03-31 10687576+bparrishMines@users.noreply.github.com [interactive_media_ads] Fixes `AdEventType`s not triggering on iOS in release mode (flutter/packages#8918) 2025-03-31 stuartmorgan@google.com [google_maps_flutter] Skip test that hangs iOS CI (flutter/packages#8958) 2025-03-28 engine-flutter-autoroll@skia.org Manual roll Flutter fromb16430b2fd
to1d954f4e96
(114 revisions) (flutter/packages#8922) 2025-03-28 robert.odrowaz@leancode.pl [camera_avfoundation] Test utils and mocks swift migration - part 3 (flutter/packages#8912) 2025-03-27 jacksongardner@google.com Use a more deterministic way of waiting for ad widgets to be ready. (flutter/packages#8920) 2025-03-27 robert.odrowaz@leancode.pl [camera_avfoundation] Test utils and mocks swift migration - part 1 (flutter/packages#8890) 2025-03-27 tarrinneal@gmail.com [pigeon] correct usage of extended generics in generator methods (flutter/packages#8910) 2025-03-27 34892635+fa0311@users.noreply.github.com [video_player] Fix layout issue caused by `Transform.rotate` not affecting space calculation. (flutter/packages#8685) 2025-03-27 43759233+kenzieschmoll@users.noreply.github.com [shared_preferences] Fix a late initialized error with the example app (flutter/packages#8540) 2025-03-26 stuartmorgan@google.com [various] Disable sandbox in Chrome dart tests (flutter/packages#8909) 2025-03-25 stuartmorgan@google.com [tool] Move changed file detection to base command class (flutter/packages#8730) 2025-03-25 34327253+lenzpaul@users.noreply.github.com [Camera] Add lens type information (iOS) (flutter/packages#8723) 2025-03-25 tarrinneal@gmail.com [pigeon] kotlin equality methods (flutter/packages#8887) 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-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: 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 --------- Co-authored-by: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com>
86 lines
3.5 KiB
Dart
86 lines
3.5 KiB
Dart
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'dart:io' show Directory, File;
|
|
|
|
import 'package:file/file.dart' as fs;
|
|
import 'package:file/local.dart';
|
|
import 'package:path/path.dart' as path;
|
|
|
|
import '../run_command.dart';
|
|
import '../utils.dart';
|
|
|
|
/// Executes the test suite for the flutter/packages repo.
|
|
Future<void> flutterPackagesRunner() async {
|
|
Future<void> runAnalyze() async {
|
|
printProgress('${green}Running analysis for flutter/packages$reset');
|
|
final Directory checkout = Directory.systemTemp.createTempSync('flutter_packages.');
|
|
await runCommand('git', const <String>[
|
|
'-c',
|
|
'core.longPaths=true',
|
|
'clone',
|
|
'https://github.com/flutter/packages.git',
|
|
'.',
|
|
], workingDirectory: checkout.path);
|
|
final String packagesCommit = await getFlutterPackagesVersion(flutterRoot: flutterRoot);
|
|
await runCommand('git', <String>[
|
|
'-c',
|
|
'core.longPaths=true',
|
|
'checkout',
|
|
packagesCommit,
|
|
], workingDirectory: checkout.path);
|
|
// Prep the repository tooling.
|
|
// This test does not use tool_runner.sh because in this context the test
|
|
// should always run on the entire packages repo, while tool_runner.sh
|
|
// is designed for flutter/packages CI and only analyzes changed repository
|
|
// files when run for anything but master.
|
|
final String toolDir = path.join(checkout.path, 'script', 'tool');
|
|
await runCommand('dart', const <String>['pub', 'get'], workingDirectory: toolDir);
|
|
final String toolScript = path.join(toolDir, 'bin', 'flutter_plugin_tools.dart');
|
|
await runCommand('dart', <String>[
|
|
'run',
|
|
toolScript,
|
|
'analyze',
|
|
// Fetch the oldest possible dependencies, rather than the newest, to
|
|
// insulate flutter/flutter from out-of-band failures when new versions
|
|
// of dependencies are published. This compensates for the fact that
|
|
// flutter/packages doesn't use pinned dependencies, and for the
|
|
// purposes of this test using old dependencies is fine. See
|
|
// https://github.com/flutter/flutter/issues/129633
|
|
'--downgrade',
|
|
'--base-branch=$packagesCommit',
|
|
'--custom-analysis=script/configs/custom_analysis.yaml',
|
|
], workingDirectory: checkout.path);
|
|
}
|
|
|
|
await selectSubshard(<String, ShardRunner>{'analyze': runAnalyze});
|
|
}
|
|
|
|
/// Returns the commit hash of the flutter/packages repository that's rolled in.
|
|
///
|
|
/// The flutter/packages repository is a downstream dependency, it is only used
|
|
/// by flutter/flutter for testing purposes, to assure stable tests for a given
|
|
/// flutter commit the flutter/packages commit hash to test against is coded in
|
|
/// the bin/internal/flutter_packages.version file.
|
|
///
|
|
/// The `filesystem` parameter specified filesystem to read the packages version file from.
|
|
/// The `packagesVersionFile` parameter allows specifying an alternative path for the
|
|
/// packages version file, when null [flutterPackagesVersionFile] is used.
|
|
Future<String> getFlutterPackagesVersion({
|
|
fs.FileSystem fileSystem = const LocalFileSystem(),
|
|
String? packagesVersionFile,
|
|
required String flutterRoot,
|
|
}) async {
|
|
final String flutterPackagesVersionFile = path.join(
|
|
flutterRoot,
|
|
'bin',
|
|
'internal',
|
|
'flutter_packages.version',
|
|
);
|
|
|
|
final File versionFile = fileSystem.file(packagesVersionFile ?? flutterPackagesVersionFile);
|
|
final String versionFileContents = await versionFile.readAsString();
|
|
return versionFileContents.trim();
|
|
}
|