rbx.cp 0.5.57__py3-none-any.whl → 0.5.58__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/checkers.py CHANGED
@@ -72,10 +72,18 @@ def _check_pre_output(run_log: Optional[RunLog]) -> CheckerResult:
72
72
  return CheckerResult(outcome=Outcome.INTERNAL_ERROR)
73
73
 
74
74
  timelimit = pkg.timelimit_for_language(run_log.get_run_language())
75
+ is_tl_unbounded = (
76
+ run_log is not None
77
+ and run_log.metadata is not None
78
+ and run_log.metadata.timeLimit is None
79
+ )
80
+
75
81
  if (
76
82
  run_log.time is not None
83
+ and timelimit is not None
77
84
  and run_log.time * 1000 > timelimit * 2
78
85
  and not is_sanitized
86
+ and not is_tl_unbounded
79
87
  ):
80
88
  return CheckerResult(outcome=Outcome.TIME_LIMIT_EXCEEDED)
81
89
 
@@ -102,12 +110,18 @@ def _convert_tle(result: CheckerResult, run_log: Optional[RunLog]) -> CheckerRes
102
110
  and run_log.metadata is not None
103
111
  and run_log.metadata.is_sanitized
104
112
  )
113
+ is_tl_unbounded = (
114
+ run_log is not None
115
+ and run_log.metadata is not None
116
+ and run_log.metadata.timeLimit is None
117
+ )
105
118
  if (
106
119
  run_log is not None
107
120
  and run_log.time is not None
108
121
  and run_log.time * 1000
109
122
  >= pkg.timelimit_for_language(run_log.get_run_language())
110
123
  and not is_sanitized
124
+ and not is_tl_unbounded
111
125
  ):
112
126
  # Soft TLE.
113
127
  result.no_tle_outcome = result.outcome
rbx/box/cli.py CHANGED
@@ -318,7 +318,7 @@ async def _time_impl(check: bool, detailed: bool) -> Optional[int]:
318
318
  tracked_solutions=tracked_solutions,
319
319
  check=check,
320
320
  verification=VerificationLevel(verification),
321
- timelimit_override=600, # 10 minute time limit for estimation
321
+ timelimit_override=-1, # Unlimited for time limit estimation
322
322
  )
323
323
 
324
324
  console.console.print()
rbx/box/tasks.py CHANGED
@@ -30,7 +30,7 @@ def get_limits_for_language(
30
30
  isDoubleTL = verification.value >= VerificationLevel.FULL.value
31
31
  memory = pkg.memorylimit_for_language(lang)
32
32
  return Limits(
33
- time=time if use_timelimit else None,
33
+ time=time if use_timelimit and time > 0 else None,
34
34
  memory=memory,
35
35
  output=pkg.outputLimit,
36
36
  isDoubleTL=isDoubleTL,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rbx.cp
3
- Version: 0.5.57
3
+ Version: 0.5.58
4
4
  Summary:
5
5
  Author: Roberto Sales
6
6
  Requires-Python: >=3.9,<4.0
@@ -4,8 +4,8 @@ rbx/autoenum.py,sha256=cusv8ClXRlDVvhZ8eDrtYcL_2peXlHugAey_ht8roXk,12025
4
4
  rbx/box/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  rbx/box/builder.py,sha256=MDm2qqmhedAbhn3rWP6cDwbBsGhV6sz_2sg1zLkPDw0,3613
6
6
  rbx/box/cd.py,sha256=9a_SOnzoJBXxxffp4Wbf3UKXIwKuN3Hvj7K6SocALwE,1194
7
- rbx/box/checkers.py,sha256=EQq-NCz4JO3NowKKIs0iNdZgNBx71gG5PSxjw6fsQVg,12277
8
- rbx/box/cli.py,sha256=QkK_SVdtSk6qI5Q_HD29Eojurnynp-Q8m0aE6z5jQoY,26893
7
+ rbx/box/checkers.py,sha256=Gz4hW4RkyFz2MhBKE1IjwuIIbDYPHpjsGCbaM_l1rCc,12668
8
+ rbx/box/cli.py,sha256=QnErJWp6OmBX5iC3tsjeOTHqX58tTpBFQRun9Y9a5UA,26892
9
9
  rbx/box/code.py,sha256=hmA2EoGOr13AYzicHNsnU2SkFW-44l7kOdu8QRwTJlI,18848
10
10
  rbx/box/compile.py,sha256=OJLthDQ921w9vyoE6Gk1Df54i5RwtRJ2YG-8XEfefcs,2489
11
11
  rbx/box/conftest.py,sha256=sEmciXSeDC-wmrZ1JSxbsUenKNP_VWW32mrCun2pY3I,1070
@@ -65,7 +65,7 @@ rbx/box/stresses.py,sha256=k-m8Q2IVd5dap2fSDCbVqLj2LKqXzz6rIR8j9F8sLhY,12310
65
65
  rbx/box/stressing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  rbx/box/stressing/finder_parser.py,sha256=jXpYNa4FyugzmHi3r96Uv4rU1krRQJc5Ihr9jf1cvNo,11918
67
67
  rbx/box/stressing/generator_parser.py,sha256=oHZryjR3YohgaSO9WEirQ7b2e-98WgZStF0N99W4Thw,7380
68
- rbx/box/tasks.py,sha256=Z_jYkkyHxakQRQjKVQB3zAkXCjMGnfbFOzL4vUoDWvA,10130
68
+ rbx/box/tasks.py,sha256=OFezrh8tAZ-FQ70vsa7f-d34jwVwLAF1HMHhd94Mao0,10143
69
69
  rbx/box/testcase_extractors.py,sha256=J43eG7vpxc5nP_2yhrXJODkd4EYlV4WiYVbM6hzipY4,11944
70
70
  rbx/box/testcase_utils.py,sha256=31rvCpLi681R6Xm1WpG8HPDOkTtF0bRWa8IsmdWGLCk,7556
71
71
  rbx/box/testcases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -201,8 +201,8 @@ rbx/testcase.py,sha256=yKOq3CAJZ1YTmInvnoIs0u1iJnRj_X85XiWbLI-p9d8,1951
201
201
  rbx/testcase_rendering.py,sha256=nfmv6dSEqd4aR3TsaODwkKGK6AXty_DDKtWf_ejiQpI,2084
202
202
  rbx/testing_utils.py,sha256=x_PqD8Zd2PkN91NxVHUnSTs044-1WK5KKtttKQBXpFs,2083
203
203
  rbx/utils.py,sha256=SfR844_i0ebRDMkmS_w1YdZiWPc6h2RGADygewlWRbA,4845
204
- rbx_cp-0.5.57.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
205
- rbx_cp-0.5.57.dist-info/METADATA,sha256=xmcSCYiKN1HliI4X33CBcG0-1jlA0i5uZ9v0Je1JNDw,3604
206
- rbx_cp-0.5.57.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
207
- rbx_cp-0.5.57.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
208
- rbx_cp-0.5.57.dist-info/RECORD,,
204
+ rbx_cp-0.5.58.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
205
+ rbx_cp-0.5.58.dist-info/METADATA,sha256=i76ogXU9G6jTz56svxwBvVnGDE48SD8775WK_hytAVQ,3604
206
+ rbx_cp-0.5.58.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
207
+ rbx_cp-0.5.58.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
208
+ rbx_cp-0.5.58.dist-info/RECORD,,