-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tes backend prototype with centuar setup
added -elocaldockertest to centaur command print TES logs after run fixed unmarshalling bug inputs in read-only volume; matched TES case classes to schema
- Loading branch information
1 parent
c398490
commit b9faa69
Showing
27 changed files
with
1,582 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
HttpPort: 9000 | ||
Storage: | ||
- Local: | ||
AllowedDirs: | ||
- /home/ | ||
- /cromwell-executions | ||
- /tmp/ | ||
DBPath: /tmp/tes_task.db | ||
Schedulers: | ||
Local: | ||
NumWorkers: 4 | ||
Worker: | ||
Timeout: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
akka { | ||
loggers = ["akka.event.slf4j.Slf4jLogger"] | ||
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter" | ||
} | ||
|
||
spray.can { | ||
server { | ||
request-timeout = 40s | ||
} | ||
client { | ||
request-timeout = 40s | ||
connecting-timeout = 40s | ||
} | ||
} | ||
|
||
call-caching { | ||
enabled = true | ||
} | ||
|
||
backend { | ||
default = "TES" | ||
providers { | ||
TES { | ||
actor-factory = "cromwell.backend.impl.tes.TesBackendLifecycleActorFactory" | ||
config { | ||
root = "cromwell-executions" | ||
dockerRoot = "/cromwell-executions" | ||
endpoint = "http://127.0.0.1:9000/v1/jobs" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env bash | ||
|
||
printTravisHeartbeat() { | ||
# Sleep one minute between printouts, but don't zombie for more than two hours | ||
for ((i=0; i < 120; i++)); do | ||
sleep 60 | ||
printf "…" | ||
done & | ||
TRAVIS_HEARTBEAT_PID=$! | ||
} | ||
|
||
killTravisHeartbeat() { | ||
if [ -n "${TRAVIS_HEARTBEAT_PID+set}" ]; then | ||
kill ${TRAVIS_HEARTBEAT_PID} || true | ||
fi | ||
} | ||
|
||
exitScript() { | ||
echo "TES LOG" | ||
cat logs/tes.log | ||
echo "CROMWELL LOG" | ||
cat logs/cromwell.log | ||
echo "CENTAUR LOG" | ||
cat logs/centaur.log | ||
killTravisHeartbeat | ||
} | ||
|
||
trap exitScript EXIT | ||
printTravisHeartbeat | ||
|
||
set -x | ||
set -e | ||
|
||
sbt assembly | ||
CROMWELL_JAR=$(find "$(pwd)/target/scala-2.11" -name "cromwell-*.jar") | ||
TES_CENTAUR_CONF="$(pwd)/src/bin/travis/resources/tes_centaur.conf" | ||
git clone https://github.com/broadinstitute/centaur.git | ||
cd centaur | ||
git checkout ${CENTAUR_BRANCH} | ||
cd .. | ||
|
||
TES_CONF="$(pwd)/src/bin/travis/resources/tes.conf" | ||
git clone https://github.com/ohsu-comp-bio/funnel.git | ||
cd funnel | ||
make | ||
cd .. | ||
mkdir logs | ||
nohup funnel/bin/tes-server -config ${TES_CONF} > logs/tes.log 2>&1 & | ||
|
||
|
||
# All tests use ubuntu:latest - make sure it's there before starting the tests | ||
# because pulling the image during some of the tests would cause them to fail | ||
# (specifically output_redirection which expects a specific value in stderr) | ||
docker pull ubuntu:latest | ||
centaur/test_cromwell.sh -j"${CROMWELL_JAR}" -c${TES_CENTAUR_CONF} -elocaldockertest |
Oops, something went wrong.