rbx.cp 0.5.27__py3-none-any.whl → 0.5.29__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rbx/box/builder.py +5 -5
- rbx/box/code.py +2 -0
- rbx/box/generators.py +403 -276
- rbx/box/main.py +10 -7
- rbx/box/retries.py +143 -0
- rbx/box/schema.py +15 -6
- rbx/box/setter_config.py +22 -0
- rbx/box/solutions.py +209 -101
- rbx/box/stresses.py +62 -33
- rbx/box/stressing/finder_parser.py +2 -2
- rbx/box/testcases.py +17 -1
- rbx/grading/steps.py +1 -0
- rbx/grading/steps_with_caching.py +5 -3
- rbx/resources/default_setter_config.mac.yml +8 -0
- rbx/resources/default_setter_config.yml +8 -0
- rbx/utils.py +8 -2
- {rbx_cp-0.5.27.dist-info → rbx_cp-0.5.29.dist-info}/METADATA +1 -4
- {rbx_cp-0.5.27.dist-info → rbx_cp-0.5.29.dist-info}/RECORD +21 -20
- {rbx_cp-0.5.27.dist-info → rbx_cp-0.5.29.dist-info}/LICENSE +0 -0
- {rbx_cp-0.5.27.dist-info → rbx_cp-0.5.29.dist-info}/WHEEL +0 -0
- {rbx_cp-0.5.27.dist-info → rbx_cp-0.5.29.dist-info}/entry_points.txt +0 -0
rbx/box/builder.py
CHANGED
@@ -49,11 +49,11 @@ def build(
|
|
49
49
|
infos = validate_testcases(s, groups=groups)
|
50
50
|
print_validation_report(infos)
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
52
|
+
if has_validation_errors(infos):
|
53
|
+
console.console.print(
|
54
|
+
'[error]Validation failed, check the report above.[/error]'
|
55
|
+
)
|
56
|
+
return False
|
57
57
|
|
58
58
|
with utils.StatusProgress(
|
59
59
|
'Building outputs for testcases...',
|
rbx/box/code.py
CHANGED
@@ -266,6 +266,7 @@ def run_item(
|
|
266
266
|
outputs: Optional[List[GradingFileOutput]] = None,
|
267
267
|
extra_args: Optional[str] = None,
|
268
268
|
extra_config: Optional[ExecutionConfig] = None,
|
269
|
+
retry_index: Optional[int] = None,
|
269
270
|
) -> Optional[RunLog]:
|
270
271
|
language = find_language_name(code)
|
271
272
|
execution_options = get_execution_config(language)
|
@@ -350,6 +351,7 @@ def run_item(
|
|
350
351
|
is_sanitized=sanitized,
|
351
352
|
timeLimit=sandbox_params.timeout,
|
352
353
|
memoryLimit=sandbox_params.address_space,
|
354
|
+
retryIndex=retry_index,
|
353
355
|
),
|
354
356
|
)
|
355
357
|
|