apache / apache/beam

Aggregator Verifier and Integrate to E2E Test Framework

Open
#18,039 0 comments 0 reactions 0 assignees View on GitHub
P3 task tests
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
2d 2h
Merged PRs (30d)
205

Description

Create a matcher to verify the value of [Aggregator](https://github.com/apache/incubator-beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Aggregator.java), which is [AggregatorValues](https://github.com/apache/incubator-beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/AggregatorValues.java), by given expected values.

For example:
```

MyFnWithAggregator fn = new MyFnWithAggregator();
Pipeline p = ... (setup the pipeline, use fn) ...
p.run();
assertThat(pResult,
isAggregatorValue(values, fn.aggregator));

```

It also should be integrated in E2E pipeline test and used by setting onSuccessMatcher.

Imported from Jira [BEAM-546](https://issues.apache.org/jira/browse/BEAM-546). Original Jira may contain additional context.
Reported by: markflyhigh.

Contributor guide

Open the contributing guide

Research direction

Start by reading Aggregator.java and AggregatorValues.java to understand the value being matched, then inspect the existing E2E pipeline test framework and its onSuccessMatcher usage. Add coverage for the expected AggregatorValues and integrate the matcher into an E2E pipeline test so the success matcher verifies the aggregator result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.