You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:39:04 UTC

[buildstream] branch tlater/nocover-usedevelop created (now c2bbaeb)

This is an automated email from the ASF dual-hosted git repository.

not-in-ldap pushed a change to branch tlater/nocover-usedevelop
in repository https://gitbox.apache.org/repos/asf/buildstream.git.


      at c2bbaeb  .gitlab-ci.yml: Assert that tests without `usedevelop` work

This branch includes the following new commits:

     new 23806fd  setup.cfg: Restrict pytest's config search to the tests/ directory
     new c2bbaeb  .gitlab-ci.yml: Assert that tests without `usedevelop` work

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[buildstream] 02/02: .gitlab-ci.yml: Assert that tests without `usedevelop` work

Posted by no...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

not-in-ldap pushed a commit to branch tlater/nocover-usedevelop
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit c2bbaeb0f185d85771e38ada40aa03dda2d80eac
Author: Tristan Maat <tr...@codethink.co.uk>
AuthorDate: Fri Oct 11 17:35:08 2019 +0100

    .gitlab-ci.yml: Assert that tests without `usedevelop` work
    
    This is partially to prevent issues like #1121, but also to ensure our
    manifests can be packaged correctly.
    
    For now only the test suite is exercised, in the future it would be
    nice to expand this to other tests (such as the man pages, or source
    tests), but those don't have -nocover versions yet.
---
 .gitlab-ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ef31ad3..5576a44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -84,6 +84,16 @@ overnight-fedora-30-aarch64:
   only:
   - schedules
 
+tests-isolated:
+  # Ensure that our tests also function without usedevelop, although
+  # this forces us to disable coverage reports
+  image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:29-master-85428307
+  variables:
+    TEST_COMMAND: "tox -e py{35,36,37}-nocover -- ${PYTEST_ARGS}"
+    EXTERNAL_TESTS_COMMAND: "tox -e py{35,36,37}-external-nocover -- ${PYTEST_ARGS}"
+  <<: *tests
+
+
 tests-unix:
   # Use fedora here, to a) run a test on fedora and b) ensure that we
   # can get rid of ostree - this is not possible with debian-8


[buildstream] 01/02: setup.cfg: Restrict pytest's config search to the tests/ directory

Posted by no...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

not-in-ldap pushed a commit to branch tlater/nocover-usedevelop
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 23806fd9a0ccd874c4275b6bf6f4d167bf6a0f85
Author: Tristan Maat <tr...@codethink.co.uk>
AuthorDate: Fri Oct 11 17:23:56 2019 +0100

    setup.cfg: Restrict pytest's config search to the tests/ directory
    
    This fixes issue #1121 - pytest would search the entire path for
    conftest.py, which in an isolated run would include conftest.py twice.
    
    This may still be an issue for sourcetest-nocover, but that isn't
    currently supported, so this shouldn't regress.
---
 setup.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.cfg b/setup.cfg
index 2264a31..42f869b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,7 +11,7 @@ parentdir_prefix = BuildStream-
 test=pytest
 
 [tool:pytest]
-addopts = --verbose --basetemp ./tmp --durations=20
+addopts = --verbose --basetemp ./tmp --durations=20 tests/
 norecursedirs = tests/integration/project integration-cache tmp __pycache__ .eggs
 python_files = tests/*/*.py
 env =