Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

21024: Fixes issue where logs in debug mode aren't saved #8

Merged
merged 3 commits into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ jobs:
./amalgam${{ matrix.amlg-postfix }} --version

- name: Run Evolver
timeout-minutes: 20
id: run
timeout-minutes: 15
run: |
# Install GDB
sudo apt-get install -y gdb
Expand All @@ -98,8 +98,8 @@ jobs:
echo "Note: output is supressed due to length. See build artifacts for full logs."
echo "Running..."

# Capture GDB output
gdb_output=$(gdb -batch -ex run -ex backtrace --args ./amalgam${{ matrix.amlg-postfix }} --debug-internal-memory tic_tac_toe_evolver.amlg -target-time 300)
# Capture GDB output (15 minute timeout)
gdb_output=$(timeout 900 gdb -batch -ex run -ex backtrace --args ./amalgam${{ matrix.amlg-postfix }} --debug-internal-memory tic_tac_toe_evolver.amlg -target-time 300)
gdb_exit_code=$?
echo "$gdb_output" >> logs.txt

Expand All @@ -116,7 +116,7 @@ jobs:
fi
else
# If GDB exited with code 0, there was a segfault
echo "$gdb_output"
echo "$gdb_output" | tail -n 200
exit 139
fi

Expand Down