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

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

                Author: ASF GitHub Bot
            Created on: 17/Dec/19 19:54
            Start Date: 17/Dec/19 19:54
    Worklog Time Spent: 10m 
      Work Description: KevinGG commented on issue #10404: [BEAM-8977] Resolve 
test flakiness
URL: https://github.com/apache/beam/pull/10404#issuecomment-566723183
 
 
   R: @tvalentyn 
   PTAL, thanks!
 
----------------------------------------------------------------
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: 361089)
    Time Spent: 20m  (was: 10m)

> apache_beam.runners.interactive.display.pcoll_visualization_test.PCollectionVisualizationTest.test_dynamic_plotting_update_same_display
>  is flaky
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-8977
>                 URL: https://issues.apache.org/jira/browse/BEAM-8977
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Valentyn Tymofieiev
>            Assignee: Ning Kang
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Sample failure: 
>  
> [https://builds.apache.org/job/beam_PreCommit_Python_Phrase/1273/testReport/apache_beam.runners.interactive.display.pcoll_visualization_test/PCollectionVisualizationTest/test_dynamic_plotting_update_same_display/]
> Error Message
>  IndexError: list index out of range
> Stacktrace
>  self = 
> <apache_beam.runners.interactive.display.pcoll_visualization_test.PCollectionVisualizationTest
>  testMethod=test_dynamic_plotting_update_same_display>
>  mocked_display_facets = <MagicMock name='display_facets' 
> id='139889868386376'>
> @patch('apache_beam.runners.interactive.display.pcoll_visualization'
>  '.PCollectionVisualization.display_facets')
>  def test_dynamic_plotting_update_same_display(self,
>  mocked_display_facets):
>  fake_pipeline_result = runner.PipelineResult(runner.PipelineState.RUNNING)
>  ie.current_env().set_pipeline_result(self._p, fake_pipeline_result)
>  # Starts async dynamic plotting that never ends in this test.
>  h = pv.visualize(self._pcoll, dynamic_plotting_interval=0.001)
>  # Blocking so the above async task can execute some iterations.
>  time.sleep(1)
>  # The first iteration doesn't provide updating_pv to display_facets.
>  _, first_kwargs = mocked_display_facets.call_args_list[0]
>  self.assertEqual(first_kwargs, {})
>  # The following iterations use the same updating_pv to display_facets and so
>  # on.
>  > _, second_kwargs = mocked_display_facets.call_args_list[1]
>  E IndexError: list index out of range
> apache_beam/runners/interactive/display/pcoll_visualization_test.py:105: 
> IndexError
> Standard Output
> <IPython.core.display.HTML object>
>  Standard Error
>  WARNING:apache_beam.runners.interactive.interactive_environment:You cannot 
> use Interactive Beam features when you are not in an interactive environment 
> such as a Jupyter notebook or ipython terminal.



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

Reply via email to