From f56d5a98c1daf5cce832e9c11bc041a30ab2c801 Mon Sep 17 00:00:00 2001 From: John McDole Date: Fri, 31 Jan 2025 20:34:27 -0800 Subject: [PATCH] Fix `Linux docs_publish` running at head (#162557) This target was using `release_build: true` as a way to skip release branches. This flag is used to signal engine artifacts are built - they need to be skipped: - in release branches because artifacts are produced through other paths. - in postsubmits of monorepo since the engine artifacts are produced in the merge queue. This target was the only one in the framework defining it this way. It should have been using `enabled_branches`. tested: locally, using CiYaml directly with a copy of flutter's ci.yaml: ```dart final YamlMap configYaml = loadYaml(await File(args.command!['file']).readAsString()) as YamlMap; final pb.SchedulerConfig schedulerConfig = pb.SchedulerConfig()..mergeFromProto3Json(configYaml); final masterYaml = CiYamlSet( yamls: { CiType.any: schedulerConfig, }, slug: RepositorySlug.full('flutter/flutter'), branch: 'master', validate: false, isFusion: false, ); final masterNames = {...masterYaml.postsubmitTargets().map((t) => t.value.name)}; final releaseYaml = CiYamlSet( yamls: { CiType.any: schedulerConfig, }, slug: RepositorySlug.full('flutter/flutter'), branch: 'flutter-3.27-candidate.0', validate: false, isFusion: false, ); final releaseNames = {...releaseYaml.postsubmitTargets().map((t) => t.value.name)}; print("********************************"); print(releaseNames.contains('Linux docs_publish')); // false print(masterNames.contains('Linux docs_publish')); // true - generate docs in postsubmit print("********************************"); ``` Fixes #162552 --- .ci.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.ci.yaml b/.ci.yaml index 74162ac478..4dff2867c6 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -577,6 +577,12 @@ targets: timeout: 60 dimensions: os: "Linux" + enabled_branches: + # Produces docs for main-api.flutter.dev + # stable and beta are managed by the targets: + # - Linux docs_deploy_beta + # - Linux docs_deploy_stable + - master properties: cores: "32" dependencies: >- @@ -591,7 +597,6 @@ targets: validation_name: Docs firebase_project: main-docs-flutter-prod release_ref: refs/heads/master - release_build: "true" drone_dimensions: - os=Linux