Skip to content

Commit 52d8158

Browse files
committed
Adding verbosity for vc-test-run
1 parent 0aae448 commit 52d8158

File tree

1 file changed

+19
-25
lines changed

1 file changed

+19
-25
lines changed

.github/workflows/variant-calling-test-run.yml

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ jobs:
2323
unzip gatk-4.4.0.0.zip
2424
sudo ln -s $PWD/gatk-4.4.0.0/gatk /usr/local/bin/gatk
2525
26-
# Verify installations
27-
echo "=== Checking tool versions ==="
28-
java -version
29-
gatk --help
30-
samtools --version
31-
bwa
32-
3326
- name: Install Cromwell
3427
run: |
3528
wget https://github.com/broadinstitute/cromwell/releases/download/86/cromwell-86.jar
@@ -245,39 +238,40 @@ jobs:
245238
246239
- name: Run test workflow
247240
run: |
248-
# Create a directory for logs
249-
mkdir -p task_logs
241+
# Create directory for logs
242+
mkdir -p logs
250243
251-
echo "=== Running Workflow with Debug ==="
244+
echo "=== Running Workflow ==="
252245
java -Dconfig.file=cromwell.conf \
253246
-Dcromwell.workflow.debug-mode=true \
254247
-Dcromwell.logging.level=DEBUG \
255-
-Dcromwell.backend.max-concurrent-workflows=1 \
256248
-jar cromwell.jar run \
257249
variantCalling/variantCalling.wdl \
258250
-i test/test-inputs.json \
259251
2>&1 | tee workflow.log &
260252
261-
# Store the Cromwell PID
262253
CROMWELL_PID=$!
263254
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 {}' \;
272260
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
274265
kill $CROMWELL_PID || true
275266
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'
278269
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
281275
282276
- name: Check outputs
283277
run: |

0 commit comments

Comments
 (0)