Tim Pierce [Mon, 7 Apr 2014 19:51:41 +0000 (15:51 -0400)]
Merge branch 'master' into 2449-keep-write-blocks
Tim Pierce [Mon, 7 Apr 2014 19:49:51 +0000 (15:49 -0400)]
Added IsFull() to check for free space before writing. (refs #2292)
Tom Clegg [Fri, 4 Apr 2014 21:25:38 +0000 (17:25 -0400)]
Remove Ruby 2.1.0 dependency by using Hash[x] instead of x.to_h.
Tim Pierce [Fri, 4 Apr 2014 19:51:43 +0000 (15:51 -0400)]
Merge branch 'master' into 2449-keep-write-blocks
Tim Pierce [Fri, 4 Apr 2014 19:42:13 +0000 (15:42 -0400)]
PutBlock saves a block on only the first available volume (refs #2292)
Per code review: Keep stores a block on only one disk at a time.
Updated PutBlock, and PutBlock/GetBlock unit tests, appropriately.
Tom Clegg [Fri, 4 Apr 2014 14:26:23 +0000 (10:26 -0400)]
Fix copy/paste error.
Tim Pierce [Thu, 3 Apr 2014 19:52:49 +0000 (15:52 -0400)]
Fix $keep variable scope (refs #2221)
Tim Pierce [Thu, 3 Apr 2014 19:51:48 +0000 (15:51 -0400)]
Merge branch '2221-complete-docker' (closes #2325, closes #2221)
Conflicts:
.gitignore
Tim Pierce [Thu, 3 Apr 2014 19:47:44 +0000 (15:47 -0400)]
Semicolon fix (refs #2325, refs #2221).
Ward Vandewege [Thu, 3 Apr 2014 19:27:51 +0000 (15:27 -0400)]
Merge branch '2509-rake-linkchecker'
Tim Pierce [Thu, 3 Apr 2014 19:25:35 +0000 (15:25 -0400)]
Use a simple 'open' for fetch_block (freeing up an extra filehandle). refs #2325, refs #2221
Tim Pierce [Thu, 3 Apr 2014 19:08:15 +0000 (15:08 -0400)]
Resolving style comments from #2325. (refs #2325, refs #2221)
Ward Vandewege [Thu, 3 Apr 2014 18:27:16 +0000 (14:27 -0400)]
* README: remove numbers in headings
* linkchecker: only check file:// links
* epydoc: run against the local source tree, not against whatever
version of the python 'arvados' package is installed
* generate: re-run epydoc on every generation
* generate: do not fail to include the epydoc output files if they are
generated in the current run (which they now always are)
Tim Pierce [Thu, 3 Apr 2014 18:22:10 +0000 (14:22 -0400)]
Use quotemeta to protect shell escapes (refs #2221, #2325)
Tim Pierce [Thu, 3 Apr 2014 18:00:16 +0000 (14:00 -0400)]
Set umask to 022 when creating config files. (refs #2221)
Brett Smith [Wed, 2 Apr 2014 20:55:24 +0000 (16:55 -0400)]
docker: Install staged source on Docker images.
A separate build step to stage source makes it easier for us to fix
permissions and do other clean-up before installing it in a Docker
image. It also reduces code redundancy; for example, builders don't
have to worry about excluding log and tmp directories.
Brett Smith [Wed, 2 Apr 2014 20:41:50 +0000 (16:41 -0400)]
docker: Tolerate existing tmp in api-image.
Brett Smith [Wed, 2 Apr 2014 20:33:59 +0000 (16:33 -0400)]
docker: `chmod go=rX` on generated files.
That's not how this is implemented, but the end result should be the
same.
Brett Smith [Wed, 2 Apr 2014 19:32:12 +0000 (15:32 -0400)]
docker: Don't try shell expansion in Makefile.
The original syntax, at least, is not supported.
Brett Smith [Wed, 2 Apr 2014 18:04:48 +0000 (14:04 -0400)]
docker: Improve build.sh's Makefile finding.
Ward Vandewege [Wed, 2 Apr 2014 16:58:00 +0000 (12:58 -0400)]
doc: Add rake linkchecker task, and document it in the README file
Tom Clegg [Wed, 2 Apr 2014 16:40:08 +0000 (12:40 -0400)]
Merge branch '2209-correct-items-available'
closes #2209
Tom Clegg [Wed, 2 Apr 2014 16:39:52 +0000 (12:39 -0400)]
Fix counting results in test case (count != size for an ActiveRelation).
Tom Clegg [Wed, 2 Apr 2014 16:30:44 +0000 (12:30 -0400)]
Merge branch 'master' into 2209-correct-items-available
Tom Clegg [Wed, 2 Apr 2014 16:30:12 +0000 (12:30 -0400)]
Really check for duplicate items returned, instead of just calling a
variable unique_uuids.
Brett Smith [Wed, 2 Apr 2014 14:12:37 +0000 (10:12 -0400)]
doc: Fix Keep links in tutorial-job1.
Brett Smith [Wed, 2 Apr 2014 14:05:01 +0000 (10:05 -0400)]
Merge branch '2470-doc-refresh'.
Closes #2470, #2490.
Brett Smith [Tue, 1 Apr 2014 21:37:07 +0000 (17:37 -0400)]
doc: Implement Tom's suggested improvements.
Refs #2470.
Brett Smith [Mon, 31 Mar 2014 13:46:50 +0000 (09:46 -0400)]
doc: tutorial-job1 updates and style tweaks.
The major change here is that we set no_reuse on the job, to avoid
confusing people by using results from previous tutorial runs. These
updates also reflect some minor changes in the Workbench UI.
Brett Smith [Fri, 28 Mar 2014 21:23:40 +0000 (17:23 -0400)]
doc: job-and-pipeline-ref grammar fixes.
Brett Smith [Fri, 28 Mar 2014 21:06:19 +0000 (17:06 -0400)]
doc: Keep topic style tweaks.
Brett Smith [Fri, 28 Mar 2014 20:57:09 +0000 (16:57 -0400)]
doc: Fix typos in tutorial-parallel.
Brett Smith [Fri, 28 Mar 2014 20:51:36 +0000 (16:51 -0400)]
doc: tutorial-job-debug update and style.
* Jobs now require a "repository" parameter.
* Use environment variables to specify the job script.
Brett Smith [Fri, 28 Mar 2014 19:47:52 +0000 (15:47 -0400)]
doc: Make running-pipeline-command up-to-date.
* @arv pipeline run@ now requires @--run-here@.
* Pipelines are now under Activity in Workbench navigation.
* The format of the example output has changed, along with all the
Keep hashes.
Brett Smith [Fri, 28 Mar 2014 14:31:59 +0000 (10:31 -0400)]
doc: Highlight "you" in reference JSON.
Since this reference provides users with raw example JSON, and doesn't
tell them to write it with @cat@, we can't rely on shell variable
expansion here.
Brett Smith [Mon, 31 Mar 2014 13:51:42 +0000 (09:51 -0400)]
doc: Use $USER in tutorial JSON.
The tutorial encourages users to copy and paste command text.
However, most of the JSON needs to have a user-specific value for
"repository", which is easy to overlook. Since we're telling users to
save JSON with @cat@, we can take advantage of shell variable
expansion to make the right thing happen automatically.
I added accompanying notes to help explain what's going on for people
who aren't copying instructions so literally.
Conflicts:
doc/user/tutorials/tutorial-firstscript.html.textile.liquid
doc/user/tutorials/tutorial-new-pipeline.html.textile.liquid
Brett Smith [Thu, 27 Mar 2014 20:00:09 +0000 (16:00 -0400)]
doc: Tweak running-external-program style.
Brett Smith [Mon, 31 Mar 2014 13:50:55 +0000 (09:50 -0400)]
doc: tutorial-new-pipeline clarity.
I renamed the "filter" job to "do_filter" to help disambiguate it a
little from "0-filter.py".
Conflicts:
doc/user/tutorials/tutorial-new-pipeline.html.textile.liquid
Brett Smith [Mon, 31 Mar 2014 13:50:01 +0000 (09:50 -0400)]
doc: tutorial-firstscript style consistency.
Conflicts:
doc/user/tutorials/tutorial-firstscript.html.textile.liquid
Brett Smith [Thu, 27 Mar 2014 18:01:27 +0000 (14:01 -0400)]
doc: tutorial-pipeline-workbench style+clarity.
Brett Smith [Thu, 27 Mar 2014 16:46:19 +0000 (12:46 -0400)]
doc: Fix tutorial-keep typos and consistency.
Brett Smith [Thu, 27 Mar 2014 16:15:51 +0000 (12:15 -0400)]
doc: Fix api-tokens typos and consistency.
Brett Smith [Thu, 27 Mar 2014 15:56:55 +0000 (11:56 -0400)]
doc: Fix ssh-access typos and consistency.
Brett Smith [Thu, 27 Mar 2014 15:09:00 +0000 (11:09 -0400)]
doc: Style and consistency in user/index.
Tim Pierce [Wed, 2 Apr 2014 05:26:33 +0000 (01:26 -0400)]
Doc fixes.
Tom Clegg [Wed, 2 Apr 2014 02:41:11 +0000 (22:41 -0400)]
Merge branch '2447-fix-workbench-search'
closes #2447
Tom Clegg [Wed, 2 Apr 2014 02:16:43 +0000 (22:16 -0400)]
Fix searching on tables with no "name" column. Take care not to use
string operators on incompatible column types when applying
where/filters.
Tom Clegg [Wed, 2 Apr 2014 01:53:13 +0000 (21:53 -0400)]
Load ArvadosApiClient after configuration.
Tom Clegg [Wed, 2 Apr 2014 01:35:08 +0000 (21:35 -0400)]
Merge branch '2498-group-admin'
closes #2498
Tom Clegg [Wed, 2 Apr 2014 01:27:37 +0000 (21:27 -0400)]
Fix down-migration: delete the system_group and automatically
generated links, and rename the migration.
Tom Clegg [Wed, 2 Apr 2014 00:22:15 +0000 (20:22 -0400)]
Add migration to create system group in existing installations.
Tim Pierce [Tue, 1 Apr 2014 22:42:51 +0000 (18:42 -0400)]
Added TestPutBlockOneVol and TestPutBlockCorrupt. (refs #2292, refs #2449)
Tom Clegg [Tue, 1 Apr 2014 22:39:12 +0000 (18:39 -0400)]
Add a system_group, and ensure it has can_manage permission on every
existing and future user.
This lets us give a user access to all users' data (on read-only or
read+write basis) without also giving them system level privileges
with the is_admin flag (which would also let them override business
logic like UUID assignment).
Tim Pierce [Tue, 1 Apr 2014 21:51:08 +0000 (17:51 -0400)]
Added TestPutBlockOK. (refs #2292, refs #2449)
Also:
* Fixed some sloppy/confusing error handling.
* Removed dependency on "path" in keep.go.
Brett Smith [Tue, 1 Apr 2014 21:37:07 +0000 (17:37 -0400)]
doc: Implement Tom's suggested improvements.
Refs #2470.
Tom Clegg [Tue, 1 Apr 2014 19:36:02 +0000 (15:36 -0400)]
Document group-level administrator semantics.
Tom Clegg [Tue, 1 Apr 2014 19:16:18 +0000 (15:16 -0400)]
Support group-wide administrator privileges.
If an admin user or group has permission to read/write/manage a target
user, the admin's permission extends to all other objects on which the
target user has permission.
Tim Pierce [Tue, 1 Apr 2014 17:40:58 +0000 (13:40 -0400)]
Typo fix.
Tom Clegg [Tue, 1 Apr 2014 17:22:38 +0000 (13:22 -0400)]
Increase max #users shown on users/activity page.
Tim Pierce [Tue, 1 Apr 2014 15:51:40 +0000 (11:51 -0400)]
PutBlock creates dirs as necessary when storing new blocks (refs #2292, refs #2449)
PutBlock calls os.MkdirAll() to create the directory hierarchy when
storing new blocks.
Also: better error reporting and logging.
Tom Clegg [Tue, 1 Apr 2014 04:21:36 +0000 (00:21 -0400)]
Count distinct records for items_available, not rows generated by permission join.
Tom Clegg [Tue, 1 Apr 2014 03:47:47 +0000 (23:47 -0400)]
Test no duplicate UUIDs are returned by collections.list.
Tom Clegg [Tue, 1 Apr 2014 03:46:16 +0000 (23:46 -0400)]
Test items_available = items returned when limit is large.
Tom Clegg [Tue, 1 Apr 2014 03:29:16 +0000 (23:29 -0400)]
Move keep mount point outside TASK_WORK directory to prevent conflict
with arvados.util.clear_tmp().
Tom Clegg [Tue, 1 Apr 2014 03:28:13 +0000 (23:28 -0400)]
Add repository=arvados now required by jobs.create.
Tim Pierce [Mon, 31 Mar 2014 21:41:31 +0000 (17:41 -0400)]
Added PutBlock and PutBlockHandler (refs #2292)
Brett Smith [Mon, 31 Mar 2014 13:46:50 +0000 (09:46 -0400)]
doc: tutorial-job1 updates and style tweaks.
The major change here is that we set no_reuse on the job, to avoid
confusing people by using results from previous tutorial runs. These
updates also reflect some minor changes in the Workbench UI.
Brett Smith [Fri, 28 Mar 2014 21:23:40 +0000 (17:23 -0400)]
doc: job-and-pipeline-ref grammar fixes.
Brett Smith [Fri, 28 Mar 2014 21:06:19 +0000 (17:06 -0400)]
doc: Keep topic style tweaks.
Brett Smith [Fri, 28 Mar 2014 20:57:09 +0000 (16:57 -0400)]
doc: Fix typos in tutorial-parallel.
Brett Smith [Fri, 28 Mar 2014 20:51:36 +0000 (16:51 -0400)]
doc: tutorial-job-debug update and style.
* Jobs now require a "repository" parameter.
* Use environment variables to specify the job script.
Brett Smith [Fri, 28 Mar 2014 19:47:52 +0000 (15:47 -0400)]
doc: Make running-pipeline-command up-to-date.
* @arv pipeline run@ now requires @--run-here@.
* Pipelines are now under Activity in Workbench navigation.
* The format of the example output has changed, along with all the
Keep hashes.
Brett Smith [Fri, 28 Mar 2014 14:31:59 +0000 (10:31 -0400)]
doc: Highlight "you" in reference JSON.
Since this reference provides users with raw example JSON, and doesn't
tell them to write it with @cat@, we can't rely on shell variable
expansion here.
Brett Smith [Mon, 31 Mar 2014 13:51:42 +0000 (09:51 -0400)]
doc: Use $USER in tutorial JSON.
The tutorial encourages users to copy and paste command text.
However, most of the JSON needs to have a user-specific value for
"repository", which is easy to overlook. Since we're telling users to
save JSON with @cat@, we can take advantage of shell variable
expansion to make the right thing happen automatically.
I added accompanying notes to help explain what's going on for people
who aren't copying instructions so literally.
Conflicts:
doc/user/tutorials/tutorial-firstscript.html.textile.liquid
doc/user/tutorials/tutorial-new-pipeline.html.textile.liquid
Brett Smith [Thu, 27 Mar 2014 20:00:09 +0000 (16:00 -0400)]
doc: Tweak running-external-program style.
Brett Smith [Mon, 31 Mar 2014 13:50:55 +0000 (09:50 -0400)]
doc: tutorial-new-pipeline clarity.
I renamed the "filter" job to "do_filter" to help disambiguate it a
little from "0-filter.py".
Conflicts:
doc/user/tutorials/tutorial-new-pipeline.html.textile.liquid
Brett Smith [Mon, 31 Mar 2014 13:50:01 +0000 (09:50 -0400)]
doc: tutorial-firstscript style consistency.
Conflicts:
doc/user/tutorials/tutorial-firstscript.html.textile.liquid
Brett Smith [Thu, 27 Mar 2014 18:01:27 +0000 (14:01 -0400)]
doc: tutorial-pipeline-workbench style+clarity.
Brett Smith [Thu, 27 Mar 2014 16:46:19 +0000 (12:46 -0400)]
doc: Fix tutorial-keep typos and consistency.
Brett Smith [Thu, 27 Mar 2014 16:15:51 +0000 (12:15 -0400)]
doc: Fix api-tokens typos and consistency.
Brett Smith [Thu, 27 Mar 2014 15:56:55 +0000 (11:56 -0400)]
doc: Fix ssh-access typos and consistency.
Brett Smith [Thu, 27 Mar 2014 15:09:00 +0000 (11:09 -0400)]
doc: Style and consistency in user/index.
Tom Clegg [Fri, 28 Mar 2014 21:14:52 +0000 (17:14 -0400)]
Bump arvados-cli version to use output_is_persistent feature. refs #1932
Tom Clegg [Fri, 28 Mar 2014 19:21:03 +0000 (15:21 -0400)]
Merge branch '1932-job-output-persistent'
closes #1932
Tom Clegg [Fri, 28 Mar 2014 18:52:18 +0000 (14:52 -0400)]
Fetch --tags, otherwise we miss out on commits that are tagged but are
not on a branch.
Tom Clegg [Fri, 28 Mar 2014 16:51:29 +0000 (12:51 -0400)]
Add dependency on latest arv-run-pipeline-instance.
Tom Clegg [Fri, 28 Mar 2014 16:31:14 +0000 (12:31 -0400)]
Clarify c_already_finished comments.
Tim Pierce [Fri, 28 Mar 2014 15:58:32 +0000 (11:58 -0400)]
Merge branch '2291-new-keepd-read-blocks'
Tim Pierce [Fri, 28 Mar 2014 15:56:08 +0000 (11:56 -0400)]
Addressing code review comments (refs #2485, refs #2295)
os.Remove(f.Name()) is clearer and less scary than os.Remove(PROC_MOUNTS).
Tim Pierce [Fri, 28 Mar 2014 15:50:34 +0000 (11:50 -0400)]
Merge branch 'master' into 2221-complete-docker
Conflicts:
sdk/cli/bin/crunch-job
Tim Pierce [Fri, 28 Mar 2014 15:08:11 +0000 (11:08 -0400)]
Unit test for FindKeepVolumes (refs #2295)
Tom Clegg [Fri, 28 Mar 2014 00:51:07 +0000 (20:51 -0400)]
Move "empty blob" magic number into a Collection class method, remove
some old unused code and commented-out debug statements.
Tom Clegg [Fri, 28 Mar 2014 00:30:08 +0000 (20:30 -0400)]
Fix some whitespace complaints.
Tom Clegg [Fri, 28 Mar 2014 00:25:07 +0000 (20:25 -0400)]
Merge branch 'master' into 1932-job-output-persistent
Conflicts:
doc/user/tutorials/tutorial-firstscript.html.textile.liquid
doc/user/tutorials/tutorial-new-pipeline.html.textile.liquid
sdk/cli/bin/arv-run-pipeline-instance
services/api/db/schema.rb
Tom Clegg [Thu, 27 Mar 2014 22:30:27 +0000 (18:30 -0400)]
Fix migration crash when script_version is nil.
Tom Clegg [Thu, 27 Mar 2014 21:59:34 +0000 (17:59 -0400)]
Ignore "cache directory does not exist" error when clearing cache at
server startup.
radhika chippada [Thu, 27 Mar 2014 21:20:55 +0000 (17:20 -0400)]
Merge branch '2068-reset-user'
radhika chippada [Thu, 27 Mar 2014 21:20:24 +0000 (17:20 -0400)]
reload object before unsetup
Brett Smith [Thu, 27 Mar 2014 21:12:47 +0000 (17:12 -0400)]
doc: Make index adorable.
It's so cute!
radhika chippada [Thu, 27 Mar 2014 19:04:46 +0000 (15:04 -0400)]
minor cleanup