intrigus-lgtm
2a6a05f2b8
Use fork of action-docker-layer-caching to prevent warnings ( #1794 )
...
https://github.com/satackey/action-docker-layer-caching hasn't been updated in quite some time.
E.g. GitHub has started to complain about the deprecated `save-state` command.
Solve this by switching to a newer fork.
2 years ago
intrigus-lgtm
7d9d2dc1de
Fix codecov ( #1792 )
...
* Fix coverage combine toml issue
This commit should fix this issue:
```
Run coverage combine
coverage combine
coverage xml
shell: /usr/bin/bash -e {0}
Can't read 'pyproject.toml' without TOML support. Install with [toml] extra
Error: Process completed with exit code 1.
```
* setup.sh: cleanup the --user flag since we use venv now
Cleans up the --user flag from setup.sh since it is unused after we changed setup.sh to install Python dependencies in a virtual environment
* Remove --user flag from CI workflows
* Fix codecov problem
We need to run the python `coverage` library to collect coverage.
However, gdb was failing to find it.
Recently, pwndbg moved to using venvs. When pwndbg is initialized
it setups the venv "manually", that is, no "source .venv/bin/activate"
is needed. When we run gdb tests, we pass the `gdbinit.py` of pwndbg as a
command to gdb to be executed like this:
`gdb --silent --nx --nh -ex 'py import coverage;coverage.process_startup()' --command PATH_TO_gdbinit.py`
The problem is that *order* matters. This means that *first* coverage
is imported (by `-ex py ...`) and only *then* the init script is executed.
When `coverage` is first imported, it's library search path only looks
in system libraries of python, and not the venv that gdbinit.py would load.
So we would try to import an old version of coverage and fail.
One solution would be to move around the commands, but this would be an
ugly hack IMHO. **Instead**, we should just tell gdb that this is an **init**
command that has to be executed before other commands.
Previously, the order did not matter. All of pwndbg's dependencies were
installed directly as system libraries to python. So the library search path
was the same before and after loading `gdbinit.py`.
---------
Co-authored-by: disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: intrigus <abc123zeus@live.de>
2 years ago
Disconnect3d
2f3438ddb2
CI: disable builds on push ( #1788 )
2 years ago
Disconnect3d
cc13296abe
Fix #1785 : remove unused PWNDBG_GITHUB_ACTIONS_TEST_RUN ( #1786 )
2 years ago
peace-maker
a6cc19aa5c
Improve RISCV support ( #1770 )
...
* Improve RISCV support
This is a resurrection of #829
Co-authored-by: Tobias Faller <faller@endiio.com>
* Silence bogus vermin warning
* Fix relative backwards jump calculations
The target address wouldn't be truncated to the pointer size.
* Add basic qemu-user test
* Run qemu-user tests in CI
* Make shfmt happy
* Fix pwntools < 4.11.0 support
* Support RISCV32 for pwntools < 4.11.0 as well
---------
Co-authored-by: Tobias Faller <faller@endiio.com>
2 years ago
Disconnect3d
0db1eeadca
Remove ArchLinux from CI ( #1776 )
...
Since it breaks every now and then. This should be reverted when we start to install deps in a virtualenv
2 years ago
Disconnect3d
6e0d159273
Add +10min (30min) to qemu-tests CI build ( #1737 )
...
This is an attempt to mitigate: "Unit tests / qemu-tests (pull_request) Cancelled after 20m" that occurs in https://github.com/pwndbg/pwndbg/pull/1732
3 years ago
Gulshan Singh
2ee664a0ea
Add codecov.yml ( #1720 )
3 years ago
theguy147
6ff05bbcc8
Test more kernels ( #1684 )
3 years ago
theguy147
91c72a001e
feat: use pytest for qemu-system tests ( #1679 )
...
* feat: use pytest for qemu-system tests
* CI: update qemu workflow
* feat: make tests aware of ARCH and KERNEL_TYPE
3 years ago
Disconnect3d
e5b188f1cf
Update CONTRIBUTING.md ( #1681 )
3 years ago
Disconnect3d
96482a60ce
CI: remove Ubuntu 18.04 from lint and tests builds ( #1670 )
3 years ago
Gulshan Singh
b9c9f12efc
Add qemu tests to CI
3 years ago
Gulshan Singh
3d57be41e2
Don't fail CI if codecov upload fails ( #1532 )
3 years ago
Gulshan Singh
bc59a8eddd
Fix memoize type issues and enable mypy in lint script ( #1518 )
...
* memoize type fixes
* Add mypy to lint script
* Add mypy to dev-requirements.txt
3 years ago
Gulshan Singh
d9f6934858
Run lint CI job and Ubuntu 22.04 and 18.04 ( #1505 )
...
* Run lint CI job and Ubuntu 22.04 and 18.04
* Fix lint errors
3 years ago
Mohit Saxena
894f6e2103
Update tests.yml
3 years ago
Mohit Saxena
0b0b09c7f5
Update tests.yml
3 years ago
Xeonacid
1224cf75ef
Support Arch Linux docker test ( #1378 )
...
* Specify dockerfile for ubuntu/debian
To add Dockerfile.arch later
* Support Arch Linux docker test
* Fix setup-dev supported distro
* Create set_zigpath function
* Download zig from upstream for archlinux
* Add hash as part of key for docker cache
as https://github.com/satackey/action-docker-layer-caching#inputs notes.
3 years ago
Disconnect3d
dd6454065d
Merged #1351 PR: Run tests in docker images ( #1370 )
...
* Added images to DockerFile
* Docker test
* Docker.yml changes, longer timeout and naming changes
* typo in run command
* added matrix for docker workflow 'testing'
* typo in matrix
* git fixes
* docker testing
* Changed stage build'testing'
* testing docker change
* Run images in seperate containers
* docker files added
* reverted Dockerfile
* Removed files from the index (now ignored)
* Docker test, changed build to pull
* Update comments in Ubuntu and Debian dockerfiles
* added main service back
* Reducing common code
* Condensing docker-compose.yml
* Revert docker-compose.yml changes
* Removing matrix from docker-compose.yml
* removing target images from docker-compose
* Added dockerfile-unitTests
* Condensing docker-compose.yml
* Reverting compose changes
* Merged Dockerfiles and fixed image names
* removed .DS_Store
* Revert pycharm_debugging.md
* Testing remove
* Testing remove
* Remove ds files
* Add files via upload
* Add files via upload
* Docker changes
* Docker workflow changes
* Update Dockerfile
* Update docker-compose.yml
* shorten docker-compose.yml by using yaml anchors
* fix docker-compose.yml
Co-authored-by: Kevin Nguyen <u7315258@anu.edu.au>
Co-authored-by: Filip Mazur <110886132+mazfil@users.noreply.github.com>
Co-authored-by: KevinN318 <110944398+KevinN318@users.noreply.github.com>
Co-authored-by: Filip Mazur <u6934917@anu.edu.au>
3 years ago
Gulshan Singh
f9dac535c3
Delete old issue template ( #1343 )
3 years ago
Gulshan Singh
8debb56105
Create pull_request_template.md ( #1342 )
3 years ago
Gulshan Singh
7efaa33b0c
Install shfmt on Ubuntu 22.04, otherwise skip running linter ( #1323 )
3 years ago
Gulshan Singh
b0b6a8fa30
Rename setup-test-tools.sh to setup-dev.sh ( #1320 )
3 years ago
Tingfeng Yu
61ad340d25
made codecov optional, enable it with -c or --cov ( #1322 )
...
Co-authored-by: Tingfeng Yu <tingfeng.yu@anu.edu.au>
3 years ago
Disconnect3d
6af5d7d7ed
Increase CI timeout to 20 minutes ( #1309 )
3 years ago
Gulshan Singh
f0ea79575d
Add unit-test for find_fake_fast command
3 years ago
Gulshan Singh
9a67233cd1
Store coverage files in .cov directory
3 years ago
Gulshan Singh
8eabec5541
fixed coverage uploading
3 years ago
Gulshan Singh
0d73e9d8c9
Cleanup requirements and run full setup in lint CI job ( #1230 )
3 years ago
Miles Liu
8d184a9e8e
Upload codecov report only from Ubuntu22.04
...
Also update GitHub action dependencies.
3 years ago
Gulshan Singh
cc50024417
Format shell scripts with shfmt ( #1123 )
...
* Add lint.sh script
* Format shell scripts with shfmt and add to lint.sh
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
3 years ago
Gulshan Singh
bbf1397a2b
Add lint.sh script ( #1122 )
3 years ago
Gulshan Singh
9755a40d7b
Build docker in CI ( #1117 )
3 years ago
Gulshan Singh
1df714d700
Fix PEP8 violations and add flake8 to CI ( #1102 )
...
* Add flake8 config to setup.cfg
* Fix W291 PEP8 warnings
* Fix W605 PEP8 warnings
* Fix E711 PEP8 error
* Fix E713 PEP8 errors
* Fix E262 PEP8 errors
* Fix E714 PEP8 error
* Fix E712 PEP8 errors
* Add flake8 to CI
3 years ago
Gulshan Singh
d8b589d823
Add black to CI ( #1101 )
...
* Add black to CI
* Rename linter step
3 years ago
Gulshan Singh
2bde0cc1d8
Update CI to test 18.04, 20.04, and 22.04 ( #1100 )
...
* Fix requirements.txt for Python 3.6
* Install coverage from setup-test-tools.sh
* Update CI to test Ubuntu 18.04, 20.04, and 22.04
3 years ago
Disconnect3d
9636331504
CI: show installed packages
4 years ago
patryk4815
c8c9e3f003
Add Codecov
4 years ago
Arusekk
9c8df00462
Add basic coverage testing
4 years ago
Disconnect3d
526b3ea9c6
Hopefully fix CI tests
4 years ago
Disconnect3d
6fd42dd5ab
Add attachp command and tests for it
4 years ago
Israel Alberto RV
bf49bf8356
Unit test fix ( #868 )
...
* Fixed the failed unit testing; Improved the Dockerfile, again.
* Fixed missing new line joiner in the Dockerfile.
* Fixed the default Python version from 2 to 3.
* Moved the installation of the nasm and golang packages to the setup script.
* Fixed the extra quotes which fails the sudo check.
* Added to the Git ignore file the output files assembled and linked in the test binaries.
* Removed the output files from test binaries.
* Added to the Git ignore file the virtual environment directory.
* Added sudo to the remove and link the Python3 binary.
* Added commands related to GO, to check why is failing.
* Fixed the installation of GO, only install if not exists in Ubuntu.
* Fixed the first test built in Assembler. Checks if it is working in GitHub.
* Fixed the problem with all the assembler tests; Extracted the asserts into methods, avoiding duplicates.
* Fixed some test, should be fail the Travis tests.
* Fixed one test for Travis.
* Fixed the asserts, now find all ecpected items into the output.
* Fixed the split message, joined again.
* Fixed the last error test for loads binary.
* Fixed one missing number in the comparison.
* Fixed the first Lint errors.
* Added comment in the Dockerfile.
The commented line about `git submodule`.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549075767
* Removed NASM and Go from the setup.
Created a new bash script to install them and added to the Dockerfile.
https://github.com/pwndbg/pwndbg/pull/868/files#r549075931
https://github.com/pwndbg/pwndbg/pull/868/files#r549076078
* Added the setup script in the GitHub test workflow.
https://github.com/pwndbg/pwndbg/pull/868/files#r549075931
https://github.com/pwndbg/pwndbg/pull/868/files#r549076078
* Testing the emulate cases.
It should be fail. I commented the emulation for the address 0x401000.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549111511
* Fixed the different start addresses in the assembler test.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549111511
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549075485
* Experimenting with the python location.
Commented the remove python binary and added some logs.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549076170
* Removed the commands about delete Python and link the Python3.
https://github.com/pwndbg/pwndbg/pull/868#discussion_r549076170
5 years ago
Disconnect3d
301012abf2
Py3k ( #817 )
...
* Py3k
* Dont run py2 on CI
* Don't launch futurize on CI
* Move to latest isort options
* Modernize imports (isort>=5)
* Fix removed jump dir
5 years ago
Disconnect3d
ccd8f76803
Remove travis ( #816 )
...
* Remove travis
* Remove travis
5 years ago
Arusekk
ce2266e95d
Add GitHub Actions support ( #809 )
5 years ago
WeSeekAfterKnowledge
016326f205
Update issue templates ( #776 )
6 years ago
Andrew Righter
3643ae43bb
Update CONTRIBUTING.md ( #593 )
...
Fixed broken relative link for developer notes.
7 years ago
Disconnect3d
2a9149b96b
Add developer notes ( #405 )
8 years ago
Disconnect3d
3b7fac68d3
Add CONTRIBUTING and ISSUE_TEMPLATE ( #238 )
9 years ago