|
23 | 23 | unzip gatk-4.4.0.0.zip
|
24 | 24 | sudo ln -s $PWD/gatk-4.4.0.0/gatk /usr/local/bin/gatk
|
25 | 25 |
|
26 |
| - # Verify installations |
27 |
| - echo "=== Checking tool versions ===" |
28 |
| - java -version |
29 |
| - gatk --help |
30 |
| - samtools --version |
31 |
| - bwa |
32 |
| -
|
33 | 26 | - name: Install Cromwell
|
34 | 27 | run: |
|
35 | 28 | wget https://github.com/broadinstitute/cromwell/releases/download/86/cromwell-86.jar
|
@@ -245,39 +238,40 @@ jobs:
|
245 | 238 |
|
246 | 239 | - name: Run test workflow
|
247 | 240 | run: |
|
248 |
| - # Create a directory for logs |
249 |
| - mkdir -p task_logs |
| 241 | + # Create directory for logs |
| 242 | + mkdir -p logs |
250 | 243 |
|
251 |
| - echo "=== Running Workflow with Debug ===" |
| 244 | + echo "=== Running Workflow ===" |
252 | 245 | java -Dconfig.file=cromwell.conf \
|
253 | 246 | -Dcromwell.workflow.debug-mode=true \
|
254 | 247 | -Dcromwell.logging.level=DEBUG \
|
255 |
| - -Dcromwell.backend.max-concurrent-workflows=1 \ |
256 | 248 | -jar cromwell.jar run \
|
257 | 249 | variantCalling/variantCalling.wdl \
|
258 | 250 | -i test/test-inputs.json \
|
259 | 251 | 2>&1 | tee workflow.log &
|
260 | 252 |
|
261 |
| - # Store the Cromwell PID |
262 | 253 | CROMWELL_PID=$!
|
263 | 254 |
|
264 |
| - # Wait for 2 minutes while monitoring processes |
265 |
| - for i in {1..24}; do |
266 |
| - echo "=== Process Check $i ===" |
267 |
| - ps aux | grep -E 'gatk|sort|java' |
268 |
| - echo "=== Memory Usage ===" |
269 |
| - free -h |
270 |
| - sleep 5 |
271 |
| - done |
| 255 | + # Wait briefly to let Cromwell create initial files |
| 256 | + sleep 10 |
| 257 | + |
| 258 | + echo "=== Checking Generated Scripts ===" |
| 259 | + find cromwell-executions -name "script" -type f -exec sh -c 'echo "=== {} ==="; cat {}' \; |
272 | 260 |
|
273 |
| - # If we reach here, kill Cromwell and collect logs |
| 261 | + # Monitor for a bit longer |
| 262 | + sleep 50 |
| 263 | + |
| 264 | + # Kill Cromwell if still running |
274 | 265 | kill $CROMWELL_PID || true
|
275 | 266 |
|
276 |
| - echo "=== Final Directory State ===" |
277 |
| - ls -R cromwell-executions/ 2>/dev/null || echo "No cromwell-executions directory" |
| 267 | + echo "=== Final Process State ===" |
| 268 | + ps aux | grep -E 'gatk|java|samtools' |
278 | 269 |
|
279 |
| - echo "=== GATK Logs ===" |
280 |
| - find . -name "*.log" -type f -exec cat {} \; |
| 270 | + echo "=== Script Execution Logs ===" |
| 271 | + find cromwell-executions -name "stdout" -o -name "stderr" | while read -r log; do |
| 272 | + echo "=== $log ===" |
| 273 | + cat "$log" || echo "Empty/unreadable" |
| 274 | + done |
281 | 275 |
|
282 | 276 | - name: Check outputs
|
283 | 277 | run: |
|
|
0 commit comments