Skip to content

Conversation

@vyadavmsft
Copy link
Collaborator

  • Core filename pattern consistency (core.integration-* for both generate and search)
  • Capture stderr in main log (2>&1 | tee -a) for reliable watchdog detection
  • Write live backtrace to BOTH main log and side file with markers
  • Robust binary discovery with fallback to cloud-hypervisor binary
  • Capture stderr in per-test metrics logs
  • Harden CH watchdog diagnostics against pid race
  • Validate selected pid is alive before gcore/gdb attach
  • Log attach context (cmdline/parent pid) for troubleshooting
  • Retry gdb attach against parent pid when target exits

- Core filename pattern consistency (core.integration-* for both generate and search)
- Capture stderr in main log (2>&1 | tee -a) for reliable watchdog detection
- Write live backtrace to BOTH main log and side file with markers
- Robust binary discovery with fallback to cloud-hypervisor binary
- Capture stderr in per-test metrics logs
- Harden CH watchdog diagnostics against pid race
- Validate selected pid is alive before gcore/gdb attach
- Log attach context (cmdline/parent pid) for troubleshooting
- Retry gdb attach against parent pid when target exits
@vyadavmsft vyadavmsft requested a review from LiliDeng as a code owner December 12, 2025 19:51
@LiliDeng LiliDeng requested a review from pupacha December 16, 2025 02:08
-ex "set backtrace limit 64" \\
-ex "thread apply all bt" \\
-ex "info threads" > "$live_bt_file" 2>&1 || true
ps -eL -o pid,tid,ppid,stat,etime,comm,cmd | head -200 \\
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the indentation.

# Use consistent core filename pattern that matches search pattern
for dir in . .. /var/crash /cores /var/lib/systemd/coredump /tmp; do
c=$(ls -t "$dir"/core.integration-* 2>/dev/null | head -1)
c=$(ls -t "$dir"/core.integration-* "$dir"/core.* 2>/dev/null \\
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the indentation.

[ -z "$bin" ] && bin=$(ls -t **/target/*/deps/integration-* 2>/dev/null \\
| head -1 || true)
# Fall back to cloud-hypervisor binary if integration test binary not found
[ -z "$bin" ] && bin="$(command -v cloud-hypervisor || true)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the indentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants