[ 
https://issues.apache.org/jira/browse/BEAM-11476?focusedWorklogId=547229&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-547229
 ]

ASF GitHub Bot logged work on BEAM-11476:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Feb/21 19:05
            Start Date: 03/Feb/21 19:05
    Worklog Time Spent: 10m 
      Work Description: codecov[bot] edited a comment on pull request #13881:
URL: https://github.com/apache/beam/pull/13881#issuecomment-772110037


   # [Codecov](https://codecov.io/gh/apache/beam/pull/13881?src=pr&el=h1) Report
   > Merging 
[#13881](https://codecov.io/gh/apache/beam/pull/13881?src=pr&el=desc) (01cd40a) 
into 
[master](https://codecov.io/gh/apache/beam/commit/0078bb35ba4aef9410d681d8b4e2c16d9f56433d?el=desc)
 (0078bb3) will **increase** coverage by `0.03%`.
   > The diff coverage is `n/a`.
   
   [![Impacted file tree 
graph](https://codecov.io/gh/apache/beam/pull/13881/graphs/tree.svg?width=650&height=150&src=pr&token=qcbbAh8Fj1)](https://codecov.io/gh/apache/beam/pull/13881?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #13881      +/-   ##
   ==========================================
   + Coverage   82.83%   82.86%   +0.03%     
   ==========================================
     Files         466      466              
     Lines       57614    57612       -2     
   ==========================================
   + Hits        47724    47740      +16     
   + Misses       9890     9872      -18     
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/beam/pull/13881?src=pr&el=tree) | Coverage 
Δ | |
   |---|---|---|
   | 
[sdks/python/apache\_beam/utils/interactive\_utils.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vdXRpbHMvaW50ZXJhY3RpdmVfdXRpbHMucHk=)
 | `88.09% <0.00%> (-2.39%)` | :arrow_down: |
   | 
[sdks/python/apache\_beam/dataframe/schemas.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vZGF0YWZyYW1lL3NjaGVtYXMucHk=)
 | `95.31% <0.00%> (-1.68%)` | :arrow_down: |
   | 
[sdks/python/apache\_beam/internal/metrics/metric.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vaW50ZXJuYWwvbWV0cmljcy9tZXRyaWMucHk=)
 | `86.45% <0.00%> (-1.05%)` | :arrow_down: |
   | 
[sdks/python/apache\_beam/dataframe/frames.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vZGF0YWZyYW1lL2ZyYW1lcy5weQ==)
 | `90.94% <0.00%> (-0.62%)` | :arrow_down: |
   | 
[...ks/python/apache\_beam/runners/worker/sdk\_worker.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy93b3JrZXIvc2RrX3dvcmtlci5weQ==)
 | `89.54% <0.00%> (-0.16%)` | :arrow_down: |
   | 
[setup.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2V0dXAucHk=)
 | `0.00% <0.00%> (ø)` | |
   | 
[...hon/apache\_beam/runners/worker/bundle\_processor.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy93b3JrZXIvYnVuZGxlX3Byb2Nlc3Nvci5weQ==)
 | `93.70% <0.00%> (ø)` | |
   | 
[sdks/python/apache\_beam/dataframe/doctests.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vZGF0YWZyYW1lL2RvY3Rlc3RzLnB5)
 | `97.69% <0.00%> (+0.28%)` | :arrow_up: |
   | 
[...apache\_beam/runners/portability/portable\_runner.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy9wb3J0YWJpbGl0eS9wb3J0YWJsZV9ydW5uZXIucHk=)
 | `76.30% <0.00%> (+1.30%)` | :arrow_up: |
   | 
[.../runners/portability/fn\_api\_runner/translations.py](https://codecov.io/gh/apache/beam/pull/13881/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy9wb3J0YWJpbGl0eS9mbl9hcGlfcnVubmVyL3RyYW5zbGF0aW9ucy5weQ==)
 | `92.17% <0.00%> (+3.05%)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at 
Codecov](https://codecov.io/gh/apache/beam/pull/13881?src=pr&el=continue).
   > **Legend** - [Click here to learn 
more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by 
[Codecov](https://codecov.io/gh/apache/beam/pull/13881?src=pr&el=footer). Last 
update 
[0078bb3...01cd40a](https://codecov.io/gh/apache/beam/pull/13881?src=pr&el=lastupdated).
 Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 547229)
    Time Spent: 3h  (was: 2h 50m)

> flaky test: test_track_user_pipeline_cleanup_non_inspectable_pipeline
> ---------------------------------------------------------------------
>
>                 Key: BEAM-11476
>                 URL: https://issues.apache.org/jira/browse/BEAM-11476
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Udi Meiri
>            Assignee: Ning Kang
>            Priority: P1
>              Labels: currently-failing, flake
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> Test name: 
> apache_beam.runners.interactive.interactive_environment_test.InteractiveEnvironmentTest.test_track_user_pipeline_cleanup_non_inspectable_pipeline
> {code}
> Error Message
> AssertionError: Expected 'cleanup' to not have been called. Called 1 times.
> Stacktrace
> self = 
> <apache_beam.runners.interactive.interactive_environment_test.InteractiveEnvironmentTest
>  testMethod=test_track_user_pipeline_cleanup_non_inspectable_pipeline>
> mocked_cleanup = <MagicMock name='cleanup' id='140386685111432'>
>     @patch(
>         'apache_beam.runners.interactive.interactive_environment'
>         '.InteractiveEnvironment.cleanup')
>     def test_track_user_pipeline_cleanup_non_inspectable_pipeline(
>         self, mocked_cleanup):
>       ie._interactive_beam_env = None
>       ie.new_env()
>       dummy_pipeline_1 = beam.Pipeline()
>       dummy_pipeline_2 = beam.Pipeline()
>       dummy_pipeline_3 = beam.Pipeline()
>       dummy_pipeline_4 = beam.Pipeline()
>       dummy_pcoll = dummy_pipeline_4 | beam.Create([1])
>       dummy_pipeline_5 = beam.Pipeline()
>       dummy_non_inspectable_pipeline = 'dummy'
>       ie.current_env().watch(locals())
>       from apache_beam.runners.interactive.background_caching_job import 
> BackgroundCachingJob
>       ie.current_env().set_background_caching_job(
>           dummy_pipeline_1,
>           BackgroundCachingJob(
>               runner.PipelineResult(runner.PipelineState.DONE), limiters=[]))
>       ie.current_env().set_test_stream_service_controller(dummy_pipeline_2, 
> None)
>       ie.current_env().set_cache_manager(
>           cache.FileBasedCacheManager(), dummy_pipeline_3)
>       ie.current_env().mark_pcollection_computed([dummy_pcoll])
>       ie.current_env().set_cached_source_signature(
>           dummy_non_inspectable_pipeline, None)
>       ie.current_env().set_pipeline_result(
>           dummy_pipeline_5, 
> runner.PipelineResult(runner.PipelineState.RUNNING))
> >     mocked_cleanup.assert_not_called()
> apache_beam/runners/interactive/interactive_environment_test.py:265: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> _mock_self = <MagicMock name='cleanup' id='140386685111432'>
>     def assert_not_called(_mock_self):
>         """assert that the mock was never called.
>         """
>         self = _mock_self
>         if self.call_count != 0:
>             msg = ("Expected '%s' to not have been called. Called %s times." %
>                    (self._mock_name or 'mock', self.call_count))
> >           raise AssertionError(msg)
> E           AssertionError: Expected 'cleanup' to not have been called. 
> Called 1 times.
> /usr/lib/python3.7/unittest/mock.py:792: AssertionError
> {code}
> https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/3609/
> https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/3607/
> https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/3593/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to