Repository navigation
[BEAM-1551] Allow PAsserts to take a message - #2109
Conversation
|
R: @tgroh |
|
Refer to this link for build results (access rights to CI server needed): |
| } | ||
|
|
||
| /** | ||
| * Constructs a {@link SingletonAssert} for the value of the provided {@link PCollection}, which |
There was a problem hiding this comment.
for the value of the provided {@link PCollection} with the specified reason. The {@link PCollection} must have at most one value per key.
| public void testEmptyFalse() throws Exception { | ||
| PCollection<Long> vals = pipeline.apply(CountingInput.upTo(5L)); | ||
| PAssert.that(vals).empty(); | ||
| PAssert.that("Vals should have been empty", vals).empty(); |
There was a problem hiding this comment.
Add the same to a view-based assertion; I believe we already have tests for them.
It's also would be nice to ensure that by default the name of the input PCollection is present.
| } | ||
|
|
||
| /** | ||
| * Constructs a {@link SingletonAssert} for the value of the provided {@link PCollection}. |
|
|
||
| /** | ||
| * Constructs a {@link SingletonAssert} for the value of the provided | ||
| * {@code PCollection PCollection<T>}, which must be a singleton. |
There was a problem hiding this comment.
PCollection} with the specified reason. The provided PCollection must be a singleton.
| } | ||
|
|
||
| /** | ||
| * Constructs an {@link IterableAssert} for the value of the provided {@link PCollection} which |
There was a problem hiding this comment.
with the specified reason. The provided PCollection must contain...
| } | ||
|
|
||
| /** | ||
| * Constructs an {@link IterableAssert} for the elements of the provided {@link PCollection}. |
There was a problem hiding this comment.
PCollection} with the specified reason.
|
Run Flink RunnableOnService |
|
Refer to this link for build results (access rights to CI server needed): |
|
Refer to this link for build results (access rights to CI server needed): Failed Tests: 1beam_PreCommit_Java_MavenInstall/org.apache.beam:beam-runners-spark: 1--none-- |
|
@tgroh addressed your comments in my latest 3 commits. |
|
Refer to this link for build results (access rights to CI server needed): Failed Tests: 2beam_PreCommit_Java_MavenInstall/org.apache.beam:beam-runners-spark: 2
--none-- |
|
Refer to this link for build results (access rights to CI server needed): |
|
Run Flink RunnableOnService |
|
Run Dataflow RunnableOnService |
|
Refer to this link for build results (access rights to CI server needed): Failed Tests: 2beam_PostCommit_Java_RunnableOnService_Flink/org.apache.beam:beam-runners-flink_2.10: 2
--none-- |
|
Refer to this link for build results (access rights to CI server needed): |
|
LGTM, but the flink failures do look related. Could you take a look? |
|
Refer to this link for build results (access rights to CI server needed): |
|
Refer to this link for build results (access rights to CI server needed): |
|
Refer to this link for build results (access rights to CI server needed): |
3c802ba to
3669146
Compare
|
Run Flink RunnableOnService |
|
Refer to this link for build results (access rights to CI server needed): |
|
Refer to this link for build results (access rights to CI server needed): |
|
Run Dataflow RunnableOnService |
|
Refer to this link for build results (access rights to CI server needed): |
|
Run Apex RunnableOnService |
|
Refer to this link for build results (access rights to CI server needed): Failed Tests: 1beam_PostCommit_Java_RunnableOnService_Spark/org.apache.beam:beam-runners-spark: 1
--none-- |
|
Run Spark RunnableOnService |
|
Refer to this link for build results (access rights to CI server needed): |
|
Refer to this link for build results (access rights to CI server needed): |
|
|
||
| @ProcessElement | ||
| public void processElement(ProcessContext c) { | ||
| try { |
There was a problem hiding this comment.
This suppression of exceptions was the reason the side input tests failed in Flink runner running in streaming mode.
Removing this solves the issue. All the ROS tests pass now (Including the new ones).
@kennknowles PTAL
|
@tgroh committed a fix to solve the failing tests. It was an issue with |
|
LGTM. I'll merge it. |
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull requestmvn clean verify. (Even better, enableTravis-CI on your fork and ensure the whole test matrix passes).
<Jira issue #>in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.