[ https://issues.apache.org/jira/browse/BEAM-8153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Udi Meiri resolved BEAM-8153. ----------------------------- Fix Version/s: Not applicable Resolution: Fixed > PubSubIntegrationTest failing in post-commit > -------------------------------------------- > > Key: BEAM-8153 > URL: https://issues.apache.org/jira/browse/BEAM-8153 > Project: Beam > Issue Type: Bug > Components: sdk-py-core, test-failures > Reporter: Udi Meiri > Assignee: Matthew Darwin > Priority: P2 > Labels: stale-assigned > Fix For: Not applicable > > > Most likely due to: https://github.com/apache/beam/pull/9232 > {code} > 11:44:31 > ====================================================================== > 11:44:31 ERROR: test_streaming_with_attributes > (apache_beam.io.gcp.pubsub_integration_test.PubSubIntegrationTest) > 11:44:31 > ---------------------------------------------------------------------- > 11:44:31 Traceback (most recent call last): > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/sdks/python/apache_beam/io/gcp/pubsub_integration_test.py", > line 199, in test_streaming_with_attributes > 11:44:31 self._test_streaming(with_attributes=True) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/sdks/python/apache_beam/io/gcp/pubsub_integration_test.py", > line 191, in _test_streaming > 11:44:31 timestamp_attribute=self.TIMESTAMP_ATTRIBUTE) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/sdks/python/apache_beam/io/gcp/pubsub_it_pipeline.py", > line 91, in run_pipeline > 11:44:31 result = p.run() > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/sdks/python/apache_beam/pipeline.py", > line 420, in run > 11:44:31 return self.runner.run_pipeline(self, self._options) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/sdks/python/apache_beam/runners/direct/test_direct_runner.py", > line 51, in run_pipeline > 11:44:31 hc_assert_that(self.result, pickler.loads(on_success_matcher)) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/build/gradleenv/1398941891/lib/python3.7/site-packages/hamcrest/core/assert_that.py", > line 43, in assert_that > 11:44:31 _assert_match(actual=arg1, matcher=arg2, reason=arg3) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/build/gradleenv/1398941891/lib/python3.7/site-packages/hamcrest/core/assert_that.py", > line 49, in _assert_match > 11:44:31 if not matcher.matches(actual): > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/build/gradleenv/1398941891/lib/python3.7/site-packages/hamcrest/core/core/allof.py", > line 16, in matches > 11:44:31 if not matcher.matches(item): > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/build/gradleenv/1398941891/lib/python3.7/site-packages/hamcrest/core/base_matcher.py", > line 28, in matches > 11:44:31 match_result = self._matches(item) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/sdks/python/apache_beam/io/gcp/tests/pubsub_matcher.py", > line 91, in _matches > 11:44:31 return Counter(self.messages) == Counter(self.expected_msg) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/build/gradleenv/1398941891/lib/python3.7/collections/__init__.py", > line 566, in __init__ > 11:44:31 self.update(*args, **kwds) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/build/gradleenv/1398941891/lib/python3.7/collections/__init__.py", > line 653, in update > 11:44:31 _count_elements(self, iterable) > 11:44:31 File > "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Python37_PR/src/sdks/python/apache_beam/io/gcp/pubsub.py", > line 83, in __hash__ > 11:44:31 self.message_id, self.publish_time.seconds, > 11:44:31 AttributeError: 'NoneType' object has no attribute 'seconds' > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)