[Config] msgspec.Struct for the config tier (#38753)

This commit is contained in:
Cheng Wan
2026-09-09 19:41:19 -07:00
committed by GitHub
parent 106cc561f9
commit f1a512c51c
44 changed files with 328 additions and 210 deletions
@@ -21,11 +21,13 @@ Current coverage:
"""
import asyncio
import dataclasses
import json
import unittest
from types import SimpleNamespace
import msgspec
import msgspec.structs
from sglang.srt.arg_groups.validation_hook import check_load_publish_args
from sglang.srt.entrypoints import http_server
from sglang.srt.lora.lora_registry import LoRARef
@@ -457,7 +459,7 @@ class TestServerInfoExistingFieldsPreserved(CustomTestCase):
info = _call_server_info_with(args)
for field in dataclasses.fields(ServerArgs):
for field in msgspec.structs.fields(ServerArgs):
self.assertIn(
field.name,
info,