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

prototype: Parallelize tf unit tests #36294

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

prototype: Parallelize tf unit tests #36294

wants to merge 19 commits into from

Conversation

dsa0x
Copy link
Contributor

@dsa0x dsa0x commented Jan 8, 2025

Fixes #

WIP

Target Release

1.11.x

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

Copy link
Member

@liamcervante liamcervante left a comment

Choose a reason for hiding this comment

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

Nice, I do like this as a starting point but I'd want to push it further. For example we can add provider and variable nodes into the new test graph as well so these also benefit from the up front computation that the runs are also getting.

But, we could definitely do that iteratively. So start with just the run blocks, then in a follow up PR add the variables, then add the providers, etc.

dependency, ok := prevs[runName]
if !ok {
// TODO: should we catch this error, or leave it, as it will still be caught in the test?
return fmt.Errorf("dependency %q not found for run %q", runName, run.Name)
Copy link
Member

Choose a reason for hiding this comment

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

one of the advantages of moving to the graph is exactly this - we can catch these kind of errors right at the beginning and then report this as a kind of compilation error. So definitely leave this as is.

@dsa0x dsa0x force-pushed the sams/tf-test-parallel branch from eae3add to 5811743 Compare January 13, 2025 22:10
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