-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from dwoz/notjustrelenv
Not just for relenv
- Loading branch information
Showing
17 changed files
with
133 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Package Tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
changed-files: | ||
required: true | ||
type: string | ||
description: JSON string containing information about changed files | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runs-on: | ||
- ubuntu-latest | ||
- macos-12 | ||
- macos-13-xlarge | ||
- windows-latest | ||
|
||
name: Package Test ${{ matrix.runs-on }} | ||
runs-on: ${{ matrix.runs-on }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install python dependencies | ||
run: | | ||
pip3 install pytest | ||
- name: Run tests | ||
run: | | ||
pytest -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
0.2.0 | ||
===== | ||
|
||
This is the first public release. | ||
|
||
* Automation of test release pipeline | ||
* Upgrade gdb and relenv versions used while building | ||
* Fix issues in wheel missing needed shared libraries | ||
* Improve inject script reliability by using PyRun_SimpleFile instead of | ||
PyRun_SimpleString. | ||
* Add script to build wheel in docker container. | ||
|
||
0.1.0 | ||
===== | ||
|
||
Initial release. | ||
|
||
* Bundles gdb in a wheel. | ||
* Adds gdb entry point to start gdb. | ||
* Adds dbg entry point to quickly get information threads and their python stack | ||
traces. | ||
* Adds inject entrypoint to inject python into a running cpython process. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2024 VMware, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
__version__ = "0.2.0" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2023-2024 VMware, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
""" | ||
Localize gdb startup to the current relenv. | ||
""" | ||
import os | ||
import pathlib | ||
import sys | ||
|
||
real_gdb_bin = pathlib.Path(__file__).parent / "gdb" / "bin" / "gdb" | ||
data_directory = pathlib.Path(__file__).parent / "gdb" / "share" / "gdb" | ||
|
||
|
||
def main(): | ||
"""Wrap gdb startup.""" | ||
os.environ["PYTHONPATH"] = os.pathsep.join(sys.path) | ||
if os.execve in os.supports_fd: | ||
with open(real_gdb_bin, "rb") as fp: | ||
sys.stdout.flush() | ||
sys.stderr.flush() | ||
args = [sys.argv[0], f"--data-directory={data_directory}"] + sys.argv[1:] | ||
os.execve(fp.fileno(), args, os.environ) | ||
else: | ||
cmd = real_gdb_bin | ||
args = [real_gdb_bin, f"--data-directory={data_directory}"] + sys.argv[1:] | ||
os.execve(cmd, args, os.environ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.