From owner-svn-ports-all@freebsd.org Sun Aug 4 21:34:57 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8100BB30D2; Sun, 4 Aug 2019 21:34:57 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 461vLn2gPXz3Qx6; Sun, 4 Aug 2019 21:34:57 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3DD859AA8; Sun, 4 Aug 2019 21:34:57 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x74LYvOx074591; Sun, 4 Aug 2019 21:34:57 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x74LYukg074587; Sun, 4 Aug 2019 21:34:56 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201908042134.x74LYukg074587@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Sun, 4 Aug 2019 21:34:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r508128 - in head/devel: . py-flaky X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in head/devel: . py-flaky X-SVN-Commit-Revision: 508128 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2019 21:34:57 -0000 Author: kai Date: Sun Aug 4 21:34:56 2019 New Revision: 508128 URL: https://svnweb.freebsd.org/changeset/ports/508128 Log: [NEW PORT] devel/py-flaky Plugin for nose or pytest that automatically reruns flaky tests Ideally, tests reliably pass or fail, but sometimes test fixtures must rely on components that aren't 100% reliable. With flaky, instead of removing those tests or marking them to skip, they can be automatically retried. WWW: https://github.com/box/flaky Reviewed by: koobs Approved by: koobs Differential Revision: https://reviews.freebsd.org/D21132 Added: head/devel/py-flaky/ head/devel/py-flaky/Makefile (contents, props changed) head/devel/py-flaky/distinfo (contents, props changed) head/devel/py-flaky/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Aug 4 21:15:37 2019 (r508127) +++ head/devel/Makefile Sun Aug 4 21:34:56 2019 (r508128) @@ -4408,6 +4408,7 @@ SUBDIR += py-flake8-import-order SUBDIR += py-flake8-polyfill SUBDIR += py-flake8-quotes + SUBDIR += py-flaky SUBDIR += py-flask-babel SUBDIR += py-flatbuffers SUBDIR += py-flex Added: head/devel/py-flaky/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-flaky/Makefile Sun Aug 4 21:34:56 2019 (r508128) @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= flaky +DISTVERSION= 3.6.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Plugin for nose or pytest that automatically reruns flaky tests + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}genty>0:devel/py-genty@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && \ + ${PYTHON_CMD} -m nose -v --no-flaky-report \ + --with-flaky --exclude="test_nose_options_example" test/test_nose/ && \ + ${PYTHON_CMD} -m pytest -v -rs --no-flaky-report \ + -k 'example and not options' -n 1 test/test_pytest && \ + ${PYTHON_CMD} -m pytest -v -rs \ + -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py && \ + ${PYTHON_CMD} -m nose -v --no-flaky-report \ + --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py && \ + ${PYTHON_CMD} -m pytest -v -rs --no-flaky-report \ + --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py + +.include Added: head/devel/py-flaky/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-flaky/distinfo Sun Aug 4 21:34:56 2019 (r508128) @@ -0,0 +1,3 @@ +TIMESTAMP = 1563397978 +SHA256 (flaky-3.6.0.tar.gz) = c24e321b3b4b4a2d323b646acff6738e7601849832f4280864d69f00a6a9869d +SIZE (flaky-3.6.0.tar.gz) = 29523 Added: head/devel/py-flaky/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-flaky/pkg-descr Sun Aug 4 21:34:56 2019 (r508128) @@ -0,0 +1,7 @@ +Ideally, tests reliably pass or fail, but sometimes test fixtures must rely on +components that aren't 100% reliable. + +With flaky, instead of removing those tests or marking them to skip, they can +be automatically retried. + +WWW: https://github.com/box/flaky