From 8412adb9811bcde5a6672e1a06503061dcdb1427 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Thu, 30 Nov 2023 13:29:41 -0800 Subject: [PATCH] Migrate docs_test to shard. (#139282) This is part of the deprecation of adhoc tests. Bug: https://github.com/flutter/flutter/issues/139153 --- .ci.yaml | 7 +++---- TESTOWNERS | 5 +++-- dev/bots/test.dart | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.ci.yaml b/.ci.yaml index 4721866b3e..55be8eb7e6 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -407,7 +407,7 @@ targets: - os=Linux - name: Linux docs_test - recipe: flutter/flutter + recipe: flutter/flutter_drone timeout: 90 # https://github.com/flutter/flutter/issues/120901 properties: cores: "32" @@ -418,9 +418,8 @@ targets: firebase_project: "" release_ref: "" tags: > - ["framework", "hostonly", "linux"] - validation: docs - validation_name: Docs + ["framework", "hostonly", "shard", "linux"] + shard: docs runIf: - bin/** - dev/** diff --git a/TESTOWNERS b/TESTOWNERS index 2ee8b537d8..6b85e9b4f7 100644 --- a/TESTOWNERS +++ b/TESTOWNERS @@ -295,8 +295,8 @@ /dev/devicelab/bin/tasks/windows_startup_test.dart @loic-sharma @flutter/desktop ## Host only framework tests -# Linux docs -# Linux docs_test +# Linux docs_deploy_beta +# Linux docs_deploy_stable # Linux docs_publish /dev/bots/docs.sh @HansMuller @flutter/framework # Linux packages_autoroller @@ -324,6 +324,7 @@ # ci_yaml flutter roller @caseyhillers @flutter/infra # coverage @godofredoc @flutter/infra # customer_testing @HansMuller @flutter/framework +# docs @HansMuller @flutter/framework # flutter_packaging @godofredoc @flutter/infra # flutter_plugins @stuartmorgan @flutter/plugin # framework_tests @HansMuller @flutter/framework diff --git a/dev/bots/test.dart b/dev/bots/test.dart index ca9362e3c6..041f1d84f3 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -266,6 +266,7 @@ Future main(List args) async { 'customer_testing': _runCustomerTesting, 'analyze': _runAnalyze, 'fuchsia_precache': _runFuchsiaPrecache, + 'docs': _runDocs, kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc. }); } catch (error, stackTrace) { @@ -1628,6 +1629,22 @@ Future _runFuchsiaPrecache() async { ); } +// Runs docs. +Future _runDocs() async { + printProgress('${green}Running flutter doc tests$reset'); + await runCommand( + './dev/bots/docs.sh', + [ + '--output', + 'dev/docs/api_docs.zip', + '--keep-staging', + '--staging-dir', + 'dev/docs', + ], + workingDirectory: flutterRoot, + ); +} + /// Runs the skp_generator from the flutter/tests repo. /// /// See also the customer_tests shard.