Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
VCS tools are test dependencies… #427
Conversation
snappy-m-o
commented
Apr 5, 2016
|
Can one of the admins verify this patch? |
snappy-m-o
commented
Apr 5, 2016
|
Can one of the admins verify this patch? |
|
OK to test. |
|
this is missing a bug number |
|
lgtm. Maybe we can add in runtests.sh a check for all the requirements and fail if they are missng so we can also run the tests with that script, not just with adt-run. |
|
also note that some plugins will execute apt-get to install their build packages. So this is good, but doesn't remove all the executions of apt-get in the code. |
Right, I wasn't sure how to phrase it nor if it was worth fixing so I thought about gathering feedback with that PR first ;) |
Right, this was focused on tests only and only on tests that broke isolation and block concurrency.
I'm not sure I follow. As a user I don't expect to get meaningful results by running apt-get install concurrently (even through different commands). For tests though, I would argue that if 'sudo apt-get install' needs to be used in a test this should happen in some vm where passwordless sudo access is provided. Developers running tests are unlikely to provide passwordless sudo access and some would (rightly) freak out if running tests prompt for the root password ;) I do my snapcraft work inside a container where passwordless sudo access is provided but I don't think I'm in the majority there... |
|
Found https://bugs.launchpad.net/snapcraft/+bug/1540523 which looks like a good match. |
|
El 06/04/16 a las 10:59, vilagithub escribió:
Could be, that bug is much broader though (implementing requirements.txt and requirements-test.txt for dependencies as well). |
Ha right, yeah, will file a more focused one then. |
|
Neither http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/402/console nor http://162.213.35.179:8080/job/github-snapcraft-examples-tests-cloud/492/testReport/junit/test_webcam_webui/WebcamWebUITestCase/test_webcam_webui/ makes much sense to my uneducated eyes... Should I try to reproduce locally (pointers welcome) or are those known spurious issues ? |
|
you will need to click on "Update branch". Ping one of us when you do so we know not to land anything in between. Thanks |
|
From http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/429/console : Finding IP address succeeded: 10.42.61.202 is probably the relevant error: autopkgtest fails to setup the slave |
|
Rebased and test passing \o/ |
vilagithub commentedApr 5, 2016
...they should be installed to run the tests or the tests should be skipped.
This allows tests to be run concurrently (apt-get can't be run concurrently
;) and brings the time to run both unit and integration tests from 5'47 to 1'43 with:
PYTHONPATH=
pwdols-run-tests -m integration_tests -m snapcraft -c 8which is nice ;)
No tests were hurt during the production of this patch ;)