Project

General

Profile

Actions

Feature #4027

closed

[Crunch] Accept SDK version as a runtime constraint. Install SDK into the docker container before running tasks.

Added by Ward Vandewege over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Story points:
2.0

Description

During jobs.create and jobs.update, runtime_constraints['arvados_sdk_version'] provided by the client should be resolved to a commit hash and stored in arvados_sdk_hash.

Example:

In jobs.create request:
  • "runtime_constraints":{
      "arvados_sdk_version":"master" 
    }
    
In jobs.show response:
  • "arvados_sdk_hash":"7b2d04380952ac79453bd0771679e40c81281f5c" 
    "runtime_constraints":{
      "arvados_sdk_version":"master" 
    }
    
During the "install source" phase of crunch-job (i.e., at least once per container before any task runs there), crunch-job should do something like this:
  • cd {path-to-arvados-tree}
    git reset --hard {arvados_sdk_hash}
    cd sdk
    ./install.sh
    

The sdk/install.sh program should install Python, Ruby, and Perl client libraries to the system package directories where they can be imported by Crunch tasks.


Subtasks 9 (0 open9 closed)

Task #4532: Review 4027-sdk-constraint-reuse-wipResolvedRadhika Chippada11/11/2014Actions
Task #4557: Review arvados-dev branch 4027-sdk-debian-packages-wipResolved11/11/2014Actions
Task #4629: Review 4027-api-sdk-requires-docker-wipResolvedBrett Smith11/11/2014Actions
Task #4627: Make sure crunch user can clone arvados git repositoryResolvedBrett Smith11/11/2014Actions
Task #4209: crunch-job installs the SDK at the `arvados_sdk_hash` version if presentResolvedBrett Smith11/24/2014Actions
Task #4626: API validation rejects jobs with arvados_sdk_version without docker_imageResolvedBrett Smith11/11/2014Actions
Task #4208: jobs.create and jobs.update resolve runtime_constraints['arvados_sdk_version']ResolvedBrett Smith11/11/2014Actions
Task #4489: Review 4027-api-sdk-version-wipResolvedTom Clegg11/11/2014Actions
Task #4667: Review 4027-crunch-sdk-install-wipResolvedPeter Amstutz11/24/2014Actions

Related issues

Related to Arvados - Idea #3126: [API] Support use of anonymous git url (like github https) as repository in jobs.createResolvedTom Clegg04/09/2015Actions
Copied to Arvados - Bug #4750: [Crunch] crunch-dispatch's Bundler environment infects non-Docker jobsClosed12/09/2014Actions
Actions

Also available in: Atom PDF