Hello community, here is the log from the commit of package python-pifpaf for openSUSE:Factory checked in at 2018-02-26 23:24:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pifpaf (Old) and /work/SRC/openSUSE:Factory/.python-pifpaf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pifpaf" Mon Feb 26 23:24:34 2018 rev:5 rq:579519 version:2.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pifpaf/python-pifpaf.changes 2018-01-17 21:59:39.739414195 +0100 +++ /work/SRC/openSUSE:Factory/.python-pifpaf.new/python-pifpaf.changes 2018-02-26 23:24:36.631502439 +0100 @@ -1,0 +2,13 @@ +Fri Feb 23 13:34:40 UTC 2018 - [email protected] + +- update to 2.0.5: + * Fix s3rver for latest version + * Revert "wait the pifpaf process termination in fork mode" + * Use last ceph lts + * gnocchi: use gnocchi-api binary when possible + * wait the pifpaf process termination in fork mode + * Fix exception handling + * swift: use all needed workers + * Fix exit code not being propagated + +------------------------------------------------------------------- Old: ---- pifpaf-2.0.0.tar.gz New: ---- pifpaf-2.0.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pifpaf.spec ++++++ --- /var/tmp/diff_new_pack.V4Yleq/_old 2018-02-26 23:24:37.291478704 +0100 +++ /var/tmp/diff_new_pack.V4Yleq/_new 2018-02-26 23:24:37.291478704 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pifpaf -Version: 2.0.0 +Version: 2.0.5 Release: 0 Summary: Suite of tools and fixtures to manage daemons for testing License: Apache-2.0 ++++++ pifpaf-2.0.0.tar.gz -> pifpaf-2.0.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/.travis.yml new/pifpaf-2.0.5/.travis.yml --- old/pifpaf-2.0.0/.travis.yml 2018-01-10 13:39:54.000000000 +0100 +++ new/pifpaf-2.0.5/.travis.yml 2018-02-09 20:55:01.000000000 +0100 @@ -10,6 +10,8 @@ before_install: # Always redownload tarball - find ~/.cache/pip -name '*.dev*' -delete + - wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add - + - echo deb https://download.ceph.com/debian-jewel/ trusty main | sudo tee /etc/apt/sources.list.d/ceph.list - sudo apt-get -qq update - sudo apt-get purge -y mysql-server-5.6 mysql-server-core-5.6 mysql-client-core-5.6 mysql-client-5.6 postgresql* libpq* - sudo rm -rf /var/lib/mysql diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/ChangeLog new/pifpaf-2.0.5/ChangeLog --- old/pifpaf-2.0.0/ChangeLog 2018-01-10 13:49:33.000000000 +0100 +++ new/pifpaf-2.0.5/ChangeLog 2018-02-09 21:05:38.000000000 +0100 @@ -1,6 +1,34 @@ CHANGES ======= +2.0.5 +----- + +* Fix s3rver for latest version + +2.0.4 +----- + +* Revert "wait the pifpaf process termination in fork mode" + +2.0.3 +----- + +* Use last ceph lts +* gnocchi: use gnocchi-api binary when possible +* wait the pifpaf process termination in fork mode + +2.0.2 +----- + +* Fix exception handling +* swift: use all needed workers + +2.0.1 +----- + +* Fix exit code not being propagated + 2.0.0 ----- @@ -151,35 +179,3 @@ * Do not use concurrency to run tests * Fix conflicting port in Gnocchi test * Use another port for test\_gnocchi\_with\_redis\_coordinator -* Fix pep8 error - -1.4.9 ------ - -* Revert "gnocchi: remove deprecated uwsgi option die-on-term" - -1.4.8 ------ - -* gnocchi: ensure client don't use keepalive - -1.4.7 ------ - -* gnocchi: add --no-orphans to uwsgi -* gnocchi: remove deprecated uwsgi option die-on-term - -1.4.6 ------ - -* gnocchi: only run 1 metricd - -1.4.5 ------ - -* gnocchi: add missing backslash in re - -1.4.4 ------ - -* gnocchi: chdir to tempdir in uwsgi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/PKG-INFO new/pifpaf-2.0.5/PKG-INFO --- old/pifpaf-2.0.0/PKG-INFO 2018-01-10 13:49:33.000000000 +0100 +++ new/pifpaf-2.0.5/PKG-INFO 2018-02-09 21:05:38.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: pifpaf -Version: 2.0.0 +Version: 2.0.5 Summary: Suite of tools and fixtures to manage daemons for testing Home-page: https://github.com/jd/pifpaf Author: Julien Danjou Author-email: [email protected] License: UNKNOWN +Description-Content-Type: UNKNOWN Description: ========== Pifpaf ========== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf/__main__.py new/pifpaf-2.0.5/pifpaf/__main__.py --- old/pifpaf-2.0.0/pifpaf/__main__.py 2018-01-10 13:39:54.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf/__main__.py 2018-02-09 20:55:01.000000000 +0100 @@ -39,7 +39,12 @@ def _format_multiple_exceptions(e, debug=False): valid_excs = [] - excs = list(e.args) + # NOTE(sileht): Why do I not use this ? : + # excs = list(e.args) + # Because it raises SystemExit(2) on python3 !!?!? + excs = [] + for i in range(len(e.args)): + excs.append(e.args[i]) while excs: (etype, value, tb) = excs.pop(0) if (etype == fixtures.MultipleExceptions): @@ -54,7 +59,7 @@ if debug: LOG.error("".join(traceback.format_exception(etype, value, tb))) else: - raise value + LOG.error(value) else: LOG.error("MultipleExceptions raised:") for n, (etype, value, tb) in enumerate(valid_excs): @@ -260,5 +265,9 @@ global_urls_variable) +def run_main(): + return main.main(standalone_mode=False) + + if __name__ == '__main__': - main() + sys.exit(run_main()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf/drivers/gnocchi.py new/pifpaf-2.0.5/pifpaf/drivers/gnocchi.py --- old/pifpaf-2.0.0/pifpaf/drivers/gnocchi.py 2018-01-10 13:39:54.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf/drivers/gnocchi.py 2018-02-09 20:55:01.000000000 +0100 @@ -10,10 +10,12 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. +import logging import os import shutil import uuid from distutils import spawn +from distutils import version import click @@ -23,6 +25,8 @@ from pifpaf.drivers import postgresql from pifpaf.drivers import redis +LOG = logging.getLogger(__name__) + class GnocchiDriver(drivers.Driver): @@ -186,24 +190,31 @@ wait_for_line=("(Resource .* already exists" "|Created resource )")) - args = [ - "uwsgi", - "--http", "localhost:%d" % self.port, - "--wsgi-file", spawn.find_executable("gnocchi-api"), - "--master", - "--die-on-term", - "--lazy-apps", - "--processes", "4", - "--no-orphans", - "--enable-threads", - "--chdir", self.tempdir, - "--add-header", "Connection: close", - "--pyargv", "--config-file=%s" % conffile, - ] - - virtual_env = os.getenv("VIRTUAL_ENV") - if virtual_env is not None: - args.extend(["-H", virtual_env]) + _, v = self._exec(["gnocchi-api", "--", "--version"], stdout=True) + v = version.LooseVersion(drivers.fsdecode(v).strip()) + if v < version.LooseVersion("4.1.0"): + LOG.debug("gnocchi version: %s, running uwsgi manually for api", v) + args = [ + "uwsgi", + "--http", "localhost:%d" % self.port, + "--wsgi-file", spawn.find_executable("gnocchi-api"), + "--master", + "--die-on-term", + "--lazy-apps", + "--processes", "4", + "--no-orphans", + "--enable-threads", + "--chdir", self.tempdir, + "--add-header", "Connection: close", + "--pyargv", "--config-file=%s" % conffile, + ] + + virtual_env = os.getenv("VIRTUAL_ENV") + if virtual_env is not None: + args.extend(["-H", virtual_env]) + else: + LOG.debug("gnocchi version: %s, running gnocchi-api", v) + args = ["gnocchi-api", "--config-file=%s" % conffile] c, _ = self._exec(args, wait_for_line="WSGI app 0 \(mountpoint=''\) ready") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf/drivers/s3rver.py new/pifpaf-2.0.5/pifpaf/drivers/s3rver.py --- old/pifpaf-2.0.0/pifpaf/drivers/s3rver.py 2018-01-10 13:39:54.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf/drivers/s3rver.py 2018-02-09 20:55:01.000000000 +0100 @@ -37,7 +37,6 @@ c, _ = self._exec( ["s3rver", - "--cors", "--directory", self.tempdir, "--port", str(self.port)], wait_for_line="now listening on host") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf/drivers/templates/swift/common.conf.inc new/pifpaf-2.0.5/pifpaf/drivers/templates/swift/common.conf.inc --- old/pifpaf-2.0.0/pifpaf/drivers/templates/swift/common.conf.inc 2018-01-10 13:39:54.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf/drivers/templates/swift/common.conf.inc 2018-02-09 20:55:01.000000000 +0100 @@ -1,6 +1,5 @@ mount_check = false disable_fallocate = true -workers = 1 bind_ip = 127.0.0.1 user = {{ USER }} swift_dir = {{ TMP_DIR }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf/tests/test_cli.py new/pifpaf-2.0.5/pifpaf/tests/test_cli.py --- old/pifpaf-2.0.0/pifpaf/tests/test_cli.py 2018-01-10 13:39:54.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf/tests/test_cli.py 2018-02-09 20:55:01.000000000 +0100 @@ -53,6 +53,15 @@ @testtools.skipUnless(spawn.find_executable("memcached"), "memcached not found") + def test_exit_code(self): + c = subprocess.Popen(["pifpaf", "run", "memcached", "--port", "11234", + "--", "bash", "-c", "exit 31"], + stdout=subprocess.PIPE) + (stdout, stderr) = c.communicate() + self.assertEqual(31, c.wait()) + + @testtools.skipUnless(spawn.find_executable("memcached"), + "memcached not found") def test_env_prefix(self): c = subprocess.Popen(["pifpaf", "run", "--env-prefix", "FOOBAR", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf.egg-info/PKG-INFO new/pifpaf-2.0.5/pifpaf.egg-info/PKG-INFO --- old/pifpaf-2.0.0/pifpaf.egg-info/PKG-INFO 2018-01-10 13:49:33.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf.egg-info/PKG-INFO 2018-02-09 21:05:38.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: pifpaf -Version: 2.0.0 +Version: 2.0.5 Summary: Suite of tools and fixtures to manage daemons for testing Home-page: https://github.com/jd/pifpaf Author: Julien Danjou Author-email: [email protected] License: UNKNOWN +Description-Content-Type: UNKNOWN Description: ========== Pifpaf ========== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf.egg-info/entry_points.txt new/pifpaf-2.0.5/pifpaf.egg-info/entry_points.txt --- old/pifpaf-2.0.0/pifpaf.egg-info/entry_points.txt 2018-01-10 13:49:33.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf.egg-info/entry_points.txt 2018-02-09 21:05:38.000000000 +0100 @@ -1,5 +1,5 @@ [console_scripts] -pifpaf = pifpaf.__main__:main +pifpaf = pifpaf.__main__:run_main [pifpaf.daemons] aodh = pifpaf.drivers.aodh:AodhDriver diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/pifpaf.egg-info/pbr.json new/pifpaf-2.0.5/pifpaf.egg-info/pbr.json --- old/pifpaf-2.0.0/pifpaf.egg-info/pbr.json 2018-01-10 13:49:33.000000000 +0100 +++ new/pifpaf-2.0.5/pifpaf.egg-info/pbr.json 2018-02-09 21:05:38.000000000 +0100 @@ -1 +1 @@ -{"git_version": "123538e", "is_release": true} \ No newline at end of file +{"git_version": "d094170", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pifpaf-2.0.0/setup.cfg new/pifpaf-2.0.5/setup.cfg --- old/pifpaf-2.0.0/setup.cfg 2018-01-10 13:49:33.000000000 +0100 +++ new/pifpaf-2.0.5/setup.cfg 2018-02-09 21:05:38.000000000 +0100 @@ -55,7 +55,7 @@ zookeeper = pifpaf.drivers.zookeeper:ZooKeeperDriver vault = pifpaf.drivers.vault:VaultDriver console_scripts = - pifpaf = pifpaf.__main__:main + pifpaf = pifpaf.__main__:run_main [wheel] universal = 1
