1. 09 8月, 2016 2 次提交
    • C
      setup.py: automate package list · a80a46ac
      Cleber Rosa 提交于
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      a80a46ac
    • C
      Avocado version: rely on pkg_resources instead of hard coded number · ddbe8f8d
      Cleber Rosa 提交于
      Although the current implementation of the version module may look
      simple, it imposes the loading of a huge number of modules for a
      simple version lookup.  The reason is that a number of avocado
      modules, including `avocado` (`avocado/__init__.py`) gets evaluated.
      This module imports from many core parts of avocado, including
      `core/job.py`, `core/test.py` which cascade to loading (and requiring)
      a lot of packages for a simple version lookup.
      
      This has restrained the use of `setup.py` in an environment without
      all those requirements.  While `setup.py` may not be able to deliver
      a functional Avocado without those requirements, it should not crash
      as it does now.
      
      For compatibility reasons, we'll keep the public API `avocado.VERSION`
      and the core API `avocado.core.version.VERSION` will be kept just as
      is.
      
      Reference: https://trello.com/c/WmINCCMsSigned-off-by: NCleber Rosa <crosa@redhat.com>
      ddbe8f8d
  2. 05 8月, 2016 1 次提交
  3. 04 8月, 2016 3 次提交
  4. 03 8月, 2016 10 次提交
  5. 02 8月, 2016 5 次提交
  6. 29 7月, 2016 4 次提交
  7. 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
  8. 27 7月, 2016 4 次提交
  9. 26 7月, 2016 7 次提交