Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,16 +1557,18 @@ def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> None:
)

if result.returncode != 0:
# Read traceback written by child, fall back to stderr
tb = ""
# Read traceback written by child; stderr is shown separately
tb = "(no traceback file written)"
if os.path.exists(tb_file) and os.path.getsize(tb_file) > 0:
with open(tb_file) as fp:
tb = fp.read()
else:
tb = result.stderr.decode()
stdout = result.stdout.decode(errors="replace")
stderr = result.stderr.decode(errors="replace")
raise RuntimeError(
f"Test subprocess '{f.__name__}' failed "
f"(exit code {result.returncode}):\n{tb}"
f"\n=== child stdout ===\n{stdout}"
f"\n=== child stderr ===\n{stderr}"
)
finally:
with contextlib.suppress(OSError):
Expand Down
1 change: 1 addition & 0 deletions vllm/compilation/compiler_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class AlwaysHitShapeEnv:

def __init__(self) -> None:
self.guards: list[Any] = []
self.var_to_hint_override: dict[Any, int] = {}

def evaluate_guards_expression(self, *args: Any, **kwargs: Any) -> Literal[True]:
return True
Expand Down
Loading