Skip to content

Commit cf90333

Browse files
committed
Changes to fix test workflow
1 parent f2e5f20 commit cf90333

File tree

2 files changed

+62
-147
lines changed

2 files changed

+62
-147
lines changed

.github/workflows/test.yml

Lines changed: 62 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
name: Run tests
77

88
on:
9-
workflow_dispatch:
10-
push:
9+
workflow_run:
10+
workflows: ["Build binaries (Linux, Mac, Windows)"]
11+
types:
12+
- completed
1113

1214
env:
1315
WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/f5881e61-dcdc-40f1-9bd9-717081ac623c/intel-oneapi-base-toolkit-2025.2.1.46_offline.exe
@@ -162,73 +164,65 @@ jobs:
162164
ctest --rerun-failed --output-on-failure
163165
exit 0
164166
165-
- name: Debug with lldb - GNSS network test
166-
if: always()
167-
run: |
168-
source /opt/intel/oneapi/setvars.sh
169-
echo "Running GNSS network test with lldb to capture segfault location..."
170-
171-
# Copy test data to working directory
172-
if [ -d "sampleData" ]; then
173-
cd sampleData
174-
175-
# First, import the data
176-
echo "Importing GNSS network data..."
177-
../bin/dnaimport -n gnss gnss-network.stn gnss-network.msr || true
178-
179-
# Create lldb commands file for better debugging
180-
cat > lldb_commands.txt << 'EOF'
181-
# Only stop on segmentation faults
182-
process handle SIGSEGV --stop true --pass false --notify true
183-
184-
# Add stop hook to show local variables
185-
target stop-hook add --one-liner "frame variable"
186-
187-
# Run the program
188-
run gnss --output-adj-msr
189-
190-
# When stopped on SIGSEGV, show backtrace with all threads
191-
thread backtrace all
192-
193-
# Show frame info
194-
frame info
195-
196-
# Show local variables
197-
frame variable
198-
199-
# Show registers
200-
register read
201-
202-
# Final backtrace
203-
bt
204-
205-
# Quit
206-
quit
207-
EOF
208-
209-
# Run dnaadjust with lldb using the commands file
210-
echo "Running dnaadjust with lldb..."
211-
echo "===================="
212-
lldb-18 -s lldb_commands.txt ../bin/dnaadjust 2>&1 | tee lldb_output.log || true
213-
214-
# Show last 300 lines of output (increased for more context)
215-
echo "===================="
216-
echo "LLDB Output (last 300 lines):"
217-
tail -300 lldb_output.log || true
218-
219-
cd ..
220-
else
221-
echo "sampleData directory not found"
222-
fi
223-
224-
=======
225-
set +e
226-
ctest --output-on-failure --timeout 120 2>&1 | tee ctest_output.log
227-
CTEST_EXIT_CODE=${PIPESTATUS[0]}
228-
echo "CTEST_EXIT_CODE=$CTEST_EXIT_CODE" >> $GITHUB_ENV
229-
exit 0
167+
# - name: Debug with lldb - GNSS network test
168+
# if: always()
169+
# run: |
170+
# source /opt/intel/oneapi/setvars.sh
171+
# echo "Running GNSS network test with lldb to capture segfault location..."
172+
#
173+
# # Copy test data to working directory
174+
# if [ -d "sampleData" ]; then
175+
# cd sampleData
176+
#
177+
# # First, import the data
178+
# echo "Importing GNSS network data..."
179+
# ../bin/dnaimport -n gnss gnss-network.stn gnss-network.msr || true
180+
#
181+
# # Create lldb commands file for better debugging
182+
# cat > lldb_commands.txt << 'EOF'
183+
# # Only stop on segmentation faults
184+
# process handle SIGSEGV --stop true --pass false --notify true
185+
#
186+
# # Add stop hook to show local variables
187+
# target stop-hook add --one-liner "frame variable"
188+
#
189+
# # Run the program
190+
# run gnss --output-adj-msr
191+
#
192+
# # When stopped on SIGSEGV, show backtrace with all threads
193+
# thread backtrace all
194+
#
195+
# # Show frame info
196+
# frame info
197+
#
198+
# # Show local variables
199+
# frame variable
200+
#
201+
# # Show registers
202+
# register read
203+
#
204+
# # Final backtrace
205+
# bt
206+
#
207+
# # Quit
208+
# quit
209+
# EOF
210+
#
211+
# # Run dnaadjust with lldb using the commands file
212+
# echo "Running dnaadjust with lldb..."
213+
# echo "===================="
214+
# lldb-18 -s lldb_commands.txt ../bin/dnaadjust 2>&1 | tee lldb_output.log || true
215+
#
216+
# # Show last 300 lines of output (increased for more context)
217+
# echo "===================="
218+
# echo "LLDB Output (last 300 lines):"
219+
# tail -300 lldb_output.log || true
220+
#
221+
# cd ..
222+
# else
223+
# echo "sampleData directory not found"
224+
# fi
230225

231-
>>>>>>> b3299de7 (Update GitHub actions)
232226
- name: Parse test results and create annotations
233227
if: always()
234228
shell: bash

.github/workflows/test_static.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)