-
Notifications
You must be signed in to change notification settings - Fork 2
Add fusil fuzzer to CI #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dpdani
wants to merge
15
commits into
main
Choose a base branch
from
feature/fusil
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d2c663b
Add fusil fuzzer to CI
dpdani 2c26905
fixes
dpdani 16a37fa
fixes
dpdani 85642ed
fixes
dpdani 9b77bc5
fixes
dpdani 4e4dd4d
fixes
dpdani 16e23de
fixes
dpdani 654f4a9
fixes
dpdani 72733f9
fixes
dpdani 4624652
fixes
dpdani c18c918
fixes
dpdani 270468d
fixes
dpdani afc3633
fixes
dpdani 704b7cc
add `--modules=cereggii`
dpdani f2b3ced
modify PATH for cmake
dpdani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,64 @@ | ||
| name: fusil.yml | ||
| on: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| fuzz: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: | ||
| - 3.14t | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install pyenv | ||
| run: | | ||
| export PYENV_ROOT="./.pyenv" | ||
| export PYENV_BIN="$PYENV_ROOT/bin" | ||
| export PYENV_SHIMS="$PYENV_ROOT/shims" | ||
| # export PYENV_CACHE="$PYENV_ROOT/cache" | ||
| git clone --single-branch --depth=1 --no-tags \ | ||
| https://github.com/pyenv/pyenv.git "./.pyenv" | ||
| # mkdir -p "$PYENV_CACHE" | ||
| echo "PYENV_ROOT=$PYENV_ROOT" >> $GITHUB_ENV | ||
| echo "PYENV_BIN=$PYENV_BIN" >> $GITHUB_ENV | ||
| echo "PYENV_SHIMS=$PYENV_SHIMS" >> $GITHUB_ENV | ||
| # echo "PYENV_CACHE=$PYENV_CACHE" >> $GITHUB_ENV | ||
| - name: build python with sanitizers | ||
| run: | | ||
| export CONFIGURE_OPTS="--disable-gil --with-pydebug --with-address-sanitizer --without-pymalloc --without-system-libmpdec --config-cache" | ||
| ./.pyenv/bin/pyenv install --verbose --keep ${{ matrix.python-version }} | ||
| ./.pyenv/bin/pyenv global ${{ matrix.python-version }} | ||
| export CUSTOM_PYTHON="$(./.pyenv/bin/pyenv which python)" | ||
| echo "CUSTOM_PYTHON=$CUSTOM_PYTHON" >> $GITHUB_ENV | ||
| - name: install dependencies | ||
| run: | | ||
| # CMake must be able to find the pyenv python installation | ||
| # before the system's python. | ||
| export PATH="$(dirname $CUSTOM_PYTHON)":$PATH | ||
| "$CUSTOM_PYTHON" -m pip install \ | ||
| python-ptrace \ | ||
| git+https://github.com/devdanzin/fusil.git \ | ||
| ".[dev]" | ||
| - name: prepare runs directory | ||
| run: | | ||
| mkdir -p -m 777 ./fusil/runs | ||
| - name: run fusil | ||
| run: | | ||
| export ASAN_OPTIONS=detect_leaks=0 | ||
| export PYTHON_GIL=0 | ||
| bash -c '"$CUSTOM_PYTHON" -m fusil-python-threaded \ | ||
| --python="$CUSTOM_PYTHON" \ | ||
| --force-unsafe \ | ||
| -v \ | ||
| --success=200 \ | ||
| --fast \ | ||
| --test-private \ | ||
| --packages=cereggii \ | ||
| --modules=cereggii \ | ||
| --no-async \ | ||
| --no-numpy \ | ||
| --no-tstrings' | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ on: | |
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| # pull_request: | ||
|
|
||
| jobs: | ||
| lint: | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ on: | |
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| # pull_request: | ||
|
|
||
| jobs: | ||
| test: | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ on: | |
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| # pull_request: | ||
|
|
||
| jobs: | ||
| tsan: | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I forgot to update you on the command that actually worked: we need
--modules=cereggiitoo, otherwise fusil will look for all modules in stdlib besides cereggii.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did I do it right? both are needed, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's right.