Skip to content

Commit 5b15eae

Browse files
committed
ci: add debug messages to lfc test workflow
1 parent 9958eed commit 5b15eae

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/lfc_test.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16+
- name: Debug output directory and tarball
17+
run: |
18+
echo "--- Listing /tmp before running LFC.sh ---"
19+
ls -lh /tmp
20+
1621
- name: Make LFC.sh executable
1722
run: chmod +x LFC/LFC.sh
1823

@@ -22,13 +27,22 @@ jobs:
2227
OUTPUT_DIR="/tmp/lfc_output"
2328
TARBALL="/tmp/lfc_output.tar.gz"
2429
EXTRACT_DIR="/tmp/extracted_output"
30+
echo "--- Running LFC.sh ---"
2531
sudo ./LFC/LFC.sh "$OUTPUT_DIR"
32+
echo "--- Listing /tmp after running LFC.sh ---"
33+
ls -lh /tmp
34+
echo "--- Listing output directory ---"
35+
ls -lh "$OUTPUT_DIR" || true
36+
echo "--- Checking tarball existence ---"
37+
ls -lh "$TARBALL" || true
2638
mkdir -p "$EXTRACT_DIR"
39+
echo "--- Extracting tarball ---"
2740
tar -xzf "$TARBALL" -C "$EXTRACT_DIR"
2841
2942
LOG_FILE_PATH="$EXTRACT_DIR/$(basename "$OUTPUT_DIR")/log_file.log"
3043
if [ -f "$LOG_FILE_PATH" ]; then
31-
echo "log_file.log found."
44+
echo "log_file.log found. Showing last 20 lines:"
45+
tail -20 "$LOG_FILE_PATH"
3246
if grep -q "Artifact collection completed" "$LOG_FILE_PATH"; then
3347
echo "Artifact collection completed message found in log."
3448
else
@@ -37,7 +51,7 @@ jobs:
3751
exit 1
3852
fi
3953
else
40-
echo "Error: log_file.log not found."
54+
echo "Error: log_file.log not found. Directory tree:"
4155
ls -R "$EXTRACT_DIR"
4256
exit 1
4357
fi

0 commit comments

Comments
 (0)