Fix linter issues and refactor Tracer/SyscallEvent to dataclasses - #45
Merged
Conversation
Co-authored-by: Mic92 <96200+Mic92@users.noreply.github.com>
Owner
|
@copilot |
Copilot
AI
changed the title
[WIP] Test fork, vfork, execve, and posix_spawn
Fix linter issues in test_fork_exec_syscalls.py
Nov 25, 2025
Co-authored-by: Mic92 <96200+Mic92@users.noreply.github.com>
Contributor
Author
|
... Fixed both linter errors by adding
See commit |
Owner
@copilot instead of noqa fix the underlying issue. We can make tracer a dataclass. |
… for JSON formatting Co-authored-by: Mic92 <96200+Mic92@users.noreply.github.com>
…unction Co-authored-by: Mic92 <96200+Mic92@users.noreply.github.com>
Contributor
Author
Refactored both classes to use proper solutions instead of noqa comments:
See commit |
Copilot
AI
changed the title
Fix linter issues in test_fork_exec_syscalls.py
Fix linter issues and refactor Tracer/SyscallEvent to dataclasses
Nov 25, 2025
Owner
|
@copilot |
Co-authored-by: Mic92 <96200+Mic92@users.noreply.github.com>
Contributor
Author
|
... Fixed by introducing a See commit |
Mic92
marked this pull request as ready for review
November 25, 2025 18:34
Copilot stopped work on behalf of
Mic92 due to an error
November 25, 2025 18:35
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
# execve(path, argv, envp)to# Check arg count: path, argv, envp# posix_spawn(...)to# Check arg count: pid, path, file_actions, attrp, argv, envp_format_arg_for_jsonto use type dispatch patternTracerclass to dataclassSyscallEventclass to dataclass_format_symbolic_or_valuehelper for IntArg/FlagsArg formattingJsonArgTypetype alias for dispatch handlers✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.