arvados.git
10 years agoreduce default #attempts per job task from 9 to 2
Tom Clegg [Fri, 15 Nov 2013 15:45:20 +0000 (07:45 -0800)]
reduce default #attempts per job task from 9 to 2

10 years agofix loop label syntax error introduced in 7c4460b82b8abadc5144f758a9f36ce0f42893e8
Tom Clegg [Fri, 15 Nov 2013 08:15:57 +0000 (00:15 -0800)]
fix loop label syntax error introduced in 7c4460b82b8abadc5144f758a9f36ce0f42893e8

10 years agoadd discovery document test
Tom Clegg [Thu, 14 Nov 2013 16:50:13 +0000 (08:50 -0800)]
add discovery document test

10 years agodelete cached discovery document during boot, so doc matches running code
Tom Clegg [Thu, 14 Nov 2013 16:49:58 +0000 (08:49 -0800)]
delete cached discovery document during boot, so doc matches running code

10 years agoupdate discovery document generator for rails 3.2
Tom Clegg [Thu, 14 Nov 2013 16:49:02 +0000 (08:49 -0800)]
update discovery document generator for rails 3.2

10 years agoadd generatedAt field to discovery document
Tom Clegg [Thu, 14 Nov 2013 16:48:22 +0000 (08:48 -0800)]
add generatedAt field to discovery document

10 years agoMerge branch 'master' of git.clinicalfuture.com:arvados
Tim Pierce [Wed, 13 Nov 2013 18:31:57 +0000 (13:31 -0500)]
Merge branch 'master' of git.clinicalfuture.com:arvados

10 years agoBreak out deploying vs. installation instructions.
Tim Pierce [Wed, 13 Nov 2013 18:31:21 +0000 (13:31 -0500)]
Break out deploying vs. installation instructions.

10 years agoMerge branch 'master' of git.clinicalfuture.com:arvados
Ward Vandewege [Wed, 13 Nov 2013 17:59:02 +0000 (12:59 -0500)]
Merge branch 'master' of git.clinicalfuture.com:arvados

Conflicts:
docker/workbench/Dockerfile

10 years agoAdd workbench server to build.sh and run.sh
Ward Vandewege [Wed, 13 Nov 2013 17:43:20 +0000 (12:43 -0500)]
Add workbench server to build.sh and run.sh

10 years agodocserver container updates:
Ward Vandewege [Wed, 13 Nov 2013 17:42:23 +0000 (12:42 -0500)]
docserver container updates:
* use base arvados Debian image
* simplify Dockerfile

10 years agoFix Dockerfile comments.
Ward Vandewege [Wed, 13 Nov 2013 17:11:57 +0000 (12:11 -0500)]
Fix Dockerfile comments.

10 years agoAdd docker image with workbench server.
Ward Vandewege [Mon, 11 Nov 2013 22:33:12 +0000 (17:33 -0500)]
Add docker image with workbench server.

10 years agoMerge branch 'master' of git.clinicalfuture.com:arvados
Tim Pierce [Wed, 13 Nov 2013 15:04:03 +0000 (10:04 -0500)]
Merge branch 'master' of git.clinicalfuture.com:arvados

10 years agoPrecompile Rails assets.
Tim Pierce [Wed, 13 Nov 2013 15:03:05 +0000 (10:03 -0500)]
Precompile Rails assets.
Make sure mod_ssl is enabled in Apache.

10 years agoAdd docker image with workbench server.
Ward Vandewege [Mon, 11 Nov 2013 22:33:12 +0000 (17:33 -0500)]
Add docker image with workbench server.

10 years agoMerge branch '1578-api-server-in-docker'
Tim Pierce [Tue, 12 Nov 2013 01:52:16 +0000 (20:52 -0500)]
Merge branch '1578-api-server-in-docker'

10 years agoSet nameservers at config time.
Tim Pierce [Mon, 11 Nov 2013 23:11:45 +0000 (18:11 -0500)]
Set nameservers at config time.

10 years agoMerge branch '1578-api-server-in-docker' of git.clinicalfuture.com:arvados into 1578...
Tim Pierce [Mon, 11 Nov 2013 23:11:05 +0000 (18:11 -0500)]
Merge branch '1578-api-server-in-docker' of git.clinicalfuture.com:arvados into 1578-api-server-in-docker

Conflicts:
docker/config.rb

10 years agoCopied Apache vhost config from qr1hi.
Tim Pierce [Mon, 11 Nov 2013 23:05:19 +0000 (18:05 -0500)]
Copied Apache vhost config from qr1hi.

10 years agoWe want to be able to handle naked
Ward Vandewege [Mon, 11 Nov 2013 22:24:28 +0000 (17:24 -0500)]
We want to be able to handle naked

  false

in config.rb's variable substitution.

10 years agoAdd sass explicitly
Ward Vandewege [Mon, 11 Nov 2013 22:12:40 +0000 (17:12 -0500)]
Add sass explicitly

10 years agoStyle improvements -- rubocop
Ward Vandewege [Mon, 11 Nov 2013 21:41:39 +0000 (16:41 -0500)]
Style improvements -- rubocop

10 years agoAllow up to 10 levels of nesting for variable substitution in config.rb
Ward Vandewege [Mon, 11 Nov 2013 21:38:03 +0000 (16:38 -0500)]
Allow up to 10 levels of nesting for variable substitution in config.rb

10 years agoRename config.yml to config.yml.example (easier to keep real configuration
Tim Pierce [Mon, 11 Nov 2013 21:38:01 +0000 (16:38 -0500)]
Rename config.yml to config.yml.example (easier to keep real configuration
settings out of the repo)

10 years agoWe don't need the pg gem in workbench.
Ward Vandewege [Mon, 11 Nov 2013 19:03:17 +0000 (14:03 -0500)]
We don't need the pg gem in workbench.

10 years agoadd log_stream_href attribute to Job resource
Tom Clegg [Mon, 11 Nov 2013 18:52:16 +0000 (10:52 -0800)]
add log_stream_href attribute to Job resource

10 years agoFix deprecation warning:
Ward Vandewege [Mon, 11 Nov 2013 17:52:46 +0000 (12:52 -0500)]
Fix deprecation warning:

  do not use ActionController::UnknownAction

10 years agoWe don't use the bootstrap-rails gem, and it does not exist anymore.
Ward Vandewege [Mon, 11 Nov 2013 17:52:09 +0000 (12:52 -0500)]
We don't use the bootstrap-rails gem, and it does not exist anymore.

10 years agoFix deprecation warning:
Ward Vandewege [Mon, 11 Nov 2013 17:52:46 +0000 (12:52 -0500)]
Fix deprecation warning:

  do not use ActionController::UnknownAction

10 years agoWe don't use the bootstrap-rails gem, and it does not exist anymore.
Ward Vandewege [Mon, 11 Nov 2013 17:52:09 +0000 (12:52 -0500)]
We don't use the bootstrap-rails gem, and it does not exist anymore.

10 years agoUse supervisord to start postgres + apache2 when the api
Tim Pierce [Mon, 11 Nov 2013 17:32:45 +0000 (12:32 -0500)]
Use supervisord to start postgres + apache2 when the api
container is launched.

Move generated files to an api/generated directory for
easier ignoring.

10 years agoStart the API container with supervisor, running postgres & apache2.
Tim Pierce [Fri, 8 Nov 2013 22:36:15 +0000 (17:36 -0500)]
Start the API container with supervisor, running postgres & apache2.
Reduce commands in Dockerfiles to stay under the 42-layer limit for AUFS
  (https://github.com/dotcloud/docker/issues/1171)

10 years agoCatch AbstractController::ActionNotFound instead of deprecated
Tom Clegg [Fri, 8 Nov 2013 22:00:33 +0000 (14:00 -0800)]
Catch AbstractController::ActionNotFound instead of deprecated
ActionController::UnknownAction

See http://guides.rubyonrails.org/3_2_release_notes.html

10 years agoadd crunch_worker_state to Node api response. refs #1586
Tom Clegg [Fri, 8 Nov 2013 21:16:18 +0000 (13:16 -0800)]
add crunch_worker_state to Node api response. refs #1586

10 years agofix tests and behavior for nodes#list as called by inactive user. refs #1594
Tom Clegg [Fri, 8 Nov 2013 21:14:13 +0000 (13:14 -0800)]
fix tests and behavior for nodes#list as called by inactive user. refs #1594

10 years agoFix passenger filename.
Tim Pierce [Fri, 8 Nov 2013 16:12:14 +0000 (11:12 -0500)]
Fix passenger filename.

10 years agoConfigure Apache and Passenger.
Tim Pierce [Fri, 8 Nov 2013 06:45:55 +0000 (01:45 -0500)]
Configure Apache and Passenger.

10 years agoBug fixes.
Tim Pierce [Fri, 8 Nov 2013 04:26:30 +0000 (23:26 -0500)]
Bug fixes.

10 years agoSpecify all configuration settings in config.yml.
Tim Pierce [Thu, 7 Nov 2013 22:41:45 +0000 (17:41 -0500)]
Specify all configuration settings in config.yml.

* Added README with step-by-step build instructions.
* config.rb substitutes config.yml variables in *.in files.

10 years agoAdd docker arvados/docserver build.
Ward Vandewege [Thu, 7 Nov 2013 22:18:30 +0000 (17:18 -0500)]
Add docker arvados/docserver build.

This closes #1580

10 years agoUse current_user to select API response template. fixes #1594
Tom Clegg [Thu, 7 Nov 2013 17:15:01 +0000 (09:15 -0800)]
Use current_user to select API response template. fixes #1594

10 years agoPreload all models at startup. Otherwise, in non-production mode,
Tom Clegg [Thu, 7 Nov 2013 17:27:03 +0000 (09:27 -0800)]
Preload all models at startup. Otherwise, in non-production mode,
Rails crashes trying to instantiate cached objects before loading the
relevant classes.

http://aaronvb.com/articles/37-rails-caching-and-undefined-class-module

10 years agoAdd "not null" constraint to timestamp columns.
Tom Clegg [Thu, 7 Nov 2013 17:24:09 +0000 (09:24 -0800)]
Add "not null" constraint to timestamp columns.

"When the timestamps method creates the created_at and updated_at
columns, it makes them non-nullable by default."

http://guides.rubyonrails.org/3_2_release_notes.html

10 years agoRemove "test user needs createdb privilege" workaround.
Tom Clegg [Thu, 7 Nov 2013 17:20:51 +0000 (09:20 -0800)]
Remove "test user needs createdb privilege" workaround.

It doesn't seem to work any more in Rails 3.2. Just accept that your
test user needs to own the test db and have the createdb privilege.

ALTER ROLE arvados_test_user CREATEDB

10 years agoMerging the postgres container back into the api container (simpler
Tim Pierce [Wed, 6 Nov 2013 23:11:51 +0000 (18:11 -0500)]
Merging the postgres container back into the api container (simpler
and more consistent with best practices).

'docker build -t arvados/api api' now builds a container with postgres
and apache2, and installs the API Rails database.

To have this container start multiple services at run time
(i.e. postgres + apache2) the popular solution is to make supervisord
the entrypoint for the container.

10 years agoSplitting out containers into arvados/base, arvados/postgresql and arvados/api.
Tim Pierce [Wed, 6 Nov 2013 20:45:59 +0000 (15:45 -0500)]
Splitting out containers into arvados/base, arvados/postgresql and arvados/api.

10 years agoMerge branch 'master' of git.clinicalfuture.com:arvados
Tim Pierce [Wed, 6 Nov 2013 14:44:52 +0000 (09:44 -0500)]
Merge branch 'master' of git.clinicalfuture.com:arvados

10 years agoRename "cfi" docker images to "arvados"
Tim Pierce [Tue, 5 Nov 2013 21:35:28 +0000 (16:35 -0500)]
Rename "cfi" docker images to "arvados"

Some fixes for PostgreSQL and gem installation.

10 years agoupgrade to latest Rails 3.2
Tom Clegg [Tue, 5 Nov 2013 20:41:45 +0000 (12:41 -0800)]
upgrade to latest Rails 3.2

10 years agoPost-install configuration script for PostgreSQL.
Tim Pierce [Tue, 5 Nov 2013 18:47:53 +0000 (13:47 -0500)]
Post-install configuration script for PostgreSQL.

10 years agoUse PostgreSQL, not MySQL.
Tim Pierce [Tue, 5 Nov 2013 18:43:34 +0000 (13:43 -0500)]
Use PostgreSQL, not MySQL.

10 years agoInitial build files for Docker images with Arvados support.
Tim Pierce [Mon, 4 Nov 2013 22:58:39 +0000 (17:58 -0500)]
Initial build files for Docker images with Arvados support.

docker/build.sh will build two Docker images locally:
  cfi/debian - a base Debian Wheezy image
  cfi/base   - cfi/debian, rvm, rails, MySQL, Arvados source code

10 years agoUpdating install and use documentation.
Tim Pierce [Mon, 4 Nov 2013 22:28:37 +0000 (17:28 -0500)]
Updating install and use documentation.

10 years agoupgrade gem dependencies
Tom Clegg [Mon, 4 Nov 2013 22:17:35 +0000 (14:17 -0800)]
upgrade gem dependencies

10 years agoupgrade gem dependencies
Tom Clegg [Mon, 4 Nov 2013 22:17:29 +0000 (14:17 -0800)]
upgrade gem dependencies

10 years agoinclude "href" key for each object in API response
Tom Clegg [Mon, 4 Nov 2013 22:17:01 +0000 (14:17 -0800)]
include "href" key for each object in API response

10 years agoimprove error message when API response is valid JSON but not a hash
Tom Clegg [Mon, 4 Nov 2013 22:14:42 +0000 (14:14 -0800)]
improve error message when API response is valid JSON but not a hash

10 years agoin log_tail_follow, emit recent messages at top of live stream. fixes #1590
Tom Clegg [Mon, 4 Nov 2013 21:29:53 +0000 (13:29 -0800)]
in log_tail_follow, emit recent messages at top of live stream. fixes #1590

10 years agostore the last ~512 KiB of job log messages in a redis buffer. fixes #1589
Tom Clegg [Mon, 4 Nov 2013 18:03:37 +0000 (10:03 -0800)]
store the last ~512 KiB of job log messages in a redis buffer. fixes #1589

10 years agoimprove error message when crunch-job is not found
Tom Clegg [Mon, 4 Nov 2013 17:56:33 +0000 (09:56 -0800)]
improve error message when crunch-job is not found

10 years agosend queue/worker stats while waiting for job to start. fixes #1591
Tom Clegg [Fri, 1 Nov 2013 06:16:19 +0000 (23:16 -0700)]
send queue/worker stats while waiting for job to start. fixes #1591

10 years agoupdate node info[:slurm_state] when running sinfo. fixes #1606
Tom Clegg [Fri, 1 Nov 2013 05:29:29 +0000 (22:29 -0700)]
update node info[:slurm_state] when running sinfo. fixes #1606

10 years agoallow crunch-job caller to override CRUNCH_TMP. fixes #1593
Tom Clegg [Fri, 1 Nov 2013 04:41:59 +0000 (21:41 -0700)]
allow crunch-job caller to override CRUNCH_TMP. fixes #1593

10 years agofix infinite exec loop
Tom Clegg [Mon, 21 Oct 2013 16:32:47 +0000 (12:32 -0400)]
fix infinite exec loop

10 years agofix infinite loop if CONT signal received while todo is empty
Tom Clegg [Mon, 21 Oct 2013 15:56:37 +0000 (11:56 -0400)]
fix infinite loop if CONT signal received while todo is empty

10 years agoupgrade gem versions in Gemfile.lock
Tom Clegg [Mon, 7 Oct 2013 19:21:22 +0000 (15:21 -0400)]
upgrade gem versions in Gemfile.lock

10 years agoset/unset ARVADOS_API_HOST_INSECURE in cli setup instructions
Tom Clegg [Mon, 7 Oct 2013 19:20:14 +0000 (15:20 -0400)]
set/unset ARVADOS_API_HOST_INSECURE in cli setup instructions

10 years agorename jobs.resource_limits to runtime_constraints
Tom Clegg [Mon, 7 Oct 2013 18:12:12 +0000 (14:12 -0400)]
rename jobs.resource_limits to runtime_constraints

10 years agoadd Real Time Genomics pipeline template
Tom Clegg [Mon, 7 Oct 2013 14:26:53 +0000 (10:26 -0400)]
add Real Time Genomics pipeline template

10 years agoadd crunch scripts for Real Time Genomics pipeline
Tom Clegg [Mon, 9 Sep 2013 16:16:28 +0000 (12:16 -0400)]
add crunch scripts for Real Time Genomics pipeline

10 years agoadd note about running crunch jobs with no git repo at all
Tom Clegg [Fri, 27 Sep 2013 04:30:52 +0000 (00:30 -0400)]
add note about running crunch jobs with no git repo at all

10 years agoMigrate the test database to 0 instead of trying to "drop database".
Tom Clegg [Fri, 27 Sep 2013 04:21:49 +0000 (00:21 -0400)]
Migrate the test database to 0 instead of trying to "drop database".

This way, the database credentials used for testing do not need
create/drop database privileges.

10 years agoadd a few fixtures and tests for API. refs #1517 refs #1510
Tom Clegg [Fri, 27 Sep 2013 04:20:33 +0000 (00:20 -0400)]
add a few fixtures and tests for API. refs #1517 refs #1510

10 years agofix down-migration: add_column should have been remove_column
Tom Clegg [Fri, 27 Sep 2013 04:29:35 +0000 (00:29 -0400)]
fix down-migration: add_column should have been remove_column

10 years agoIgnore failure in data-migration part of old schema migration.
Tom Clegg [Fri, 27 Sep 2013 04:26:28 +0000 (00:26 -0400)]
Ignore failure in data-migration part of old schema migration.

The migration should succeed if the Metadatum model did not exist in
the version of the project that was used to run the migration.

10 years agoFix exception if api_client_authorization does not reference a valid user.
Tom Clegg [Fri, 27 Sep 2013 04:25:31 +0000 (00:25 -0400)]
Fix exception if api_client_authorization does not reference a valid user.

10 years agoadd local job debugging tutorial. closes #1515
Tom Clegg [Thu, 26 Sep 2013 02:33:18 +0000 (22:33 -0400)]
add local job debugging tutorial. closes #1515

10 years agofix exception when script_version is nil
Tom Clegg [Thu, 26 Sep 2013 02:04:31 +0000 (22:04 -0400)]
fix exception when script_version is nil

10 years agoadd ruby wrapper around crunch-job
Tom Clegg [Thu, 26 Sep 2013 01:57:01 +0000 (21:57 -0400)]
add ruby wrapper around crunch-job

10 years agomove crunch-job to arv-crunch-job and add to arvados-cli gem
Tom Clegg [Thu, 26 Sep 2013 01:16:17 +0000 (21:16 -0400)]
move crunch-job to arv-crunch-job and add to arvados-cli gem

10 years agofill in intro-to-git page
Tom Clegg [Tue, 24 Sep 2013 22:13:05 +0000 (18:13 -0400)]
fill in intro-to-git page

10 years agoupdate API tokens doc to match current API tokens page
Tom Clegg [Tue, 24 Sep 2013 21:44:25 +0000 (17:44 -0400)]
update API tokens doc to match current API tokens page

10 years agodo not munge hash keys in client-provided request. fixes #1516
Tom Clegg [Tue, 24 Sep 2013 17:30:20 +0000 (13:30 -0400)]
do not munge hash keys in client-provided request. fixes #1516

10 years agotest API update semantics, confirm put/get cycle preserves components{} hash
Tom Clegg [Tue, 24 Sep 2013 17:28:22 +0000 (13:28 -0400)]
test API update semantics, confirm put/get cycle preserves components{} hash
refs #1517

10 years agoupdate "correct answer" hashes in collection tests - see 3f431d852579ee433197fb1c29e6...
Tom Clegg [Tue, 24 Sep 2013 17:25:09 +0000 (13:25 -0400)]
update "correct answer" hashes in collection tests - see 3f431d852579ee433197fb1c29e6db374ccb4b9e

10 years agoDuring task setup, if it exists, run /crunch_scripts/install instead
Tom Clegg [Tue, 17 Sep 2013 01:59:04 +0000 (21:59 -0400)]
During task setup, if it exists, run /crunch_scripts/install instead
of /install.sh

10 years agopass api_token and pipeline_instance in request body instead of query string
Tom Clegg [Mon, 16 Sep 2013 21:56:38 +0000 (17:56 -0400)]
pass api_token and pipeline_instance in request body instead of query string

10 years agoModify API discovery document and CLI tool so resource objects can be
Tom Clegg [Mon, 16 Sep 2013 21:41:01 +0000 (17:41 -0400)]
Modify API discovery document and CLI tool so resource objects can be
supplied in the request body (instead of the query string) for Create
and Update methods.

10 years agoescape spaces in manifest filenames
Tom Clegg [Fri, 13 Sep 2013 04:44:20 +0000 (00:44 -0400)]
escape spaces in manifest filenames

10 years agoadd CollectionWriter.write_directory_tree()
Tom Clegg [Thu, 12 Sep 2013 19:55:14 +0000 (15:55 -0400)]
add CollectionWriter.write_directory_tree()

10 years agomaintain directory structure in collection_extract
Tom Clegg [Wed, 11 Sep 2013 23:04:23 +0000 (19:04 -0400)]
maintain directory structure in collection_extract

10 years agofix extra empty stream in all_streams() response
Tom Clegg [Wed, 11 Sep 2013 21:58:51 +0000 (17:58 -0400)]
fix extra empty stream in all_streams() response

10 years agooverwrite existing files in stream_extract
Tom Clegg [Wed, 11 Sep 2013 22:57:52 +0000 (18:57 -0400)]
overwrite existing files in stream_extract

10 years agoadd util.listdir_recursive()
Tom Clegg [Wed, 11 Sep 2013 02:29:11 +0000 (22:29 -0400)]
add util.listdir_recursive()

10 years agofix os.path.dirname usage
Tom Clegg [Wed, 11 Sep 2013 02:08:58 +0000 (22:08 -0400)]
fix os.path.dirname usage

10 years agofix out of scope function use
Tom Clegg [Wed, 11 Sep 2013 02:08:00 +0000 (22:08 -0400)]
fix out of scope function use

10 years agomkdir -p in collection_extract()
Tom Clegg [Wed, 11 Sep 2013 23:01:04 +0000 (19:01 -0400)]
mkdir -p in collection_extract()

10 years agoadd one-task-per-stream utils
Tom Clegg [Tue, 10 Sep 2013 19:54:47 +0000 (15:54 -0400)]
add one-task-per-stream utils

10 years agofix stream names in CollectionWriter
Tom Clegg [Tue, 10 Sep 2013 18:53:02 +0000 (14:53 -0400)]
fix stream names in CollectionWriter