Bug 1835689 - don't include cached tasks in existing_tasks for release promotion. r=releng-reviewers,taskgraph-reviewers,bhearsum

Release promotion reuses tasks generated by the on-push decision task,
to avoid duplicating work.  For cached tasks however, that means reusing
index lookups that can be out of date by the time relpro runs, and
requiring a new push to pick up rebuilt cached tasks.  By listing the
cached kinds in rebuild-kinds, we force new index lookups at release
promotion time, to pick up e.g. new docker images without an extra push.

Differential Revision: https://phabricator.services.mozilla.com/D182774
This commit is contained in:
Julien Cristau 2023-07-06 09:32:11 +00:00
Родитель ba7e8d18de
Коммит 54e366467d
3 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -256,6 +256,11 @@ release-promotion:
- 'devedition' - 'devedition'
- 'fennec' - 'fennec'
- 'firefox' - 'firefox'
rebuild-kinds:
- docker-image
- fetch
- packages
- toolchain
flavors: flavors:
promote_devedition: promote_devedition:
product: devedition product: devedition

Просмотреть файл

@ -128,6 +128,7 @@ def get_flavors(graph_config, param):
"Optional: an array of kinds to ignore from the previous " "Optional: an array of kinds to ignore from the previous "
"graph(s)." "graph(s)."
), ),
"default": graph_config["release-promotion"].get("rebuild-kinds", []),
"items": { "items": {
"type": "string", "type": "string",
}, },

Просмотреть файл

@ -42,6 +42,7 @@ graph_config_schema = Schema(
Optional("partial-updates"): bool, Optional("partial-updates"): bool,
} }
}, },
Optional("rebuild-kinds"): [str],
}, },
Required("merge-automation"): { Required("merge-automation"): {
Required("behaviors"): { Required("behaviors"): {