Skip to content

Commit dce2bb5

Browse files
committed
commit for ci debug
1 parent 4801aeb commit dce2bb5

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ jobs:
9696
$IMAGE_TO_TEST tail -f /dev/null
9797
echo "container_name=$CONTAINER_NAME" >> $GITHUB_OUTPUT
9898
99+
- name: Run Debug Script in Container
100+
run: |
101+
docker exec ${{ steps.container.outputs.container_name }} \
102+
/app/tests/debug_shell.sh
103+
99104
- name: Run all tests in container
100105
run: |
101106
docker exec ${{ steps.container.outputs.container_name }} \

nix_tests/debug_shell.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Source the environment setup script
5+
/app/tests/load_nix_env.sh
6+
7+
echo "--- DEBUGGING SHELL ENVIRONMENT ---"
8+
9+
# Display shell information BEFORE the loop
10+
echo -e "\n[BEFORE LOOP] Shell PID: $$"
11+
echo "[BEFORE LOOP] Subshell Level: $BASH_SUBSHELL"
12+
echo "[BEFORE LOOP] PATH: $PATH"
13+
echo "[BEFORE LOOP] EDITOR: ${EDITOR:-'NOT SET'}"
14+
15+
echo -e "\n--- Starting 'find' loop ---"
16+
17+
# The 'find' command will locate one test file for the example
18+
find "/app/tests/env" -type f -name "*.sh" | while read -r test_script; do
19+
echo ""
20+
# Display information from INSIDE the loop
21+
# We use `$$` for the PID and `$BASH_SUBSHELL` to see if we're in a subshell
22+
echo "[INSIDE WHILE] Process PID: $$"
23+
echo "[INSIDE WHILE] Subshell Level: $BASH_SUBSHELL"
24+
echo "[INSIDE WHILE] PATH: $PATH"
25+
echo "[INSIDE WHILE] EDITOR: ${EDITOR:-'NOT SET'}"
26+
done
27+
28+
echo -e "\n--- End of debug script ---"

0 commit comments

Comments
 (0)