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

[Task]: Pipeline testing framework #46

Open
15 tasks
laysakura opened this issue Jun 18, 2023 · 2 comments
Open
15 tasks

[Task]: Pipeline testing framework #46

laysakura opened this issue Jun 18, 2023 · 2 comments
Assignees
Labels

Comments

@laysakura
Copy link
Owner

What needs to happen?

We already hold some transforms to make assertion like:

.apply(AssertEqualUnordered::new(&[1]))

But we might lack some test transforms compared to other SDKs, or rather we might be able to develop more sophisticated test framework to test pipelines.

The task should be like:

  1. First, conduct survey on other SDKs and write a design document (in google docs and add to the wiki page) to make aligned image of the next test framework of Rust SDK.
  2. Request a review from other contributors ( @laysakura and/or @sjvanrossum would be happy to review it).
  3. Develop it.

Issue Priority

Priority: 3 (nice-to-have improvement)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@dahlbaek
Copy link
Collaborator

I skimmed over what the different sdks provide, and personally found the following to seem quite useful

On top of those, we will probably want transforms crafted specifically to validate streaming pipelines, but it might not make much sense to attempt to implement such validations before we implement proper window/watermark handling. finally, I wonder if it would be useful with a collection factory that shuffles the provided input for tests rather than emitting the values in a deterministic order 🤔

@laysakura
Copy link
Owner Author

@dahlbaek Thank you for your wholistic investigation.

Things I feel really useful

  • apply a predicate function to each input element and fail if the predicate function returns false
  • count number of elements in a collection
  • component specifically for testing combinefns
  • a collection factory that shuffles the provided input for tests rather than emitting the values in a deterministic order

Things I feel interesting (nice to have)

  • materialize pipeline with no intention of running it
  • test pipeline to simplify instantiation of test pipeline to be run against different runners

Additionally, I will totally agree with the following opinion.

we will probably want transforms crafted specifically to validate streaming pipelines, but it might not make much sense to attempt to implement such validations before we implement proper window/watermark handling.

Could you start to write a design doc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants