This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new aee48cc  Quarantine maintain_hear_rate test (#18860)
aee48cc is described below

commit aee48cc065ca9a55a094087b92c94f65c31dde10
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Oct 9 20:14:18 2021 +0200

    Quarantine maintain_hear_rate test (#18860)
    
    Depending on the circumstances, this test might show very
    different timings (and very wrong ones). Example:
    
    ```
      >       assert time_end - time_start < job1.heartrate
      E       assert (1633800366.161033 - 1633800360.9558177) < 1.0
      E        +  where 1.0 = <airflow.jobs.local_task_job.LocalTaskJob object 
at 0x7f1faf784e80>.heartrate
    ```
    
    This test should likely remain in quarantine for ever.
    You will still be able to run it locally, but running it in CI
    makes little sense.
---
 tests/jobs/test_local_task_job.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/jobs/test_local_task_job.py 
b/tests/jobs/test_local_task_job.py
index 663ba43..c99f043 100644
--- a/tests/jobs/test_local_task_job.py
+++ b/tests/jobs/test_local_task_job.py
@@ -350,6 +350,7 @@ class TestLocalTaskJob:
 
         session.close()
 
+    @pytest.mark.quarantined
     @patch.object(StandardTaskRunner, 'return_code')
     def test_localtaskjob_maintain_heart_rate(self, mock_return_code, caplog, 
create_dummy_dag):
 

Reply via email to