Skip to content

Commit 8943a46

Browse files
authored
Merge branch 'develop' into myrrc/duckdb-vortex-versoin
2 parents b8fc276 + b76e8fe commit 8943a46

106 files changed

Lines changed: 1176 additions & 877 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/samply/scripts/profile_inverted_tree.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import argparse
77
import collections
88
import re
9+
from collections.abc import Callable
910
from pathlib import Path
1011
from typing import Any
1112

@@ -36,7 +37,7 @@ def thread_matches(thread: dict[str, Any], thread_re: re.Pattern[str] | None, ti
3637
return bool(thread_re.search(str(thread.get("name", ""))) or thread_re.search(str(thread.get("tid", ""))))
3738

3839

39-
def frame_labels(thread: dict[str, Any], symbols: dict[str, str]) -> Any:
40+
def frame_labels(thread: dict[str, Any], symbols: dict[str, str]) -> Callable[[int], str]:
4041
cache: dict[int, str] = {}
4142

4243
def label(frame_index: int) -> str:

‎.agents/skills/samply/scripts/profile_summary.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ def load_profile(path: Path) -> dict[str, Any]:
2222
return json.load(f)
2323

2424

25-
def value_at(table: dict[str, Any], key: str, index: int, default: Any = None) -> Any:
25+
def value_at(table: dict[str, Any], key: str, index: int, default: object = None) -> object:
2626
values = table.get(key)
2727
if not isinstance(values, list) or index < 0 or index >= len(values):
2828
return default
2929
return values[index]
3030

3131

32-
def decode_string(thread: dict[str, Any], value: Any) -> str:
32+
def decode_string(thread: dict[str, Any], value: object) -> str:
3333
strings = thread.get("stringArray") or []
3434
if isinstance(value, int) and 0 <= value < len(strings):
3535
return str(strings[value])
@@ -38,7 +38,7 @@ def decode_string(thread: dict[str, Any], value: Any) -> str:
3838
return str(value)
3939

4040

41-
def resource_name(thread: dict[str, Any], resource_index: Any) -> str:
41+
def resource_name(thread: dict[str, Any], resource_index: object) -> str:
4242
if not isinstance(resource_index, int):
4343
return ""
4444
resource_table = thread.get("resourceTable") or {}
@@ -72,7 +72,7 @@ def frame_label(thread: dict[str, Any], frame_index: int, symbols: dict[str, str
7272
return label
7373

7474

75-
def expand_stack(thread: dict[str, Any], stack_index: Any) -> list[int]:
75+
def expand_stack(thread: dict[str, Any], stack_index: object) -> list[int]:
7676
if not isinstance(stack_index, int):
7777
return []
7878

‎.github/scripts/close_fixed_fuzzer_issues.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class FuzzerIssue:
3030
body: str
3131

3232

33-
def run(cmd: list[str], **kwargs) -> subprocess.CompletedProcess:
33+
def run(cmd: list[str], **kwargs: object) -> subprocess.CompletedProcess:
3434
"""Run a command, printing it for visibility."""
3535
print(f" $ {' '.join(cmd)}", flush=True)
3636
return subprocess.run(cmd, **kwargs)

‎.github/scripts/fuzz_report/cli.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _write_github_output(key: str, value: str) -> None:
4141
f.write(f"{key}={value}\n")
4242

4343

44-
def _run_gh(cmd: list[str], *, retries: int = 1, **kwargs) -> subprocess.CompletedProcess:
44+
def _run_gh(cmd: list[str], *, retries: int = 1, **kwargs: object) -> subprocess.CompletedProcess:
4545
"""Run a gh CLI command with logging and retry on failure.
4646
4747
Prints the command before execution and surfaces stderr on failure.

‎.github/scripts/fuzz_report/template.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
class _NotSetUndefined(Undefined):
1010
"""Jinja2 undefined that renders as '(not set)' and is falsy."""
1111

12-
def __str__(self):
12+
def __str__(self) -> str:
1313
return "(not set)"
1414

15-
def __bool__(self):
15+
def __bool__(self) -> bool:
1616
return False
1717

1818

‎.github/scripts/fuzz_report/tests/conftest.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22

33
import json
44
import tempfile
5+
from collections.abc import Iterator
56
from pathlib import Path
67

78
import pytest
89

910

1011
@pytest.fixture
11-
def temp_dir():
12+
def temp_dir() -> Iterator[Path]:
1213
"""Create a temporary directory."""
1314
with tempfile.TemporaryDirectory() as d:
1415
yield Path(d)
1516

1617

1718
@pytest.fixture
18-
def sample_log_content():
19+
def sample_log_content() -> str:
1920
"""Sample fuzzer log content with index out of bounds crash."""
2021
return """
2122
Running: cargo +nightly fuzz run file_io
@@ -37,7 +38,7 @@ def sample_log_content():
3738

3839

3940
@pytest.fixture
40-
def sample_issues():
41+
def sample_issues() -> list[dict[str, object]]:
4142
"""Sample existing issues for dedup testing."""
4243
return [
4344
{
@@ -56,7 +57,7 @@ def sample_issues():
5657

5758

5859
@pytest.fixture
59-
def issues_file(sample_issues, temp_dir):
60+
def issues_file(sample_issues, temp_dir) -> Path:
6061
"""Write sample issues to a temporary JSON file."""
6162
path = temp_dir / "issues.json"
6263
path.write_text(json.dumps(sample_issues))

0 commit comments

Comments
 (0)