From dd07d4de56985569f17a7502ce4f85d66d1ca332 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Tue, 9 Apr 2024 11:06:16 -0400 Subject: [PATCH] chore: version bump Taskgraph 8.0.0 --- CHANGELOG.md | 21 +++++++++++++++++++++ docs/reference/migrations.rst | 17 +++++++++++++++++ src/taskgraph/__init__.py | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b453ead6..b3e0d6917 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Change Log +## [8.0.0] - 2024-04-09 + +### Added + +- Ability to use custom name functions in `from_deps` transforms (#484) +- New `from_deps` name function that doesn't strip the dep's kind (#484) +- New cli flag to force using locally generated `files_changed` (#481) + +### Fixed + +- Support for `artifact-reference` with private artifacts (#485) + +### Changed + +- Replaced `head_ref` in pull-request cached task routes (#486) +- Created a new `files_changed` parameter (#481) + +### Removed + +- Removed the `taskgraph.files_changed` module (#481) + ## [7.4.0] - 2024-03-26 ### Changed diff --git a/docs/reference/migrations.rst b/docs/reference/migrations.rst index 754347b58..51a0583fb 100644 --- a/docs/reference/migrations.rst +++ b/docs/reference/migrations.rst @@ -3,6 +3,22 @@ Migration Guide This page can help when migrating Taskgraph across major versions. +7.x -> 8.x +---------- + +* Replace all references to ``taskgraph.files_changed``. Instead, use one of: + + * The ``files_changed`` parameter + * The ``get_files_changed`` method on an instance of ``taskgraph.util.vcs.Repository`` + * Mercurial repositories relying on hgmo's ``json-automationrelevance`` + endpoint will need to in-line this logic into their own custom Taskgraph + logic +* In tasks using the ``from_deps`` transforms, remove ``from-deps.set-name`` if + it is set to ``true`` +* Update any references to pull request cached task indexes from + ``{cache_prefix}.cache.head.{head_ref}...`` to ``{cache_prefix}.cache.pr...`` + (i.e, add ``pr`` and remove the ``head.{head_ref}``) + 6.x -> 7.x ---------- @@ -11,6 +27,7 @@ This page can help when migrating Taskgraph across major versions. ``taskcluster/ci``. Typically this value is not passed in explicitly by consumers, but updates are likely required if you have custom code that uses any of the following objects: + * ``taskgraph.config.GraphConfig`` * ``taskgraph.config.load_graph_config`` * ``taskgraph.generator.TaskGraphGenerator`` diff --git a/src/taskgraph/__init__.py b/src/taskgraph/__init__.py index 4c34b66d6..c91e5b43c 100644 --- a/src/taskgraph/__init__.py +++ b/src/taskgraph/__init__.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -__version__ = "7.4.0" +__version__ = "8.0.0" # Maximum number of dependencies a single task can have # https://docs.taskcluster.net/reference/platform/taskcluster-queue/references/api#createTask