-
Notifications
You must be signed in to change notification settings - Fork 0
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
save/load dill test batches #9
Conversation
Warning Rate Limit Exceeded@PhilipDeegan has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 26 minutes and 29 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThis update introduces a series of enhancements and bug fixes across the software package. Key changes include the adjustment of subprocess handling in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files ignored due to path filters (1)
pyproject.toml
is excluded by:!**/*.toml
Files selected for processing (5)
- phlop/procs/runtimer.py (2 hunks)
- phlop/run/test_cases.py (3 hunks)
- phlop/testing/test_cases.py (4 hunks)
- setup.py (1 hunks)
- tests/all_concurrent.py (1 hunks)
Files skipped from review due to trivial changes (1)
- setup.py
Additional comments: 8
tests/all_concurrent.py (1)
- 26-26: The addition of the argument
1
to thepp.TestBatch
function call needs clarification. Ensure this aligns with the updatedTestBatch
class constructor and its intended use within the testing framework enhancements.phlop/procs/runtimer.py (2)
- 20-20: Changing the
shell
parameter fromTrue
toFalse
improves security by avoiding shell injection vulnerabilities. Ensure all command strings are correctly formatted as lists whenshell=False
.- 54-54: Adding
close_fds=True
is a good practice to prevent file descriptor leaks in subprocesses. Ensure this change does not interfere with intended file descriptor inheritance in your subprocesses.phlop/run/test_cases.py (2)
- 32-33: Adding
dump
andload
options to the CLI is aligned with the PR objectives. Ensure the help messages are clear and informative for users to understand the functionality of these options.Also applies to: 47-52
- 81-101: The
serialize
anddump_batches
functions implement serialization usingdill
andcodecs
. Ensure that the choice of serialization format ("hex"
) is appropriate for your use case and that serialized data is stored and handled securely, especially if it contains sensitive information.phlop/testing/test_cases.py (3)
- 12-12: Adding
typing.List
import is necessary for type annotations. Ensure it's used consistently throughout the file.- 38-41: Refactoring
TestBatch
to use thedataclass
decorator improves code readability and maintainability. Verify that all uses ofTestBatch
throughout the codebase have been updated to match the new structure.- 184-214: The introduction of
TestBatchesList
and thedeserialize
andextract_load
functions align with the PR objectives for handling test batch serialization and deserialization. Ensure that the deserialization process securely handles the input data, especially if it comes from untrusted sources.
Summary by CodeRabbit
RunTimer
class for improved process handling.TestBatchesList
class and attributes.TestBatch
class to usedataclass
decorator.