Commit Graph
17 Commits
Author SHA1 Message Date
John Chilton e3dedd86bc Performance metrics for tests. 2021-02-12 20:44:05 -05:00
Nicola Soranzo 452aba9ee3 Fix remaining issues reported by bugbear; add it to flake8 reqs 2021-01-16 05:58:15 +00:00
John Chilton 45019c3fbd Move galaxy testing utilities into more sane package structure.
Split test/base into lib/galaxy_test/base and lib/galaxy_test/driver. Dividing things on whether they import galaxy-app code or not - with the goal of a galaxy-test-base package that doesn't depend on galaxy-app and a galaxy-test-driver package that does.

I've been refactoring around this division for a long time. Certain tests (namely the integration tests) always need to bootstrap Galaxy - but the API tests and the Selenium tests should be installable and runnable without Galaxy in the Python environment. So future galaxy-test-api and galaxy-test-selenium packages should have only an optional dependency on galaxy-test-driver.

Properly sturcturing these namespaces is a precursor for real packages on PyPI, clean separation of the tool shed testing code, and cleans up all the flake8 noqa hacks in test/.
2019-11-12 09:03:06 -05:00
John Chilton af8ae098f4 Legacy history export tests and infrastructure. 2019-03-11 10:56:25 -04:00
John Chilton adcd733332 Fix broken gxformat2 imports. 2018-10-08 12:55:32 -04:00
Nicola Soranzo e87d1aa79d More Python3 print function fixes 2018-01-25 11:52:11 +01:00
Nicola Soranzo 48aca7dce8 Update to flake8-import-order 0.16 2017-12-01 11:09:57 +00:00
Nicola Soranzo 2cd95c48f6 Fix import order everywhere
- Add flake8-import-order to flake8 Pipfile and remove py27-lint-imports
  and py27-lint-imports-include-list tox envs
- Fix most E201 and E202 errors reported by flake8-import-order v0.15,
  but pin flake8-import-order to v0.14.3 until
  https://github.com/PyCQA/flake8-import-order/issues/123
  is fixed

This let us drop 2 jobs on Travis per each job.
2017-11-14 19:42:39 +00:00
Nicola Soranzo 9b1832abb1 Fix import order for cron/, scripts/ and test/ 2017-09-25 23:44:39 +01:00
Nicola Soranzo 21b44bf348 Fix all E201 and E202 style errors
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00
John Chilton de35c85b65 Refactor API helpers for re-use in rest of test framework.
- Move api.helpers to base.populators.
- Refactor helper subclasses adapted to use bioblend instead of test framework stuff into base.populators for greater visibility.
- Refactor workflow format 2 testing stuff for reuse by Selenium.
2017-01-08 08:13:42 -05:00
Nicola Soranzo dd556090c1 Fix import broken in b4c77b7617 2016-11-16 10:29:09 +00:00
Nicola Soranzo 1e32c0926c Fix import order and Python3 compatibility for most of test/ 2016-10-10 19:06:22 +01:00
John Chilton 85ef86ab2e Improvements to workflow scaling performance testing scripts.
- Implement a wrapper script for launching a docker-galaxy-stable setup a many ways for this task including:
    - Configure container's Galaxy with outer Galaxy's lib and test directory.
    - Collect log files.
    - Log a statement for interacting with the container easily while the test is running.
    - Disable unneeded services.
 - Implement a fan-in-fan-out style workflow for performance testing.
 - Add an option to test performance of scheduling workflows without actually running jobs.
 - Sample tool for creating large collections easily at beginning of tests (much faster than uploads).
 - Sample tool for splitting a file into a collection for fan in and out workflow test.
 - Assume Python 2.7 in scripts to simplify things.
 - Add documentation.
2016-03-21 01:39:45 +00:00
Nate Coraor f334764627 Egg cleaning in test/ 2015-09-22 10:32:16 -04:00
Nicola Soranzo c01cf85d45 Use __file__ when adding paths to sys.path instead of os.getcwd() .
Also insert additional paths in position 1 unless strictly necessary.
2015-09-11 19:05:37 +01:00
John Chilton a357e2b613 Workflow scaling test infrastructure.
- Add script to hit the API with workflows requests.
 - Update testing Dockerfile to allow just booting up with a fixed master API key for this test to leverage.
 - WIP: on updating test Dockerfile to work with slurm, multiple handlers, uwsgi, etc...
2015-03-25 14:54:48 -04:00