-
Notifications
You must be signed in to change notification settings - Fork 10
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
set of changes related to new heldout-test feature (#300) #301
base: mpt_dj
Are you sure you want to change the base?
Conversation
pdreiter
commented
Apr 2, 2023
- tested with and without heldout-test content
- IMPACT: Changes the TestOutcome, s.t. these two cases: (without heldout tests) and (failing heldout tests) are indiscernible
- tested with and without heldout-test content - IMPACT: Changes the TestOutcome, s.t. these two cases: (without heldout tests) and (failing heldout tests) are indiscernible
This is relevant to butrs-red-team-evaluation/issues/54 |
if not self.__run_heldout_tests: | ||
heldout = self.heldout_tests | ||
valid_heldout = True if len(heldout)>0 else False | ||
|
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.
Definition of valid_heldout can be simplified:
valid_heldout = bool(heldout)
Also, can we also get rid of 3/4 of the new lines to improve readability?
@@ -70,6 +72,9 @@ def __init__(self, | |||
# FIXME used the precomputed test ordering for now | |||
self.__test_ordering: Sequence[Test] = list(self.__problem.tests) | |||
|
|||
self.__heldout_tests: Sequence[Test] = list(self.__problem.heldout_tests) | |||
|
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.
very minor quibble: remove 1/2 whitespace lines to improve readability
@@ -138,12 +143,16 @@ def _filter_redundant_tests(self, | |||
def _run_test(self, | |||
container: ProgramContainer, | |||
candidate: Candidate, | |||
test: Test | |||
test: Test, | |||
heldout: bool = False |
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.
minor: can we make heldout
a keyword-only argument to improve readability at caller sites?
test: Test,
*,
heldout: bool = False,
Based on conversation with @ChrisTimperley - an alternative strategy would be to use darjeeling as an interface to the docker container to evaluate patches. |
I'll be retooling this approach to reduce the impact to existing darjeeling. |