Upload nightly test metrics to GH artifacts (#17696)

This commit is contained in:
Kangyan-Zhou
2026-01-25 14:35:14 -08:00
committed by GitHub
parent 97a36a72b7
commit 344eeaee90
8 changed files with 450 additions and 6 deletions
+6 -1
View File
@@ -31,6 +31,7 @@ class BenchmarkResult(BaseModel):
acc_length: Optional[float] = None
profile_link_extend: Optional[str] = None
profile_link_decode: Optional[str] = None
server_args: Optional[List[str]] = None
@staticmethod
def help_str() -> str:
@@ -122,7 +123,10 @@ def generate_markdown_report(
def save_results_as_pydantic_models(
results: List, pydantic_result_filename: str, model_path: str
results: List,
pydantic_result_filename: str,
model_path: str,
server_args: Optional[List[str]] = None,
):
"""Save benchmark results as JSON using Pydantic models."""
json_results = []
@@ -167,6 +171,7 @@ def save_results_as_pydantic_models(
acc_length=res.acc_length,
profile_link_extend=profile_link_extend,
profile_link_decode=profile_link_decode,
server_args=server_args,
)
json_results.append(benchmark_result.model_dump())