[Bug 301350] bin/pkill/pkill-j_test: tests are not concurrency safe

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 01 Dec 2026 01:37:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301350

            Bug ID: 301350
           Summary: bin/pkill/pkill-j_test: tests are not concurrency safe
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: tests
          Assignee: testing@FreeBSD.org
          Reporter: ngie@FreeBSD.org

This was seen once when running tests with parallelism == 6.
```
     • Test program: /usr/tests/bin/pkill/pkill-j_test                          
     • Result: failed: 1 of 4 tests failed                                      
     • Start time: 2026-12-01T00:23:24.382947Z                                  
     • End time: 2026-12-01T00:24:00.408900Z                                    
     • Duration: 36.026s                                                        
     • Execution context                                                        

   Metadata                                                                     

     • allowed_architectures =                                                  
     • allowed_platforms =                                                      
     • description =                                                            
     • execenv =                                                                
     • execenv_jail_params =                                                    
     • has_cleanup = false                                                      
     • is_exclusive = false                                                     
     • required_configs =                                                       
     • required_disk_space = 0                                                  
     • required_files =                                                         
     • required_kmods =                                                         
     • required_memory = 0                                                      
     • required_programs =                                                      
     • required_user =                                                          
     • timeout = 300                                                            

   Standard output                                                              

   1..4                                                                         
   not ok 1 - pkill -j <jid>                                                    
   ok 2 - pkill -j any                                                          
   ok 3 - pkill -j none                                                         
   ok 4 - pkill -j <jname>                                                      

   Standard error                                                               

   jail: "1221" already exists                                                  
   jail: "1222" already exists
```
Best guess: there's a race in terms of how jails are constructed/named with the
tests.

-- 
You are receiving this mail because:
You are the assignee for the bug.