Skip to content
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

Allow setting no modules in env #206

Merged
merged 7 commits into from
Nov 21, 2023
Merged

Conversation

alonre24
Copy link
Collaborator

@alonre24 alonre24 commented Nov 16, 2023

By sending an empty list, allow creating an env that contains no modules using env = Env(module=[]) (until today there was no such possibility) - this is meant for testing situations where we want to load the module during in test.
Also, allow using MODULE commands in redis by setting --enable-module-command yes whenever the new --enable-module-command flag is set, and add another --allow-unsafe flag that enables --enable-debug-command, --enable-protected-config, and --enable-module-command all together.

RLTest/redis_std.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@MeirShpilraien MeirShpilraien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Few comments.

poetry.lock Outdated Show resolved Hide resolved
RLTest/env.py Outdated Show resolved Hide resolved
RLTest/__main__.py Show resolved Hide resolved
RLTest/__main__.py Outdated Show resolved Hide resolved
RLTest/redis_std.py Outdated Show resolved Hide resolved
RLTest/env.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@MeirShpilraien MeirShpilraien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last comment, maybe I am missing something?

@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (885ff1f) 34.05% compared to head (6f490c5) 34.12%.

Files Patch % Lines
RLTest/__main__.py 0.00% 5 Missing ⚠️
RLTest/redis_std.py 66.66% 1 Missing ⚠️
RLTest/utils.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #206      +/-   ##
==========================================
+ Coverage   34.05%   34.12%   +0.06%     
==========================================
  Files          17       17              
  Lines        2393     2403      +10     
==========================================
+ Hits          815      820       +5     
- Misses       1578     1583       +5     
Flag Coverage Δ
unittests 34.12% <68.18%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alonre24 alonre24 merged commit 26528b8 into master Nov 21, 2023
23 checks passed
@alonre24 alonre24 deleted the allow_creating_env_without_modules branch November 21, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants