46 Commits

Author SHA1 Message Date
Matt Davis 9848862927 Convert test runner to use pypiserver package as standalone process (#5284)
* Check point progress on moving tests to pypiserver.

* Allow other indexes to mimic the pypi json API for package hashes.

* Fix these tests that run on lower python versions only.

* Try adding the pypiserver to the github actions to only run once.

* Expand the scope of fixtures for pypiserver.

* try to accomedate microsoft runner.

* Windows networking troubles.

* Remove running as a background job.

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to introduce pypi as the root index because setuptools-scm is not in our pypi artifacts.

* see if the windows tests run faster (and the other tests) by supplying waitress.

* Only use waitress on windows because the others are fast on the default.  Fix requests pollution.

* Supply a suitable Pipfile instead for these two failing tests.

* More requests resolver cross test contamination cleanup.

* remove problematic tests because even on my version of python 3.8.12 this does not work due to AttributeError: 'HTMLParser' object has no attribute 'unescape'

* fix mirror install test.

* Fix Pipfile.

* Fix Pipfile for real

* Fix tests

* Cleanup test naming and more test enhancements.

* Save this optimization for a subsequent PR.

* Cleanup the TemporaryDirectory between tests.

* resolve merge conflict.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* tableflip on those requests tests that read the setup metadata in reqlib from other tests.

* Update developer documentation for running tests.

* add news fragment.

* Try gunicorn perfoormance for linux/mac

* Only use gunicorn on linux based on the results of last run.
2022-09-05 10:19:12 -04:00
Dan Ryan 1adb502b18 Update test runner code and contribution guide
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-03 22:01:09 -04:00
Dan Ryan f8a51024e0 Install local tests extra for test runners
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-18 16:29:33 -05:00
Dan Ryan d407ac4740 Add submodule sync and update to scripts
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-18 23:55:50 -05:00
Jacob Hayes dd4b4be175 Remove explicit sets of PYPI_VENDOR_DIR and let integration conftest do its thing 2018-07-11 13:25:02 -05:00
kennethreitz d1a13b5843 next iteration
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 11:24:38 -05:00
kennethreitz de356753e0 report.tap
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 11:18:54 -05:00
kennethreitz 378e1cb346 larger size
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 11:11:40 -05:00
kennethreitz b81a6d9fda no file base
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 11:11:24 -05:00
kennethreitz 59f9a8e612 skip
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 11:05:13 -05:00
kennethreitz e2714d34d8 persistient
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 11:04:10 -05:00
kennethreitz 51d8d3c67b cleanup
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 11:02:40 -05:00
kennethreitz 66fb3d81e9 persistients 2018-03-06 10:59:10 -05:00
kennethreitz bd1435990d install
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:51:36 -05:00
kennethreitz 5570322e73 getting drastic
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:50:07 -05:00
kennethreitz 3c61a278ae try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:48:55 -05:00
kennethreitz f2def195b8 drasticer
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:45:10 -05:00
kennethreitz 6b4b8f07fb &&imediately
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:41:56 -05:00
kennethreitz ca391fc20c try like this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:40:20 -05:00
kennethreitz d9182e67d3 try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:38:34 -05:00
kennethreitz c8f942c83c double backslash
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:32:16 -05:00
kennethreitz d94336734d try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:30:03 -05:00
kennethreitz 146dc0f467 ram disk for windows
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:27:53 -05:00
kennethreitz 215148ff2b ramdisk for windows
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 10:06:18 -05:00
kennethreitz 24edcc8ee8 try concurrency again
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:46:46 -05:00
kennethreitz 6f7024196d run all tests on windows
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:46:26 -05:00
kennethreitz 2fb4902458 try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:30:24 -05:00
kennethreitz e070d04602 proper quotes
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:28:31 -05:00
kennethreitz bfdf7d51fe set pypi directory
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:27:26 -05:00
kennethreitz 5c775adb9f don't pipe results of tap
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:18:19 -05:00
kennethreitz d55b786222 results.tap
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:13:48 -05:00
kennethreitz 5376ac3e7b windows or cli
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:49:50 -05:00
kennethreitz 67dac4cb06 windows and cli
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:46:48 -05:00
kennethreitz da7cb226da windows and cli
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:44:46 -05:00
kennethreitz 6a533b5b59 results.tap
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:42:32 -05:00
kennethreitz 833093e361 only run windows tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:41:07 -05:00
kennethreitz 447228e008 remove tap for now
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:27:30 -05:00
kennethreitz 44eeffdcdc no concucurrency for windows
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:20:11 -05:00
kennethreitz ed0060bfaa try --boxed
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:19:03 -05:00
kennethreitz 235ca6ffda oops
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:16:53 -05:00
kennethreitz a5b2cadba8 auto again on windows
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:13:12 -05:00
kennethreitz e339494c59 run in virtualenv
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 13:03:35 -05:00
kennethreitz 1c16a78c7a tee
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 12:59:51 -05:00
kennethreitz e3c306c6ce don't run concurrently on windows
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 12:58:14 -05:00
kennethreitz 54d8a63686 pipe to results.tap
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 12:57:41 -05:00
kennethreitz 6b234066a8 run-tests.bat
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 12:55:06 -05:00