Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions runners/apex/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ task validatesRunnerBatch(type: Test) {
excludeCategories 'org.apache.beam.sdk.testing.UsesMetricsPusher'
excludeCategories 'org.apache.beam.sdk.testing.UsesUnboundedSplittableParDo'
excludeCategories 'org.apache.beam.sdk.testing.UsesUnboundedPCollections'
// TODO[BEAM-8204]: figure out if we can make the test work on Apex runner, or maybe create a
// more meaningful category tag.
excludeCategories 'org.apache.beam.sdk.testing.UsesSideInputsWithDifferentCoders'
// TODO[BEAM-8204]: figure out if we can make the test work on Apex runner, or maybe create a
// new category tag and change the following line to: excludeCategories '<category tag>'.
exclude '**/AvroSchemaTest.class'
}

// apex runner is run in embedded mode. Increase default HeapSize
Expand Down
3 changes: 3 additions & 0 deletions runners/flink/flink_runner.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def createValidatesRunnerTask(Map m) {
excludeCategories 'org.apache.beam.sdk.testing.UsesUnboundedSplittableParDo'
excludeCategories 'org.apache.beam.sdk.testing.UsesTestStream'
}
// TODO[BEAM-8205]: figure out if we can make the test work on Flink runner, or maybe create a
// new category tag and change the following line to: excludeCategories '<category tag>'.
exclude '**/AvroSchemaTest.class'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.beam.sdk.testing;

/** Category tag for validation tests which use multiple side inputs with different coders. */
public interface UsesSideInputsWithDifferentCoders {}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
import org.apache.beam.sdk.testing.UsesMapState;
import org.apache.beam.sdk.testing.UsesSetState;
import org.apache.beam.sdk.testing.UsesSideInputs;
import org.apache.beam.sdk.testing.UsesSideInputsWithDifferentCoders;
import org.apache.beam.sdk.testing.UsesStatefulParDo;
import org.apache.beam.sdk.testing.UsesTestStream;
import org.apache.beam.sdk.testing.UsesTestStreamWithProcessingTime;
Expand Down Expand Up @@ -919,7 +920,11 @@ public void processElement(
}

@Test
@Category({ValidatesRunner.class, UsesSideInputs.class})
@Category({
ValidatesRunner.class,
UsesSideInputs.class,
UsesSideInputsWithDifferentCoders.class
})
public void testSideInputAnnotationWithMultipleSideInputs() {

final List<Integer> side1Data = ImmutableList.of(2, 0);
Expand Down