-
Notifications
You must be signed in to change notification settings - Fork 3
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
Document how to use in github actions #2
Labels
documentation
Improvements or additions to documentation
Comments
I get this error also in my local machine without Github Actions.
|
You need indeed to do the step recommended on the error message:
See
|
Czaki
added a commit
to napari/napari
that referenced
this issue
Oct 20, 2023
# Description We add `pytest-pystack` in #6310 but do not fully check example so it ends with: ``` The specified process cannot be traced. This could be because the tracer has insufficient privileges (the required capability is CAP_SYS_PTRACE). Unprivileged processes cannot trace processes that they cannot send signals to or those running set-user-ID/set-group-ID programs, for security reasons. Alternatively, the process may already be being traced. If your uid matches the uid of the target process you want to analyze, you can do one of the following to get 'ptrace' scope permissions: * If you are running inside a Docker container, you need to make sure you start the container using the '--cap-add=SYS_PTRACE' or '--privileged' command line arguments. Notice that this may not be enough if you are not running as 'root' inside the Docker container as you may need to disable hardening (see next points). * Try running again with elevated permissions by running 'sudo -E !!'. * You can disable kernel hardening for the current session temporarily (until a reboot happens) by running 'echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope'. ``` https://github.com/napari/napari/actions/runs/6477123186/job/17587080688?pr=6331#step:11:149 So I added a missed line to the workflow. bloomberg/pytest-pystack#2 Co-authored-by: Lorenzo Gaifas <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Users might get the following error in CI:
Rather than waiting for them to get the error to notice it, document that when running in github actions they should have a step that runs
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
.We can add this in a section of the README file.
The text was updated successfully, but these errors were encountered: