Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1169

waitForNewTimestamp enters an infinite loop on some platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.9.0
    • 1.8.1
    • General
    • None
    • bc26762e48732a88cd412430faade77ffc2c8f60

    Description

      On Fedora, for example, waitForNewTimestamp has been observed to enter an infinite loop (possibly due to the Docker and/or rpmbuild environment).

      Instead of playing games with timestamps, should we instead check the filesystem type of the test data directory for a limited number of filesystems which are the most common and wait for an appropriate amount of time:

      • APFS, ext4, ZFS: 1 ns => qWait(1)
      • NTFS: 100 ns => qWait(1)
      • FAT: 2 s => qWait(2000)
      • exFAT: 10 ms => qWait(10)
      • HFS, ext2, ext3: 1 s => qWait(1000)

      and simply wait 1 second for the remaining filesystems, assuming no filesystem except FAT has a worse timestamp granularity and accepting the degraded performance under those environments?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes