Skip to content

Enhance Makefile and GitHub Actions for Python virtual environment ma…#56

Merged
reiase merged 4 commits into
masterfrom
bugfix/fix_ci
Jul 8, 2026
Merged

Enhance Makefile and GitHub Actions for Python virtual environment ma…#56
reiase merged 4 commits into
masterfrom
bugfix/fix_ci

Conversation

@reiase

@reiase reiase commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

…nagement

  • Updated the Makefile to improve handling of Python virtual environments, including better detection and recreation logic for .venv.
  • Modified GitHub Actions to set the Python executable path in the environment after creating the virtual environment.
  • Adjusted .gitignore to include .venv/ for better project cleanliness.
  • Updated documentation Makefile to use the system Python command for improved compatibility.

These changes aim to streamline the development workflow and ensure consistent environment setup across different systems.

reiase added 3 commits July 8, 2026 20:28
…nagement

- Updated the Makefile to improve handling of Python virtual environments, including better detection and recreation logic for `.venv`.
- Modified GitHub Actions to set the Python executable path in the environment after creating the virtual environment.
- Adjusted `.gitignore` to include `.venv/` for better project cleanliness.
- Updated documentation Makefile to use the system Python command for improved compatibility.

These changes aim to streamline the development workflow and ensure consistent environment setup across different systems.
- Updated the `bundled_skills_dir` function to prioritize the source tree over wheel copies when running in a probing git checkout, ensuring consistency with discovery results.
- Introduced a lazy initialization for the `DebugConsole` to prevent conflicts with the native engine during import time, allowing for a more efficient debug console setup.
- Added a `get_debug_console` function to manage the creation and retrieval of the debug console instance, improving resource management.

These changes aim to enhance the functionality and usability of the skills management and debugging processes within the Probing framework.
- Modified the import statement in `console.rs` to use `get_debug_console()` for initializing the debug console, enhancing the setup process.
- Updated the `pythonext.py` handler to reflect the new import structure, ensuring compatibility with the revised debug console management.

These changes aim to streamline the debug console initialization process and improve overall resource management within the Probing framework.
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.00000% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lib.rs 0.00% 6 Missing ⚠️
tests/regression/conftest.py 0.00% 6 Missing ⚠️
Files with missing lines Coverage Δ
tests/unit/probing/test_discovery.py 96.42% <100.00%> (ø)
src/lib.rs 0.00% <0.00%> (ø)
tests/regression/conftest.py 52.83% <0.00%> (-6.75%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Modified the Makefile to disable the VM tracer during Python wheel tests when the `PROBING_VM_TRACER` environment variable is set to `0`, improving test reliability.
- Introduced a new function `on_native_bridge_thread` in `runtime.rs` to check if the current thread is the dedicated native bridge worker.
- Updated the Rust core library to utilize the new `on_native_bridge_thread` function, enhancing thread management during Rust/Python bridge operations.
- Improved the `with_detached_native` function in `native_bridge.rs` to avoid unnecessary thread creation when already on the native bridge worker, preventing potential SIGABRT issues in CI environments.
- Enhanced the Python test setup in `conftest.py` to disable the tracer when conflicts are detected, ensuring smoother test execution.

These changes aim to improve the stability and performance of the Probing framework during testing and runtime operations.
@reiase reiase merged commit 0275cb1 into master Jul 8, 2026
10 of 11 checks passed
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.

1 participant