Tom Clegg [Thu, 4 Dec 2014 19:03:13 +0000 (14:03 -0500)]
3781: Fix error message, and add actual error detection.
Tom Clegg [Thu, 4 Dec 2014 18:39:04 +0000 (13:39 -0500)]
3781: Fix up comments.
Tom Clegg [Thu, 4 Dec 2014 18:34:59 +0000 (13:34 -0500)]
3781: Disable start button when there is nothing to do.
Tom Clegg [Thu, 4 Dec 2014 18:16:27 +0000 (13:16 -0500)]
3781: Report as KiB instead of K.
Tom Clegg [Thu, 4 Dec 2014 18:03:20 +0000 (13:03 -0500)]
3781: Merge branch 'master' into 3781-browser-upload
Conflicts:
apps/workbench/app/assets/javascripts/application.js
apps/workbench/app/views/projects/show.html.erb
Tom Clegg [Thu, 4 Dec 2014 01:50:46 +0000 (20:50 -0500)]
4533: Fix wrong lock mode. refs #4533
Tom Clegg [Wed, 3 Dec 2014 21:54:51 +0000 (16:54 -0500)]
Merge branch '4533-lock-tables-first' refs #4533
Peter Amstutz [Wed, 3 Dec 2014 21:08:58 +0000 (16:08 -0500)]
Update version pin of arvados-cli gem. refs #3698
Tom Clegg [Wed, 3 Dec 2014 20:40:18 +0000 (15:40 -0500)]
4533: Lock all tables before deleting contents.
Brett Smith [Wed, 3 Dec 2014 16:55:38 +0000 (11:55 -0500)]
Merge branch '4291-workbench-collection-sharing-button-wip'
Closes #4291, #4676, #4688.
Brett Smith [Wed, 3 Dec 2014 15:28:42 +0000 (10:28 -0500)]
4291: Workbench says explicitly when collection sharing is disabled.
Brett Smith [Thu, 27 Nov 2014 02:35:07 +0000 (21:35 -0500)]
4291: Workbench Collection sharing buttons are actual buttons.
This prevents users from trying to open them in new windows/tabs and
getting a 404 response.
I had to rework the pipeline instance comparison JavaScript because it
was disabling the collection share button on page load. All that was
really necessary was making sure the event only fires when there
actually is a form#compare, but I did some other cleanup in the
process of learning that.
Brett Smith [Mon, 1 Dec 2014 16:07:07 +0000 (11:07 -0500)]
4676: Collection sharing popup is always JavaScript.
This fixes an issue where the response would sometimes be sent with
Content-Type: text/html. We thought it might be a race condition with
AJAX, but the browser was sending a correct Accept: header.
Brett Smith [Wed, 3 Dec 2014 16:24:52 +0000 (11:24 -0500)]
4291: Add Workbench controller tests for collection sharing.
I wrote these while diagnosing another problem.
Brett Smith [Wed, 26 Nov 2014 16:34:53 +0000 (11:34 -0500)]
4291: Workbench uses .prop() to set element disabled property.
Per <http://api.jquery.com/prop/>: "The .prop() method should be used
to set disabled and checked instead of the .attr() method."
Brett Smith [Tue, 25 Nov 2014 22:57:47 +0000 (17:57 -0500)]
4291: Clean up HTTP methods in Workbench URL generators.
According to the docs at
<http://api.rubyonrails.org/files/actionview/lib/action_view/helpers/url_helper_rb.html>:
* `button_to` and `form_for` take :method as a symbol.
* `link_to` takes :method as a symbol, and only supports :delete,
:post, :patch, and :put. Any link that should be done with GET
should not have a method specified.
* Note that `form_tag` *does* take a string, so not every method
should be symbolized.
Brett Smith [Wed, 3 Dec 2014 16:10:23 +0000 (11:10 -0500)]
Merge branch '4705-fuse-collections-from-keep-wip'
Closes #4705, #4708.
Brett Smith [Wed, 3 Dec 2014 15:07:26 +0000 (10:07 -0500)]
4705: FUSE driver can read Collections that only exist in Keep.
Brett Smith [Wed, 3 Dec 2014 15:12:40 +0000 (10:12 -0500)]
4705: Fix FUSE exception logging.
logger.exception() doesn't take the exception as an argument, it takes
a message like all the other logger methods. It gets the exception
information from sys.exc_info().
Brett Smith [Wed, 3 Dec 2014 13:59:22 +0000 (08:59 -0500)]
4705: Refactor mount creation in FUSE tests.
Brett Smith [Wed, 3 Dec 2014 14:45:44 +0000 (09:45 -0500)]
4705: Add CollectionReader.api_response() to PySDK.
The FUSE driver wants this information.
Ward Vandewege [Wed, 3 Dec 2014 15:25:43 +0000 (10:25 -0500)]
Docker: passenger only needs to support ruby, so specify that explicity
when building the apache module.
No issue #
Tom Clegg [Tue, 2 Dec 2014 23:56:25 +0000 (18:56 -0500)]
4533: use "extend" when calling module methods from class methods. refs #4533
Seems to matter only in production: config.cache_classes?
Brett Smith [Tue, 2 Dec 2014 21:28:49 +0000 (16:28 -0500)]
Merge branch '4591-websockets-raise-oom-wip'
Closes #4591, #4701.
Brett Smith [Tue, 2 Dec 2014 15:23:21 +0000 (10:23 -0500)]
4591: Websockets server fetches fewer logs at a time.
Most of the out of memory errors we're seeing happen in the PostgreSQL
driver, which runs out of space to store results. Because Log records
are relatively large (holding two other records as JSON text),
fetching fewer in a batch should noticeably improve memory use. I
don't expect this to end the crashing, though—it seems like the
Websockets server grows large for a variety of reasons. Hopefully
this change will help make some of the others clearer.
Brett Smith [Tue, 2 Dec 2014 14:59:55 +0000 (09:59 -0500)]
4591: Avoid capturing critical exceptions in Websockets server.
Based on the current logs, the troubles we're currently hitting in
Websockets happen in push_events, where all the database work
happens. These exceptions wrap PostgreSQL driver errors; they inherit
from StandardError, so they're being caught by the rescue block.
This commit re-raises those exceptions, which will cause the server to
crash (and presumably be restarted by a supervisor like runit).
We do sometimes see NoMemoryError, but the block to catch is in
ineffective because it usually manifests earlier in on_connect, when
the connection is first made. In this case, Ruby's default exception
handling provides the behavior we want, so just remove the block.
In keeping with the theme of improved exception handling, I tightened
up the bad request detection.
Tim Pierce [Tue, 2 Dec 2014 21:17:26 +0000 (16:17 -0500)]
Merge branch '4621-crunch-memory-usage'
Refs #4621.
Tim Pierce [Tue, 2 Dec 2014 21:12:42 +0000 (16:12 -0500)]
4621: undo lean_uri_escape changes
radhika [Tue, 2 Dec 2014 21:10:53 +0000 (16:10 -0500)]
closes #4645
Merge branch '4645-log-in-graph'
Tim Pierce [Tue, 2 Dec 2014 21:06:02 +0000 (16:06 -0500)]
4621: drop unused variable $output_in_keep
Tim Pierce [Tue, 2 Dec 2014 20:53:37 +0000 (15:53 -0500)]
4621: code review feedback
Removed @jobstep == 1 optimization (no longer appropriate now that we
expect this function to always return the hash of a collection).
Clarified error message for timeout errors.
Tim Pierce [Tue, 2 Dec 2014 20:32:52 +0000 (15:32 -0500)]
4621: collate_output pipes to python
Rewrote collate_output as create_output_collection, writing its output
data to a Python subprocess that invokes
arvados.api().collections().create(). Writing very large collection
manifests in-process makes Arvados.pm consume inordinate amounts of
memory.
Refs #4621.
radhika [Tue, 2 Dec 2014 16:56:16 +0000 (11:56 -0500)]
4645: log files in provenance graph can be clicked.
Tom Clegg [Tue, 2 Dec 2014 15:22:06 +0000 (10:22 -0500)]
4699: Fix crash when collection has tags but no name. closes #4699
Ward Vandewege [Tue, 2 Dec 2014 15:14:41 +0000 (10:14 -0500)]
Fix syntax error in workbench diagnostics_test_helper.rb
No issue #
Tom Clegg [Tue, 2 Dec 2014 02:18:42 +0000 (21:18 -0500)]
4533: Pass CORS test when no omniauth provider is configured. refs #4533
radhika [Tue, 2 Dec 2014 00:52:21 +0000 (19:52 -0500)]
closes #4487
closes #4558
Merge branch '4487-and-4558'
radhika [Tue, 2 Dec 2014 00:50:14 +0000 (19:50 -0500)]
Merge branch 'master' into 4487-and-4558
radhika [Tue, 2 Dec 2014 00:44:51 +0000 (19:44 -0500)]
4487: updates from review feedback
Tom Clegg [Mon, 1 Dec 2014 23:02:27 +0000 (18:02 -0500)]
Merge branch '3781-browser-friendly-servers' refs #3781
radhika [Mon, 1 Dec 2014 22:15:18 +0000 (17:15 -0500)]
Merge branch 'master' into 4487-and-4558
radhika [Mon, 1 Dec 2014 22:12:46 +0000 (17:12 -0500)]
closes #4644
Merge branch '4644-collection-file-filtering'
radhika [Mon, 1 Dec 2014 22:10:09 +0000 (17:10 -0500)]
Merge branch 'master' into 4644-collection-file-filtering
radhika [Mon, 1 Dec 2014 22:08:24 +0000 (17:08 -0500)]
4644: do not add filterable to directories
radhika [Mon, 1 Dec 2014 20:10:32 +0000 (15:10 -0500)]
4487: Omit "Remove selected" selection option when the current user cannot write to the project.
4558: Remove ellipsis from Selection dropdown name.
Tom Clegg [Mon, 1 Dec 2014 19:39:44 +0000 (14:39 -0500)]
Merge branch '4533-remote-reset' closes #4533
Conflicts:
apps/workbench/Gemfile.lock
Tom Clegg [Mon, 1 Dec 2014 18:28:12 +0000 (13:28 -0500)]
4533: Consolidate database-reset tests. Fix up ensure/reload_routes! blocks.
radhika [Mon, 1 Dec 2014 18:27:10 +0000 (13:27 -0500)]
4644: fix div end tag placement and add filterable to directories as well.
Tom Clegg [Mon, 1 Dec 2014 17:52:05 +0000 (12:52 -0500)]
4533: Remove config flag from default section, too.
Brett Smith [Mon, 1 Dec 2014 16:55:31 +0000 (11:55 -0500)]
Merge branch '4501-fuse-by-id-subdirectory-wip'
Closes #4501, #4675.
Brett Smith [Tue, 25 Nov 2014 20:24:08 +0000 (15:24 -0500)]
4501: FUSE exposes by_id subdirectory when run with --by-id.
This makes it possible for people to develop code against their own
normal Keep mount, and then have it work as expected in Crunch (which
uses --by-id for backward compatibility).
I considered adding a second inode for by_id that pointed to the same
underlying MagicDirectory instance. Unfortunately, the current
implementation would make it difficult to avoid exposing infinitely
recursing by_id subdirectories, and that seemed like a bigger problem
than the relatively small overhead of having two MagicDirectory
instances. (The Keep client will use comparatively more RAM, and it
will use the same block cache for both directories, which should keep
it relatively under control.)
Brett Smith [Tue, 25 Nov 2014 17:03:32 +0000 (12:03 -0500)]
4501: Restore FUSE FuseTagsUpdateTest.
This test hasn't been running in a while because it defined
runRealTest rather than runTest. The old code predates Collection
UUIDs, so it had to be updated to deal with those.
Tom Clegg [Mon, 1 Dec 2014 15:58:25 +0000 (10:58 -0500)]
Merge branch '4595-node-list-select' closes #4681
Ward Vandewege [Mon, 1 Dec 2014 14:48:01 +0000 (09:48 -0500)]
Fix typos in documentation.
This closes #4518
Tom Clegg [Sun, 30 Nov 2014 02:24:57 +0000 (21:24 -0500)]
4595: Merge branch 'master' into 4595-node-list-select
Tom Clegg [Sun, 30 Nov 2014 02:05:45 +0000 (21:05 -0500)]
4595: Fix nodes.list?select=[...] crash when is_admin. Also, do not ignore where/limit/order.
Phil Hodgson [Fri, 28 Nov 2014 11:58:45 +0000 (12:58 +0100)]
Merge branch '4233-graph-job-stats' closes #4233
Phil Hodgson [Fri, 28 Nov 2014 11:13:09 +0000 (12:13 +0100)]
4233: websocket test of log charting should look at the right datapoint
Tom Clegg [Thu, 27 Nov 2014 06:18:01 +0000 (01:18 -0500)]
4533: Replace enable_remote_reset config knob with check for existence of non-fixture users.
Tom Clegg [Thu, 27 Nov 2014 01:02:36 +0000 (20:02 -0500)]
4533: Move all controller tests into controllers/, merge overlapping class defs.
Tom Clegg [Thu, 27 Nov 2014 00:46:27 +0000 (19:46 -0500)]
4533: Skip one-fixture-reset-per-test in a few test classes.
Tom Clegg [Thu, 27 Nov 2014 00:38:48 +0000 (19:38 -0500)]
4533: Disable database-reset for all diagnostics test classes.
Tom Clegg [Thu, 27 Nov 2014 00:34:13 +0000 (19:34 -0500)]
4533: Move "database reset does not break basic operations" into its own test.
Tom Clegg [Wed, 26 Nov 2014 23:58:58 +0000 (18:58 -0500)]
4533: Reset fixtures after each test case by default.
Phil Hodgson [Wed, 26 Nov 2014 19:04:07 +0000 (20:04 +0100)]
4233: adjustment to previous commit, round numbers before comparing - stay loose
Phil Hodgson [Wed, 26 Nov 2014 18:40:00 +0000 (19:40 +0100)]
4233: only divide CPU usage by number of CPUs when total CPU usage is less than the measured interval time
Tom Clegg [Wed, 26 Nov 2014 17:38:01 +0000 (12:38 -0500)]
4533: Merge branch 'master' into 4533-remote-reset
Phil Hodgson [Wed, 26 Nov 2014 17:32:08 +0000 (18:32 +0100)]
4233: split up received log entries by newline characters too
Tom Clegg [Wed, 26 Nov 2014 07:25:40 +0000 (02:25 -0500)]
3781: Merge branch '3781-browser-friendly-servers' into 3781-browser-upload
Tom Clegg [Wed, 26 Nov 2014 07:25:22 +0000 (02:25 -0500)]
3781: Fix OPTIONS routing.
Tom Clegg [Wed, 26 Nov 2014 05:57:06 +0000 (00:57 -0500)]
3781: Merge branch '3781-browser-friendly-servers' into 3781-browser-upload
Tom Clegg [Wed, 26 Nov 2014 05:56:27 +0000 (00:56 -0500)]
3781: Merge branch 'master' into 3781-browser-friendly-servers
Tom Clegg [Sat, 22 Nov 2014 19:40:34 +0000 (14:40 -0500)]
3781: Add browser->api/keepproxy angular app as Upload tab on collections#show
Tom Clegg [Sat, 22 Nov 2014 09:44:00 +0000 (04:44 -0500)]
3781: Remove js cruft from api server.
Tom Clegg [Mon, 24 Nov 2014 04:28:34 +0000 (23:28 -0500)]
3781: Fix error propagation.
Tom Clegg [Sun, 23 Nov 2014 07:09:11 +0000 (02:09 -0500)]
3781: Add allowed headers. Respond to OPTIONS at any path.
Tom Clegg [Sat, 22 Nov 2014 20:45:14 +0000 (15:45 -0500)]
3781: Add POST method for writing without knowing MD5.
Tom Clegg [Sat, 22 Nov 2014 10:01:13 +0000 (05:01 -0500)]
3781: Set CORS headers in keepproxy responses.
Tom Clegg [Wed, 26 Nov 2014 05:40:49 +0000 (00:40 -0500)]
3781: Add tests for CORS headers. Turn off CORS headers at OPTIONS /login etc.
Tom Clegg [Sat, 22 Nov 2014 09:49:53 +0000 (04:49 -0500)]
3781: Set CORS headers in API responses.
Tim Pierce [Tue, 25 Nov 2014 22:52:05 +0000 (17:52 -0500)]
4621: implement lean_uri_escape
lean_uri_escape implements URI escaping as in URI::Escape, but with
substantially less RAM (at the cost of less error checking).
Also fixes a bug in crunch-job's strftime call.
Ward Vandewege [Tue, 25 Nov 2014 20:53:59 +0000 (15:53 -0500)]
Document arv keep ls in the cli sdk reference.
No issue #
Tom Clegg [Tue, 25 Nov 2014 17:32:01 +0000 (12:32 -0500)]
4533: Use Rails.env instead of ENV["RAILS_ENV"]. Add comment in test case.
Phil Hodgson [Tue, 25 Nov 2014 09:36:07 +0000 (10:36 +0100)]
4233: prepend historical log entries
Phil Hodgson [Tue, 25 Nov 2014 09:00:51 +0000 (10:00 +0100)]
4233: use "success" JS function after AJAX call to get logs rather than a JS view to "push" logs to the log chart
Phil Hodgson [Tue, 25 Nov 2014 07:41:37 +0000 (08:41 +0100)]
4233: convert accidental tabs to spaces
Phil Hodgson [Tue, 25 Nov 2014 07:30:20 +0000 (08:30 +0100)]
Merge branch 'master' into 4233-graph-job-stats
Tom Clegg [Tue, 25 Nov 2014 00:35:35 +0000 (19:35 -0500)]
Update arvados-cli Gemfile.lock. No issue #
Tom Clegg [Tue, 25 Nov 2014 00:30:43 +0000 (19:30 -0500)]
Merge branch '4651-boolean-params' closes #4651
Tom Clegg [Mon, 24 Nov 2014 21:25:55 +0000 (16:25 -0500)]
4533: Merge branch 'master' into 4533-remote-reset
Tom Clegg [Mon, 24 Nov 2014 19:07:26 +0000 (14:07 -0500)]
4651: Fix exceptions. Accept 0 for false, 1 for true.
Tom Clegg [Mon, 24 Nov 2014 17:20:53 +0000 (12:20 -0500)]
4533: Add integration test.
Tom Clegg [Mon, 24 Nov 2014 17:18:54 +0000 (12:18 -0500)]
4651: ensure_unique_name param is not required.
Tom Clegg [Mon, 24 Nov 2014 15:51:01 +0000 (10:51 -0500)]
4651: Merge branch 'master' into 4651-boolean-params
Tom Clegg [Mon, 24 Nov 2014 15:44:53 +0000 (10:44 -0500)]
4651: Update NodesController _ping_requires_parameters format.
Tom Clegg [Mon, 24 Nov 2014 15:23:31 +0000 (10:23 -0500)]
4651: Fix KeepDisksController test failures.
Ward Vandewege [Mon, 24 Nov 2014 01:47:33 +0000 (20:47 -0500)]
Merge branch '4186-install-doc-improvements'
refs #4186
Ward Vandewege [Mon, 24 Nov 2014 01:46:49 +0000 (20:46 -0500)]
Improve the installation instructions for keepproxy and keepstore - take sudo into account.
refs #4186
Ward Vandewege [Sat, 22 Nov 2014 22:06:44 +0000 (17:06 -0500)]
Merge branch '4336-improve-upload-data-to-keep-doc'
refs #4336
Ward Vandewege [Sat, 22 Nov 2014 22:04:27 +0000 (17:04 -0500)]
Refactor the 'Uploading data' page.
refs #4336