potiuk opened a new issue #18777:
URL: https://github.com/apache/airflow/issues/18777


   ### Body
   
   The `test_no_orphan_process_will_be_left` in `TestSchedulerJob` is really 
flaky.
   
   Before we know how to fix it, I will quarantine it:
   
   https://github.com/apache/airflow/pull/18691/checks?check_run_id=3811660138
   
   ```
     =================================== FAILURES 
===================================
     _____________ TestSchedulerJob.test_no_orphan_process_will_be_left 
_____________
     
     self = <tests.jobs.test_scheduler_job.TestSchedulerJob object at 
0x7fc2f91d2ac8>
     
         def test_no_orphan_process_will_be_left(self):
             empty_dir = mkdtemp()
             current_process = psutil.Process()
             old_children = current_process.children(recursive=True)
             self.scheduler_job = SchedulerJob(
                 subdir=empty_dir, num_runs=1, 
executor=MockExecutor(do_update=False)
             )
             self.scheduler_job.run()
             shutil.rmtree(empty_dir)
         
             # Remove potential noise created by previous tests.
             current_children = set(current_process.children(recursive=True)) - 
set(old_children)
     >       assert not current_children
     E       AssertionError: assert not {psutil.Process(pid=2895, 
name='pytest', status='running', started='06:53:45')}
     
   ```
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer of the Apache Airflow 
project.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to