Commit Graph
21 Commits
Author SHA1 Message Date
mvdbeek 9e3ceaa7f3 Don't return jobs with deleted HDAs/HDCAs from job_search 2017-09-22 16:52:19 +02:00
mvdbeek df91074a3f Test deleting HDCAs and finding equivalent jobs 2017-09-22 08:33:15 +02:00
mvdbeek 64cf60b502 Test deleting input datasets and recovering jobs from search
This revealed a wrong query filter (comparing
JobToInputDatasetAssociation.dataset_id == HistoryDatasetAssociation.id,
instead of JobToInputDatasetAssociation.dataset_id ==
HistoryDatasetAssociation.dataset_id).
2017-09-22 08:33:15 +02:00
mvdbeek 04754c4c4d Allow job_search to find job even if current HDCA was copied from another HDCA and make sure that jobs with same inputs matched to different job parameter inputs are not considered as a match 2017-09-22 08:33:15 +02:00
mvdbeek 7089de8142 Reduce job_search test copypaste 2017-09-22 08:33:15 +02:00
mvdbeek 2b7a163128 Add job_search tests for other collection types 2017-09-22 08:33:15 +02:00
mvdbeek 1d37c7d458 Check JobParameter match
Matching the JobParameters will prevent returning jobs where a job uses the
same input datasets, but where the inputs are used in a different order (and
hence the result may differ)
2017-09-22 08:33:15 +02:00
mvdbeek 92b48412c5 Extend job search for HDCA input 2017-09-22 08:33:15 +02:00
John Chilton 5ab28634ca Prevent transient job state test failures from failing the build.
A precondition to the real meat of the test is failing to be met sometimes in production - this failure is indicating a problem with the test and not with Galaxy. I previously tried to address this with https://github.com/galaxyproject/galaxy/pull/3988 but that didn't work. Now if the trainsient ok occurs the test will be skipped. Most of the time it won't skip and the rest of the test will execute and ensure there aren't regressions in behaviors related to cleaning up datasets after job completion. I'm placing the skips a couple different places so hopefully we can get a stack trace at somepoint - knowing where the code is when the job state is changing from running to ok will help puzzle out what is handing for the two minutes the job is running in the test framework.
2017-08-29 10:10:39 -04: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 b12b951e91 Attempted fix for transiently failing API test_jobs introduced in #3619.
A couple things need to occur while the jobs are "running" and it seems that 60 seconds wasn't enough time to sleep for all that to happen on Jenkins.
 I checked the timing in the raw logs (they are for some reasons being filtered out in the Jenkins display of the XUnit) - and indeed the jobs are properly sleeping the correct amount of time but the client API calls need some more time it seems. My initial thought was maybe the jobs were being interrupted or something - and that does not appear to be the case.
2017-04-27 15:41:12 -04:00
John Chilton 009e2cbf5e Improve interaction between job state and purged datasets.
There are two basic behavior changes here and bunch of testing to verify the new behaviors.

1) Previously purging a dataset would cause a creating job to be cancelled but all outputs would need to be "deleted" in order to cause the creating job to be cancelled. After this change the behavior is the same for both deletion and purging - the job will run until all outputs are deleted or purged.

2) Previously Galaxy jobs wouldn't attempt to cleanup purged datasets that were created by a running tool - this cleanup now occurs.

These are tackled as a pair because I assume the difference in the behaviors between deletion and purging was a hack around tools populating datasets that had been purged while running. Cancelling the job wasn't a sure fix - but it would reduce the likelihood of such problems. I think the new approach is a bit more robust and explicit.
2017-03-20 10:58:23 -04:00
John Chilton f153400e95 Rework jobs API to not use deprecated TestsDatasets mixin. 2017-03-20 10:19:30 -04: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
John Chilton 1adff983f2 Wait on jobs and history in certain API test cases.
This strategy proved to work around certain race conditions in tool testing so hopefully it will solve the transiently failing job searching and filtering test cases.
2015-12-03 16:33:45 +00:00
Nate Coraor d8152f3336 Merge branch 'release_15.10' into dev 2015-11-17 11:37:05 -05:00
guerler b2723e7467 Disable invalid test case. Add validation criteria.
Fix comments

Fix comment
2015-11-10 15:36:55 -05:00
John Chilton e9d77ac763 Attempt to fix transiently failing API tests.
- Fix default timeout of wait_on_state api helper. Had the wrong default specified and might fix this failure: https://jenkins.galaxyproject.org/job/docker-api/229/testReport/junit/api.test_libraries/LibrariesApiTestCase/test_create_dataset/
 - Modify job search test case to allow a little more time between the history being "ok" and the job, in case there is a timing condition if the HDA is committed first and then job. Also improve the test output in case this isn't the problem.
2015-10-06 14:44:50 +01:00
John Chilton a20938fc48 Attempt to fix intermittently failing jobs API test.
Retry check several times in case there is some sort of timing problem where a history turns okay - before a job. Improve assertion error message.
2015-03-02 22:39:50 -05:00
John Chilton 285896dfe1 Increase consistency between job index and show.
Add tests for new date range and history filtering as well as to ensure only admins get to see external_id and command_line and that users cannot see each other's jobs.

Always allow admins to views all jobs on index (instead of only when user_details is specified) and show. Add user_email and external_id to show (for admins) to bring it inline with index and add command_line to index (for admins) to bring it in line with show.

Show still allow more details including job standard error and output as well as job metrics.
2014-12-18 21:50:15 -05:00
Dave Bouvier 424efdcf9a Moved API tests to live under test/ rather than test/functional/. Removed test for DNAse flanked genes. Added test for UCSC table browser. 2014-04-30 15:35:57 -04:00