See <https://builds.apache.org/job/beam_PostCommit_Python_Verify/2374/display/redirect?page=changes>
Changes: [altay] Add template examples to snippets.py ------------------------------------------ [...truncated 428.92 KB...] test_sliding_windows_assignment (apache_beam.transforms.window_test.WindowTest) ... ok test_sliding_windows_assignment_fraction (apache_beam.transforms.window_test.WindowTest) ... ok test_sliding_windows_assignment_fraction_large_offset (apache_beam.transforms.window_test.WindowTest) ... ok test_timestamped_value (apache_beam.transforms.window_test.WindowTest) ... ok test_timestamped_value_cmp (apache_beam.transforms.window_test.WindowTest) ... ok test_timestamped_with_combiners (apache_beam.transforms.window_test.WindowTest) ... ok test_write (apache_beam.transforms.write_ptransform_test.WriteTest) ... ok test_write_no_init_result (apache_beam.transforms.write_ptransform_test.WriteTest) ... ok test_write_no_write_results (apache_beam.transforms.write_ptransform_test.WriteTest) ... ok test_write_with_empty_pcollection (apache_beam.transforms.write_ptransform_test.WriteTest) ... ok testAlwaysReturnsEarly (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testBinOp (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testBuiltins (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testCall (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testClosure (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testDict (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testDictComprehension (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testGenerator (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testGetAttr (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testGlobals (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testIdentity (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testListComprehension (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testMethod (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testTupleListComprehension (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testTuples (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok testUnpack (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) ... ok test_custom_transform (apache_beam.typehints.typed_pipeline_test.CustomTransformTest) ... ok test_flat_type_hint (apache_beam.typehints.typed_pipeline_test.CustomTransformTest) ... ok test_keyword_type_hints (apache_beam.typehints.typed_pipeline_test.CustomTransformTest) ... ok test_bad_main_input (apache_beam.typehints.typed_pipeline_test.MainInputTest) ... ok test_loose_bounds (apache_beam.typehints.typed_pipeline_test.MainInputTest) ... ok test_non_function (apache_beam.typehints.typed_pipeline_test.MainInputTest) ... ok test_typed_dofn_class (apache_beam.typehints.typed_pipeline_test.MainInputTest) ... ok test_typed_dofn_instance (apache_beam.typehints.typed_pipeline_test.MainInputTest) ... ok test_basic_side_input_hint (apache_beam.typehints.typed_pipeline_test.SideInputTest) ... ok test_default_typed_hint (apache_beam.typehints.typed_pipeline_test.SideInputTest) ... ok test_default_untyped_hint (apache_beam.typehints.typed_pipeline_test.SideInputTest) ... ok test_deferred_side_input_iterable (apache_beam.typehints.typed_pipeline_test.SideInputTest) ... ok test_deferred_side_inputs (apache_beam.typehints.typed_pipeline_test.SideInputTest) ... ok test_keyword_side_input_hint (apache_beam.typehints.typed_pipeline_test.SideInputTest) ... ok test_any_compatibility (apache_beam.typehints.typehints_test.AnyTypeConstraintTestCase) ... ok test_repr (apache_beam.typehints.typehints_test.AnyTypeConstraintTestCase) ... ok test_type_check (apache_beam.typehints.typehints_test.AnyTypeConstraintTestCase) ... ok test_composite_takes_and_returns_hints (apache_beam.typehints.typehints_test.CombinedReturnsAndTakesTestCase) ... ok test_enable_and_disable_type_checking_returns (apache_beam.typehints.typehints_test.CombinedReturnsAndTakesTestCase) ... ok test_enable_and_disable_type_checking_takes (apache_beam.typehints.typehints_test.CombinedReturnsAndTakesTestCase) ... ok test_simple_takes_and_returns_hints (apache_beam.typehints.typehints_test.CombinedReturnsAndTakesTestCase) ... ok test_valid_mix_pos_and_keyword_with_both_orders (apache_beam.typehints.typehints_test.CombinedReturnsAndTakesTestCase) ... ok test_getcallargs_forhints (apache_beam.typehints.typehints_test.DecoratorHelpers) ... ok test_hint_helper (apache_beam.typehints.typehints_test.DecoratorHelpers) ... ok test_positional_arg_hints (apache_beam.typehints.typehints_test.DecoratorHelpers) ... ok test_compatibility (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_getitem_param_must_be_tuple (apache_beam.typehints.typehints_test.DictHintTestCase) ... <https://builds.apache.org/job/beam_PostCommit_Python_Verify/ws/sdks/python/apache_beam/typehints/typehints_test.py>:497: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 e.exception.message) ok test_getitem_param_must_have_length_2 (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_key_type_must_be_valid_composite_param (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_match_type_variables (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_repr (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_type_check_invalid_key_type (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_type_check_invalid_value_type (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_type_check_valid_composite_type (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_type_check_valid_simple_type (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_type_checks_not_dict (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_value_type_must_be_valid_composite_param (apache_beam.typehints.typehints_test.DictHintTestCase) ... ok test_compatibility (apache_beam.typehints.typehints_test.GeneratorHintTestCase) ... ok test_generator_argument_hint_invalid_yield_type (apache_beam.typehints.typehints_test.GeneratorHintTestCase) ... ok test_generator_return_hint_invalid_yield_type (apache_beam.typehints.typehints_test.GeneratorHintTestCase) ... ok test_repr (apache_beam.typehints.typehints_test.GeneratorHintTestCase) ... ok test_compatibility (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_getitem_invalid_composite_type_param (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_repr (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_tuple_compatibility (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_type_check_must_be_iterable (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_type_check_violation_invalid_composite_type (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_type_check_violation_invalid_simple_type (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_type_check_violation_valid_composite_type (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_type_check_violation_valid_simple_type (apache_beam.typehints.typehints_test.IterableHintTestCase) ... ok test_enforce_kv_type_constraint (apache_beam.typehints.typehints_test.KVHintTestCase) ... ok test_getitem_param_must_be_tuple (apache_beam.typehints.typehints_test.KVHintTestCase) ... ok test_getitem_param_must_have_length_2 (apache_beam.typehints.typehints_test.KVHintTestCase) ... ok test_getitem_proxy_to_tuple (apache_beam.typehints.typehints_test.KVHintTestCase) ... ok test_enforce_list_type_constraint_invalid_composite_type (apache_beam.typehints.typehints_test.ListHintTestCase) ... ok test_enforce_list_type_constraint_invalid_simple_type (apache_beam.typehints.typehints_test.ListHintTestCase) ... ok test_enforce_list_type_constraint_valid_composite_type (apache_beam.typehints.typehints_test.ListHintTestCase) ... ok test_enforce_list_type_constraint_valid_simple_type (apache_beam.typehints.typehints_test.ListHintTestCase) ... ok test_getitem_invalid_composite_type_param (apache_beam.typehints.typehints_test.ListHintTestCase) ... ok test_list_constraint_compatibility (apache_beam.typehints.typehints_test.ListHintTestCase) ... ok test_list_repr (apache_beam.typehints.typehints_test.ListHintTestCase) ... ok test_getitem_proxy_to_union (apache_beam.typehints.typehints_test.OptionalHintTestCase) ... ok test_getitem_sequence_not_allowed (apache_beam.typehints.typehints_test.OptionalHintTestCase) ... ok test_any_return_type_hint (apache_beam.typehints.typehints_test.ReturnsDecoratorTestCase) ... ok test_must_be_primitive_type_or_type_constraint (apache_beam.typehints.typehints_test.ReturnsDecoratorTestCase) ... ok test_must_be_single_return_type (apache_beam.typehints.typehints_test.ReturnsDecoratorTestCase) ... ok test_no_kwargs_accepted (apache_beam.typehints.typehints_test.ReturnsDecoratorTestCase) ... ok test_type_check_composite_type (apache_beam.typehints.typehints_test.ReturnsDecoratorTestCase) ... ok test_type_check_simple_type (apache_beam.typehints.typehints_test.ReturnsDecoratorTestCase) ... ok test_type_check_violation (apache_beam.typehints.typehints_test.ReturnsDecoratorTestCase) ... ok test_compatibility (apache_beam.typehints.typehints_test.SetHintTestCase) ... ok test_getitem_invalid_composite_type_param (apache_beam.typehints.typehints_test.SetHintTestCase) ... ok test_repr (apache_beam.typehints.typehints_test.SetHintTestCase) ... ok test_type_check_invalid_elem_type (apache_beam.typehints.typehints_test.SetHintTestCase) ... ok test_type_check_must_be_set (apache_beam.typehints.typehints_test.SetHintTestCase) ... ok test_type_check_valid_elem_composite_type (apache_beam.typehints.typehints_test.SetHintTestCase) ... ok test_type_check_valid_elem_simple_type (apache_beam.typehints.typehints_test.SetHintTestCase) ... ok test_any_argument_type_hint (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_basic_type_assertion (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_composite_type_assertion (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_invalid_only_positional_arguments (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_must_be_primitive_type_or_constraint (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_valid_mix_positional_and_keyword_arguments (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_valid_only_positional_arguments (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_valid_simple_type_arguments (apache_beam.typehints.typehints_test.TakesDecoratorTestCase) ... ok test_functions_as_regular_generator (apache_beam.typehints.typehints_test.TestGeneratorWrapper) ... ok test_compatibility (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_compatibility_arbitrary_length (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_getitem_invalid_ellipsis_type_param (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_getitem_params_must_be_type_or_constraint (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_raw_tuple (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_repr (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_invalid_composite_type (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_invalid_composite_type_arbitrary_length (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_invalid_simple_type_arbitrary_length (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_invalid_simple_types (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_must_be_tuple (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_must_have_same_arity (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_valid_composite_type_arbitrary_length (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_valid_composite_types (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_valid_simple_type_arbitrary_length (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_type_check_valid_simple_types (apache_beam.typehints.typehints_test.TupleHintTestCase) ... ok test_getitem_duplicates_ignored (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_getitem_must_be_valid_type_param (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_getitem_must_be_valid_type_param_cant_be_object_instance (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_getitem_nested_unions_flattened (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_nested_compatibility (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_union_hint_compatibility (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_union_hint_enforcement_composite_type_in_union (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_union_hint_enforcement_not_part_of_union (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_union_hint_enforcement_part_of_union (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_union_hint_repr (apache_beam.typehints.typehints_test.UnionHintTestCase) ... ok test_deprecated_with_since_current (apache_beam.utils.annotations_test.AnnotationTests) ... ok test_deprecated_with_since_current_message (apache_beam.utils.annotations_test.AnnotationTests) ... ok test_deprecated_without_current (apache_beam.utils.annotations_test.AnnotationTests) ... ok test_deprecated_without_since_should_fail (apache_beam.utils.annotations_test.AnnotationTests) ... ok test_experimental_with_current (apache_beam.utils.annotations_test.AnnotationTests) ... ok test_experimental_with_current_message (apache_beam.utils.annotations_test.AnnotationTests) ... ok test_experimental_without_current (apache_beam.utils.annotations_test.AnnotationTests) ... ok test_frequency (apache_beam.utils.annotations_test.AnnotationTests) Tests that the filter 'once' is sufficient to print once per ... ok test_method_forwarding_not_windows (apache_beam.utils.processes_test.Exec) ... ok test_method_forwarding_windows (apache_beam.utils.processes_test.Exec) ... ok test_call_two_objects (apache_beam.utils.retry_test.RetryStateTest) ... ok test_single_failure (apache_beam.utils.retry_test.RetryStateTest) ... ok test_two_failures (apache_beam.utils.retry_test.RetryStateTest) ... ok test_log_calls_for_permanent_failure (apache_beam.utils.retry_test.RetryTest) ... ok test_log_calls_for_transient_failure (apache_beam.utils.retry_test.RetryTest) ... ok test_with_default_number_of_retries (apache_beam.utils.retry_test.RetryTest) ... ok test_with_explicit_decorator (apache_beam.utils.retry_test.RetryTest) ... ok test_with_explicit_initial_delay (apache_beam.utils.retry_test.RetryTest) ... ok test_with_explicit_number_of_retries (apache_beam.utils.retry_test.RetryTest) ... ok test_with_http_error_that_should_be_retried (apache_beam.utils.retry_test.RetryTest) ... ok test_with_http_error_that_should_not_be_retried (apache_beam.utils.retry_test.RetryTest) ... ok test_with_no_retry_decorator (apache_beam.utils.retry_test.RetryTest) ... ok test_with_real_clock (apache_beam.utils.retry_test.RetryTest) ... ok test_arithmetic (apache_beam.utils.timestamp_test.DurationTest) ... ok test_of (apache_beam.utils.timestamp_test.DurationTest) ... ok test_precision (apache_beam.utils.timestamp_test.DurationTest) ... ok test_sort_order (apache_beam.utils.timestamp_test.DurationTest) ... ok test_str (apache_beam.utils.timestamp_test.DurationTest) ... ok test_arithmetic (apache_beam.utils.timestamp_test.TimestampTest) ... ok test_of (apache_beam.utils.timestamp_test.TimestampTest) ... ok test_precision (apache_beam.utils.timestamp_test.TimestampTest) ... ok test_sort_order (apache_beam.utils.timestamp_test.TimestampTest) ... ok test_str (apache_beam.utils.timestamp_test.TimestampTest) ... ok test_utc_timestamp (apache_beam.utils.timestamp_test.TimestampTest) ... ok test_equality (apache_beam.utils.windowed_value_test.WindowedValueTest) ... ok test_hash (apache_beam.utils.windowed_value_test.WindowedValueTest) ... ok test_pickle (apache_beam.utils.windowed_value_test.WindowedValueTest) ... ok test_timestamps (apache_beam.utils.windowed_value_test.WindowedValueTest) ... ok test_with_value (apache_beam.utils.windowed_value_test.WindowedValueTest) ... ok test_element (apache_beam.pipeline_test.DoFnTest) ... ok test_side_input_no_tag (apache_beam.pipeline_test.DoFnTest) ... ok test_side_input_tagged (apache_beam.pipeline_test.DoFnTest) ... ok test_timestamp_param (apache_beam.pipeline_test.DoFnTest) ... ok test_window_param (apache_beam.pipeline_test.DoFnTest) ... ok test_attribute_setting (apache_beam.pipeline_test.PipelineOptionsTest) ... ok test_defaults (apache_beam.pipeline_test.PipelineOptionsTest) ... ok test_dir (apache_beam.pipeline_test.PipelineOptionsTest) ... ok test_flag_parsing (apache_beam.pipeline_test.PipelineOptionsTest) ... ok test_keyword_parsing (apache_beam.pipeline_test.PipelineOptionsTest) ... ok test_view_as (apache_beam.pipeline_test.PipelineOptionsTest) ... ok test_aggregator_empty_input (apache_beam.pipeline_test.PipelineTest) ... ok test_apply_custom_transform (apache_beam.pipeline_test.PipelineTest) ... ok test_create (apache_beam.pipeline_test.PipelineTest) ... ok test_create_singleton_pcollection (apache_beam.pipeline_test.PipelineTest) ... ok test_flatmap_builtin (apache_beam.pipeline_test.PipelineTest) ... ok test_memory_usage (apache_beam.pipeline_test.PipelineTest) ... ok test_metrics_in_source (apache_beam.pipeline_test.PipelineTest) ... ok test_pipeline_as_context (apache_beam.pipeline_test.PipelineTest) ... <https://builds.apache.org/job/beam_PostCommit_Python_Verify/ws/sdks/python/apache_beam/coders/typecoders.py>:135: UserWarning: Using fallback coder for typehint: <type 'exceptions.ValueError'>. warnings.warn('Using fallback coder for typehint: %r.' % typehint) ok test_read (apache_beam.pipeline_test.PipelineTest) ... ok test_reuse_cloned_custom_transform_instance (apache_beam.pipeline_test.PipelineTest) ... ok test_reuse_custom_transform_instance (apache_beam.pipeline_test.PipelineTest) ... <https://builds.apache.org/job/beam_PostCommit_Python_Verify/ws/sdks/python/apache_beam/pipeline_test.py>:196: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 cm.exception.message, ok test_transform_no_super_init (apache_beam.pipeline_test.PipelineTest) ... ok test_visit_entire_graph (apache_beam.pipeline_test.PipelineTest) ... ok test_simple (apache_beam.pipeline_test.RunnerApiTest) Tests serializing, deserializing, and running a simple pipeline. ... ok test_pvalue_expected_arguments (apache_beam.pvalue_test.PValueTest) ... ok test_file_checksum_matchcer_invalid_sleep_time (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) ... <https://builds.apache.org/job/beam_PostCommit_Python_Verify/ws/sdks/python/apache_beam/testing/pipeline_verifiers_test.py>:129: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.assertEqual(cm.exception.message, ok test_file_checksum_matcher_read_failed (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) ... ok test_file_checksum_matcher_service_error (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) ... ok test_file_checksum_matcher_sleep_before_verify (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) ... ok test_file_checksum_matcher_success (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) ... ok test_pipeline_state_matcher_fails (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) Test PipelineStateMatcher fails when using default expected state ... ok test_pipeline_state_matcher_given_state (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) Test PipelineStateMatcher successes when matches given state ... ok test_pipeline_state_matcher_success (apache_beam.testing.pipeline_verifiers_test.PipelineVerifiersTest) Test PipelineStateMatcher successes when using default expected state ... ok test_append_extra_options (apache_beam.testing.test_pipeline_test.TestPipelineTest) ... ok test_append_verifier_in_extra_opt (apache_beam.testing.test_pipeline_test.TestPipelineTest) ... ok test_create_test_pipeline_options (apache_beam.testing.test_pipeline_test.TestPipelineTest) ... ok test_empty_option_args_parsing (apache_beam.testing.test_pipeline_test.TestPipelineTest) ... ok test_get_option (apache_beam.testing.test_pipeline_test.TestPipelineTest) ... ok test_option_args_parsing (apache_beam.testing.test_pipeline_test.TestPipelineTest) ... ok test_skip_IT (apache_beam.testing.test_pipeline_test.TestPipelineTest) ... SKIP: IT is skipped because --test-pipeline-options is not specified test_basic_test_stream (apache_beam.testing.test_stream_test.TestStreamTest) ... ok test_test_stream_errors (apache_beam.testing.test_stream_test.TestStreamTest) ... ok test_assert_that_fails (apache_beam.testing.util_test.UtilTest) ... ok test_assert_that_fails_on_empty_expected (apache_beam.testing.util_test.UtilTest) ... ok test_assert_that_fails_on_empty_input (apache_beam.testing.util_test.UtilTest) ... ok test_assert_that_passes (apache_beam.testing.util_test.UtilTest) ... ok ---------------------------------------------------------------------- Ran 1185 tests in 373.534s OK (skipped=17) ___________________________________ summary ____________________________________ docs: commands succeeded ERROR: lint: commands failed py27: commands succeeded py27cython: commands succeeded py27gcp: commands succeeded Build step 'Execute shell' marked build as failure