Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 9, 2025

This PR adds automated CI testing for remote debugging functionality by implementing tests that use lldb-server on localhost for ease of testing and CI integration.

Changes Made

GitHub Actions Workflow (.github/workflows/test.yml)

  • Added CI workflow that runs on push/PR to dev and main branches
  • Installs lldb on Ubuntu and sets up Python environment
  • Tests remote debugging infrastructure by starting lldb-server gdbserver on localhost
  • Validates GDB remote protocol communication with basic packet exchange
  • Includes proper error handling and process cleanup

Unit Test Enhancement (test/debugger_test.py)

  • Added test_remote_debug_localhost() method to existing test suite
  • Tests the remote debugging infrastructure when Binary Ninja dependencies are available
  • Follows existing test patterns with proper architecture support and skip conditions
  • Uses dynamic port allocation to avoid conflicts in CI environments

Documentation (docs/ci-remote-debug-test.md)

  • Documents the CI test implementation and purpose
  • Provides manual testing instructions for developers
  • Explains the test scope and validation approach

Test Coverage

The CI test validates that:

  • lldb-server can start and listen on localhost
  • Network connections to the debug server succeed
  • Basic GDB remote protocol communication works correctly
  • Process cleanup and resource management function properly

This provides a foundation for testing remote debugging changes without requiring complex multi-machine setups, making it easier to catch regressions in the remote debugging functionality.

Fixes #805.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits September 9, 2025 11:27
…xprValue (#802)

* Initial plan

* Add support for arithmetic and function call IL operations

Co-authored-by: xusheng6 <[email protected]>

* Complete implementation of missing IL operations including conditionals

Co-authored-by: xusheng6 <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: xusheng6 <[email protected]>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Copilot Copilot AI changed the title [WIP] Add CI test for remote debugging Add CI test for remote debugging on localhost Sep 9, 2025
@Copilot Copilot AI requested a review from xusheng6 September 9, 2025 03:48
Copilot finished work on behalf of xusheng6 September 9, 2025 03:48
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.

Add CI test for remote debugging

3 participants