207 Commits
Author SHA1 Message Date
John Chilton fad0392166 Disable broken tests. 2018-05-01 10:36:39 -04:00
John Chilton cf2f6d7dcf Fix selenium tests failing because APPLY_RULES appears twice in panel. 2018-04-24 14:17:52 -04:00
John Chilton 8af243c176 Allow rule based operations on existing collections.
Allow the rules DSL & GUI component to operate on existing collections to allow filtering, sorting, modifying identifiers and general re-organization of existing collections (e.g. the outputs of tools). Implementing this as a collection operation tool so that it should be executable interactively in the tool form and in a batch fashion as part of workflow executions.

For this to be tracked properly as a tool execution and to work properly in the tool form, I've implemented a new tool framework and tool form parameter type called "rules".

This can thought of as a more GUI friendly alternative to my proposed collection operations that consumed JavaScript expressions.

This includes API tests for both tool and workflow execution of the new tool as well as Selenium tests for tool form execution, workflow editor interactions, and workflow running.
2018-04-24 11:10:43 -04:00
John Chilton 20c8260108 Redo footer inputs for rule builder.
Gives more space for name and genome - dynamically resizes to space given with some reasonable minimum and maximum widths for widgets.
2018-04-18 19:24:06 -04:00
Dannon 60b5a9a52a Merge pull request #5886 from jmchilton/selenium_workflow_run
More, better workflow run Selenium tests.
2018-04-17 23:03:01 -04:00
Martin Cech 5d82c1a09f Merge pull request #5807 from dannon/bs4
Bootstrap 4 !!!!
2018-04-17 15:21:05 -04:00
John Chilton 43cd9335f1 Fix for Selenium workflow editor test not fully updating annotation.
Sometimes the last character of the annotation is missing - gotta wait for the last update of form listener I suppose.
2018-04-17 07:32:36 -04:00
Dannon Baker 4ea51e9fc4 Merge remote-tracking branch 'upstream/dev' into bs4 2018-04-16 09:01:14 -04:00
John Chilton aafd9de76b Add more complicated workflow run test case.
Re-use test_data specification used by many of the API workflow tests and a workflow used by another test. Add abstractions and DOM element for mapping labeled test data to tool form inputs.
2018-04-13 13:23:22 -04:00
John Chilton 54721122e7 Small fixes, enhancements for workflow run Selenium tests. 2018-04-13 13:21:57 -04:00
John Chilton b24a1b723d Small fix for workflow editor Selenium testing. 2018-04-13 13:21:57 -04:00
Martin Cech eb67d422ef Merge pull request #5823 from jmchilton/rule_tweaks
Various Improvements for the Rule Builder Widget
2018-04-13 11:35:23 -04:00
Dannon Baker f7f8bfcc0c Merge remote-tracking branch 'upstream/dev' into bs4 2018-04-13 08:58:34 -04:00
John Chilton 2cc650078d More, better workflow editor Selenium tests - part 2.
- More stuff tested:
  - Connecting and disconnecting simple terminals as well as mapping terminals (ribbons).
  - Rendering simple workflows, workflow with output collections, workflow with mapping, and workflow with a subworkflow.
  - Collapsing side panels in the workflow editor.
- Small tweaks to editor DOM.
- More screenshots.
2018-04-12 21:25:41 -04:00
Dannon Baker d0a4024a84 Fix saved history testing menu options to work with new dropdowns. 2018-04-12 13:41:38 -04:00
Dannon Baker 7daa714351 Fix final workflow management test for new list structure. 2018-04-12 13:31:17 -04:00
Dannon Baker bc7da96bb6 Merge remote-tracking branch 'upstream/dev' into bs4 2018-04-12 12:15:19 -04:00
John Chilton fa1231e9ec Minor build fixes.
Fix qunit issue and linting issue introduced with #5876.
2018-04-11 21:45:46 -04:00
John Chilton 79f664aa4e More, better workflow editor Selenium tests.
- More stuff tested:
  - Setting input name and annotation, saving, reloading.
  - Simple tests for collection inputs in addition to data inputs.
  - A simple workflow renders its connections.
- More screenshots.
- Expanded use of navigation.yml for abstraction description of elements.
- More abstractions for probing the workflow in the editor - should serve as a basis for additional tests.
- Decorate editor DOM to allow finding elements in reproducible ways (enables testing, but should help with tours as well).
- Make editor tests more robust by:
  - Doing more appropriate waiting, instead of adding sleeps for jQuery interactions.
  - Not assuming each test occurs with a fresh user (and hence workflow list).
2018-04-11 12:42:26 -04:00
Dannon Baker ae8b8d9fdf Merge remote-tracking branch 'upstream/dev' into bs4 2018-04-09 09:59:46 -04:00
John Chilton b3f589cc93 For rule builder, use Python-like regular expressions in-browser.
Leverages the [pyre-to-regexp](https://github.com/jmchilton/pyre-to-regexp) that I recently published for this purpose.
2018-04-07 09:17:37 -04:00
Dannon Baker 3d7c8a233c Fix one failing library selenium test. 2018-04-06 10:12:01 -04:00
Dannon Baker f1cd781337 Fix workflow management selenium test (I hope) 2018-04-05 21:53:23 -04:00
John Chilton 9674735c4a Fix failing paired colleciton builder test by increasing test window size.
This isn't an ideal fix - someone probably should go in and compress that widget to fit in the original 900 px.
2018-04-04 21:36:14 -04:00
John Chilton 4e4dbc8823 Expand selenium test coverage.
Initial admin app tests including screenshots of display applications, data tables, data types, and job management.
2018-04-03 20:10:39 -04:00
John Chilton 7e627c1ccc Fix registration.test_landing selenium test for BS4 branch. 2018-04-03 13:14:58 -04:00
John Chilton 083bdcbdd8 Rule-based Collection Builder
Vue-based component for defining collections by applying rules to a list of files or more general spreadsheet style information (e.g. sample sheets or tabular data from data sources containing URL or FTP file paths for files along with metadata). The widget is fairly complex but very broadly is broken into two panes - one to preview how rules are applied to build up tabular data defining collections (each row corresponding to a file with columns for metadata and such) and one that displays defined rules and allows for editing of these rules and creation of new ones.

The goal behind defining rules this way instead of allowing the user to interact with the spreadsheet display directly is to enable scaling up collection creation. If a user wishes to upload hundreds of datasets - interacting with a widget directly for each input doesn't scale well and would be error prone. If a user wishes to upload hundreds of thousands of datasets - even loading this information in the GUI may not scale (though I've been impressed with the performance so far of this approach) and so we can potentially just display a preview of some of the rows and process the final set of rules on the backend.

Since we can handle an arbitrary number of columns this way, we can define multiple list identifiers per file and so we can easily construct nested lists. Hence this allows creation of not just potentially larger collections but arbitrarily complex lists as well. Paired identifiers via indicator columns are also implemented.

In order to operate over lists of datasets directly - the multi-select history widget now has a new option "Build Collection from Rules" along side the other collection builders. This mode uses the well established dataset collection API to build collections from HDAs.

In order to operate on lists of FTP files or URLs - the upload widget has a new tab "Rule-based" tab that allows users to paste in tabular data or select a history dataset and then send this tabular data to the new builder widget. This will be extended to include FTP directories for instance over time. This mode uses the new data fetch API to build collections and handle uploads of arbitrary collections of files.

The preview of the tabular data generated via rules is done via [Handsontable](https://handsontable.com/) - a JavaScript spreadsheet widget with a VueJS [wrapper component](https://github.com/handsontable/vue-handsontable-official). This turns out to be a fairly nice application for reactive components - as rules are added or modified the spreadsheet just naturally updates. In my hands the widget scales very nicely - I've uploaded files with tens of thousands of rows and rules modifying the data and changing the spreadsheet do not seem to cause siignificant delays in the web browser.
2018-03-29 11:07:06 -04:00
Martin Cech 8f0a2d2360 Merge pull request #5706 from jmchilton/selenium_fixes_36
Fix setup code in library test landing page to rerun on test retry.
2018-03-23 16:47:47 -04:00
John Chilton 8ace245720 Ignore seemingly harmless error when tearing down Selenium tests.
Causes otherwise passing tests to fail for not particular reason. Cannot find a Selenium issue for this but it has been reported on in their IRC - seems like just a very rare, transient issue.

xref https://jenkins.galaxyproject.org/job/docker-selenium/1830/testReport/junit/selenium_tests.test_saved_histories/SavedHistoriesTestCase/test_delete_and_undelete_history/
2018-03-23 10:21:57 -04:00
John Chilton d3d8fc29f1 Another attempt to skip flakey Selenium tests.
- Flakey was throwing nose's SkipTest but the Selenium framework was catching unittest's, fix that to use unittest version in both places.
- There problematic test is still throwing exceptions in the tearDown which is still causing build failures, skip the whole test.
2018-03-21 15:37:46 -04:00
John Chilton 05176dabbe Restructure and mark as flakey problematic library collection Selenium test.
Needs to be restructured for flakey to work, several other PRs attempted to address or clarify this but have failed.
2018-03-16 16:18:57 -04:00
John Chilton b821b6a683 Merge pull request #5711 from nsoranzo/flakey_after_selenium_tests
Properly order @flakey and @selenium_test decorators
2018-03-16 11:26:31 -04:00
Dannon Baker 7c8b243940 Merge pull request #5710 from jmchilton/selenium_fixes_39
Make problematic test test_library_to_collections more robust.
2018-03-16 11:08:40 -04:00
Nicola Soranzo 680cfec4c9 Properly order @flakey and @selenium_test decorators 2018-03-16 13:16:01 +00:00
Dannon Baker 6716848a36 Merge pull request #5708 from jmchilton/selenium_fixes_38
Don't retry skipped tests.
2018-03-16 08:53:52 -04:00
Dannon Baker d783ec5daf Merge pull request #5705 from jmchilton/more_robust_collection_builder_test
Make collection builder tests more robust against potential history panel glitches.
2018-03-16 08:39:25 -04:00
John Chilton 2001606d33 Make problematic test test_library_to_collections more robust potentially.
Now that #5701 has been merged we have some more clues on the problem with this test. It is dying on the second upload being changed here. I suspect what is happening is that we are waiting on a history to become okay but we make that check before the first upload has even finished - so there is some chance the history is okay because it is empty - so we are reopening the home page in the middle of the first upload and this is causing something odd to happen - something is popping up an empty alert. I'm not sure what is causing that alert but it isn't what we are testing with this test so it is best to really just wait on the uploads - as we do in other tests (see test_uploads.py for instance).

history_panel_wait_for_hid_ok is a stronger assertion and is generally more robust and has better error reporting anyway so this should be a stability win all around.
2018-03-16 08:36:17 -04:00
John Chilton b5a8260765 Print a statement when retrying Selenium test functions.
Pointed out by @nsoranzo (https://github.com/galaxyproject/galaxy/pull/5708#discussion_r175054796) that there isn't mmuch of an indication this is occurring otherwise.
2018-03-16 07:46:59 -04:00
John Chilton d85a53cf13 Don't retry skipped tests.
Wasting time on these when running Selenium tests on Jenkins.
2018-03-15 16:22:20 -04:00
John Chilton d39b4beef2 Fix setup code in library test landing page to rerun on test retry. 2018-03-15 16:01:56 -04:00
John Chilton dd20f640be Don't let Selenium driver failures during debugging mask underlying errors.
https://jenkins.galaxyproject.org/job/docker-selenium/1665/testReport/selenium_tests.test_library_to_collections/LibraryToCollectionsTestCase/test_list_creation/
2018-03-15 12:10:26 -04:00
John Chilton f93044d583 Make collection builder tests more robust against potential history panel glitches. 2018-03-15 11:55:15 -04:00
Björn Grüning b6e7a250b2 Merge pull request #5559 from jmchilton/jupyter_testing_2
Progress on Jupyter Notebook Selenium tests
2018-02-21 16:21:33 +01:00
John Chilton fb0fc49560 Progress on Jupyter Notebook Selenium tests
Break big test into two - one of which will occasionally work against usegalaxy.org now.
2018-02-19 12:02:09 -05:00
John Chilton 283ab0459f Improve performance bugs and misleading summary info in history list.
Prefetch shared user information as counts instead of objects and do so in initial query to eliminate an extra 15 SQL queries per page and load less data related to sharing.

Replace columns that would cause HDA information to be joined into the query (history size and HDA state counts) with a spinner that will be fetched in subsequent queries on the client end. There can hundreds of thousands of datasets per history - this information shouldn't be summarized to get the initial page to render - it can be fetched one history at a time once the page is rendered.

This commit also adds a new column "Items" that corresponds to the next HID - and that I think is a good summary of the "history size" before the dataset state information is loaded and even gives additional information because that count includes collections. This also renders state information for deleted and hidden datasets that was previously missing and could cause confusion. That said I don't like the dataset summaries - I'd rather just have the item count and then job state summaries.
2018-02-14 13:21:10 -05:00
Evgeny Anatskiy 90d59ac923 fix webhooks tests 2018-02-01 12:18:02 -05:00
John Chilton e4d0788a28 Improvements to library testing.
- Add tests for creating a collection from a library.
- Add more class names to library GUI to improve selectors for tests.
- Automatically select whichever radio box makes sense in library collection builder dialog based on whether there is a selection or not.
2017-12-18 15:47:17 -05:00
John Chilton 6fd6595238 Another try to fix flakey tool form Selenium test. 2017-12-14 08:21:46 -05:00
Nicola Soranzo 48aca7dce8 Update to flake8-import-order 0.16 2017-12-01 11:09:57 +00:00
John Chilton 345ee9aa9d Make new Selenium pagination test as flakey - doesn't work consistently on Jenkins. 2017-11-30 16:01:27 -05:00