1. 04 8月, 2016 2 次提交
  2. 03 8月, 2016 10 次提交
  3. 02 8月, 2016 5 次提交
  4. 29 7月, 2016 4 次提交
  5. 28 7月, 2016 4 次提交
    • C
      Merge remote-tracking branch 'apahim/python_env' · a09565d2
      Cleber Rosa 提交于
      a09565d2
    • C
      04c87ec3
    • A
      Asset fetcher improvements · 3e0a6313
      Amador Pahim 提交于
      Use the avocado.utils.filelock to avoid race conditions:
       - Download the files with a temporary unique name.
       - Lock the original file.
       - Move downloaded file to the original name.
       - Compute the hash, creating the hashfile.
       - Verify the file against the provided hash.
       - Unlock the original file.
       (While the lock is acquired, users trying to use the file will wait until
       the lock is released or, on wait timeout, receive a cache miss)
      
      Drop EnviromentError exceptions on cache miss. Instead, we now only
      log an error message and return None.
      
      Clean debug messages. Log was being polluted by asset fetcher. Let's
      make it quieter.
      
      Reference: https://trello.com/c/NeFPMkZY
      Reference: https://trello.com/c/OWCprQpdSigned-off-by: NAmador Pahim <apahim@redhat.com>
      3e0a6313
    • A
      Introduce the file locker utility · 47799337
      Amador Pahim 提交于
      This is a general purpose file locker.
      
      If the lock file already exists and it contains the current process
      id in it, we wait until the timeout for the lock to be released,
      raising an AlreadyLocked exception when the timeout is reached.
      
      If the lock file already exists and it contains a pid of another
      running process, we raise an AlreadyLocked exception.
      
      If the lock file exists and it has no running processes pid in it,
      we try to clean the file and acquire the lock, raising a LockFailed
      exception when something goes wrong.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      47799337
  6. 27 7月, 2016 4 次提交
  7. 26 7月, 2016 8 次提交
  8. 25 7月, 2016 3 次提交