1. 23 6月, 2017 1 次提交
  2. 12 6月, 2017 1 次提交
  3. 15 5月, 2017 1 次提交
  4. 24 4月, 2017 1 次提交
  5. 06 3月, 2017 1 次提交
  6. 17 1月, 2017 1 次提交
  7. 05 12月, 2016 1 次提交
  8. 07 11月, 2016 1 次提交
  9. 09 10月, 2016 1 次提交
  10. 12 9月, 2016 1 次提交
  11. 23 8月, 2016 1 次提交
  12. 15 8月, 2016 1 次提交
  13. 13 8月, 2016 1 次提交
  14. 28 7月, 2016 2 次提交
    • 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
  15. 25 7月, 2016 1 次提交
  16. 13 7月, 2016 1 次提交