Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e51b217c5c1108665e10694fd7de4045222c4876cf94c4ec7da1fe4fa0803b6a
Ticket: 7b4a819535231639cccf59d197ed59ded4375119
Sometimes, on macOS, 15/20 minutes are not enough to run all testcases
User & Date: sebres on 2026-09-11 15:05:30
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Attempts to fix (like [34db3351f1d7faf1]) would not help at all, because it is not slowness but [https://github.com/tcltk/tcl/actions/runs/34596018024/job/103251831007#step:5:119209|hang]:
    
    <code><pre style="margin-left:15pt">
    2026-09-11T11:58:45.9965230Z unixFCmd.test
    2026-09-11T11:58:46.0526710Z ---- unixFCmd-1.1 start
    2026-09-11T11:58:46.0538050Z ++++ unixFCmd-1.1 took 1 ms
    ...
    2026-09-11T11:58:46.0595970Z ---- unixFCmd-2.3 start
    2026-09-11T11:58:46.0596640Z ++++ unixFCmd-2.3 took 0 ms
    2026-09-11T11:58:46.0599030Z ---- unixFCmd-2.4 start
    2026-09-11T12:23:14.7589210Z ##[error]The action 'Run Tests' has timed out after 30 minutes.
    </pre></code>
    
    Something seems to be wrong in unixFCmd-2.4 (or rather with file copy) - looks like a race condition to me.
    
    Also the AIs are in agreement here:
    <i>
    On macOS, opening a FIFO for reading (without the O_NONBLOCK flag) blocks until another process opens the same FIFO for writing. This behavior is documented in the open(2) man page and is specific to the BSD-based kernel that macOS uses. On Linux, the same operation returns immediately, which is why the test may pass on other Unix-like systems but hangs on macOS.
    </i>
    
    The [./file?ci=core-8-6-branch&name=unix%2FtclUnixFCmd.c&ln=519-523|check for S_IFIFO] in DoCopyFile whether the source is fifo seems to be not enough there (or there is some bypass somewhere for MACOS and it fallsback to copy), or [e4d3a903de130788] misses something yet specific for macos.<br/>
    I could try to fix it, but I don't have macos to hand and debugging and fixing sporadic heisenbug on GH is thankless task.
    
  5. foundin changed to: "any"
  6. is_private changed to: "0"
  7. login: "sebres"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "50e9528765c18296566374b3fde2df942c394efd"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "sebres"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to:
    Sometimes, on macOS, 15/20 minutes are not enough to run all testcases
    
  16. type changed to: "Bug"