Skip to content

feat: pass along write_artifacts to loaders - #779

Merged
bhearsum merged 1 commit into
taskcluster:mainfrom
bhearsum:push-pqoxwnnryorv
Sep 19, 2025
Merged

bhearsum merged 1 commit into
taskcluster:mainfrom
bhearsum:push-pqoxwnnryorv

Conversation

@bhearsum

Copy link
Copy Markdown
Contributor

Taskgraph already passes this information along to transforms, and over in https://bugzilla.mozilla.org/show_bug.cgi?id=1989038 we have a use case to have loaders know about it too: we need to write out an artifact whose contents are only known after all tasks for a specific kind have been loaded and transformed.

(Technically we could avoid passing this along, but it would mean we have no reasonable way to switch off the writing of this artifact outside of decision tasks...)

@bhearsum
bhearsum requested a review from a team as a code owner September 18, 2025 20:03
Comment thread src/taskgraph/generator.py Resolved
@bhearsum
bhearsum force-pushed the push-pqoxwnnryorv branch 3 times, most recently from 5dddf21 to bc806ee Compare September 19, 2025 13:22
@bhearsum
bhearsum requested a review from jcristau September 19, 2025 13:36
Comment thread test/test_generator.py Resolved
Comment thread test/test_generator.py
)


def test_loader_backwards_compat_interface(graph_config):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this test :)

Taskgraph already passes this information along to transforms, and over in https://bugzilla.mozilla.org/show_bug.cgi?id=1989038 we have a use case to have loaders know about it too: we need to write out an artifact whose contents are only known after all tasks for a specific kind have been loaded and transformed.

(Technically we could avoid passing this along, but it would mean we have no reasonable way to switch off the writing of this artifact outside of decision tasks...)

Co-Authored-By: jcristau@mozilla.com
@bhearsum
bhearsum merged commit 8ecf249 into taskcluster:main Sep 19, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants