diff --git a/.ci.yaml b/.ci.yaml index 5b9bf34750..561b96d617 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -1099,6 +1099,21 @@ targets: - bin/** - .ci.yaml + - name: Linux realm_checker + bringup: true + recipe: flutter/flutter_drone + timeout: 60 + properties: + add_recipes_cq: "true" + shard: realm_checker + tags: > + ["framework", "hostonly", "shard", "linux"] + runIf: + - dev/** + - packages/flutter_tools/** + - bin/** + - .ci.yaml + - name: Linux web_benchmarks_canvaskit recipe: devicelab/devicelab_drone presubmit: false diff --git a/TESTOWNERS b/TESTOWNERS index 51705091ca..d268226c3a 100644 --- a/TESTOWNERS +++ b/TESTOWNERS @@ -340,3 +340,4 @@ # web_long_running_tests @yjbanov @flutter/web # web_tests @yjbanov @flutter/web # web_tool_tests @eliasyishak @flutter/tool +# realm_checker @jacksongardner @flutter/tool diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 046dae199b..fa0b884c2a 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -262,6 +262,7 @@ Future main(List args) async { 'web_long_running_tests': _runWebLongRunningTests, 'flutter_plugins': _runFlutterPackagesTests, 'skp_generator': _runSkpGeneratorTests, + 'realm_checker': _runRealmCheckerTest, kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc. }); } catch (error, stackTrace) { @@ -1568,6 +1569,13 @@ Future _runSkpGeneratorTests() async { ); } +Future _runRealmCheckerTest() async { + final String engineRealm = File(engineRealmFile).readAsStringSync().trim(); + if (engineRealm.isNotEmpty) { + foundError(['The checked-in engine.realm file must be empty.']); + } +} + // The `chromedriver` process created by this test. // // If an existing chromedriver is already available on port 4444, the existing