Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: from-deps: don't override all existing dependencies; don't add fetch entry for kinds without fetches #316

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

bhearsum
Copy link
Contributor

@bhearsum bhearsum commented Aug 8, 2023

The former is arguably more than a "fix" in that it changes from-deps in a way that it is no longer the sole thing that manages upstream dependencies. In my opinion, if we are considering from-deps the official way to collect results from chunked/parallelized tasks, this is a necessary change, as we cannot predict the other things that such tasks may also depend on.

The latter is a pure bug fix: we shouldn't add a fetch block for kinds that have no fetches listed in from-deps.

(I can separate these two if it's useful.)

…etch entry for kinds without fetches

The former is arguably more than a "fix" in that it changes `from-deps` in a way that it is no longer the sole thing that manages upstream dependencies. In my opinion, if we are considering `from-deps` the official way to collect results from chunked/parallelized tasks, this is a necessary change, as we cannot predict the other things that such tasks may also depend on.

The latter is a pure bug fix: we shouldn't add a `fetch` block for kinds that have no `fetches` listed in `from-deps`.

(I can separate these two if it's useful.)
@bhearsum bhearsum requested a review from ahal August 8, 2023 19:14
Copy link
Collaborator

@ahal ahal left a comment

Choose a reason for hiding this comment

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

Lgtm!

src/taskgraph/transforms/from_deps.py Show resolved Hide resolved
@bhearsum bhearsum merged commit e3a24e8 into taskcluster:main Aug 10, 2023
6 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