Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 10f5907

Browse files
committed
Merge master into noah/node-attributes
2 parents 632c726 + 2954a67 commit 10f5907

File tree

9 files changed

+27
-13
lines changed

9 files changed

+27
-13
lines changed

.github/workflows/test-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
with:
105105
install-k: true
106106
- name: 'Run integration tests'
107-
run: make cov-integration COV_ARGS='-n4 --timeout 500'
107+
run: make cov-integration COV_ARGS='-n4 --timeout 1500'
108108

109109
regression-tests:
110110
needs: code-quality-checks

deps/k_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.3.50
1+
6.3.58

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
project = 'pyk'
1010
author = 'Runtime Verification, Inc'
1111
copyright = '2024, Runtime Verification, Inc'
12-
version = '0.1.729'
13-
release = '0.1.729'
12+
version = '0.1.731'
13+
release = '0.1.731'
1414

1515
# -- General configuration ---------------------------------------------------
1616
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.729
1+
0.1.731

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pyk"
7-
version = "0.1.729"
7+
version = "0.1.731"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

src/pyk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
from typing import Final
77

88

9-
K_VERSION: Final = '6.3.50'
9+
K_VERSION: Final = '6.3.58'

src/pyk/testing/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
KProveTest,
1010
KRunTest,
1111
RuntimeTest,
12+
ServerType,
1213
)
1314
from ._profiler import Profiler

src/pyk/testing/_kompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class KoreClientTest(KompiledTest):
167167
KOMPILE_BACKEND: ClassVar = 'haskell'
168168
LLVM_ARGS: ClassVar[dict[str, Any]] = {}
169169

170-
CLIENT_TIMEOUT: ClassVar = 5000
170+
CLIENT_TIMEOUT: ClassVar = 10000
171171

172172
@pytest.fixture(scope='class', params=['legacy', 'booster'])
173173
def server_type(self, request: FixtureRequest, use_server: UseServer) -> ServerType:

src/tests/integration/kore/test_kore_client.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
CutPointResult,
3333
DepthBoundResult,
3434
DuplicateModuleError,
35+
GetModelResult,
3536
ImplicationError,
3637
ImpliesResult,
3738
InvalidModuleError,
@@ -47,7 +48,7 @@
4748
)
4849
from pyk.kore.syntax import And, App, Axiom, Bottom, Equals, EVar, Implies, Import, Module, Rewrites, Top
4950
from pyk.ktool.kompile import LLVMKompileType
50-
from pyk.testing import KoreClientTest
51+
from pyk.testing import KoreClientTest, ServerType
5152

5253
from ..utils import K_FILES
5354

@@ -56,7 +57,7 @@
5657
from pathlib import Path
5758
from typing import Any, Final
5859

59-
from pyk.kore.rpc import BoosterServerArgs, ExecuteResult, GetModelResult, KoreClient
60+
from pyk.kore.rpc import BoosterServerArgs, ExecuteResult, KoreClient
6061
from pyk.kore.syntax import Pattern
6162
from pyk.testing import Kompiler
6263

@@ -149,7 +150,15 @@ def state(n: int) -> State:
149150

150151
GET_MODEL_TEST_DATA: Final = (
151152
('unkown-config', term(0), None, UnknownResult()),
152-
('unknown-trivial', int_top, None, UnknownResult()),
153+
(
154+
'sat-trivial',
155+
int_top,
156+
None,
157+
{
158+
ServerType.LEGACY: UnknownResult(),
159+
ServerType.BOOSTER: SatResult(None),
160+
},
161+
),
153162
('unsat-trivial', int_bottom, None, UnsatResult()),
154163
('unsat-ineq', Equals(BOOL, INT, TRUE, and_bool(gt_int(x, int_dv(1)), le_int(x, int_dv(0)))), None, UnsatResult()),
155164
('unsat-eq', Equals(BOOL, INT, TRUE, and_bool(eq_int(x, int_dv(0)), eq_int(x, int_dv(1)))), None, UnsatResult()),
@@ -345,13 +354,17 @@ def test_get_model(
345354
test_id: str,
346355
pattern: Pattern,
347356
module_name: str | None,
348-
expected: GetModelResult,
357+
server_type: ServerType,
358+
expected: GetModelResult | Mapping[ServerType, GetModelResult],
349359
) -> None:
350360
# When
351361
actual = kore_client.get_model(pattern, module_name)
352362

353363
# Then
354-
assert actual == expected
364+
if isinstance(expected, GetModelResult):
365+
assert actual == expected
366+
else:
367+
assert actual == expected[server_type]
355368

356369
@pytest.mark.parametrize(
357370
'test_id,module',

0 commit comments

Comments
 (0)