From 9086f83ce87c964c3b09a4c8e22117a49c5863bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Ca=C3=B1uelo?= Date: Fri, 19 Jan 2024 15:31:02 +0100 Subject: [PATCH] api.models: make Fields of KbuildData Optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a workaround for a current error condition in staging Signed-off-by: Ricardo CaƱuelo --- kernelci/api/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernelci/api/models.py b/kernelci/api/models.py index 3b7e43788c..fb2d8a2f23 100644 --- a/kernelci/api/models.py +++ b/kernelci/api/models.py @@ -301,13 +301,14 @@ class KbuildData(BaseModel): kernel_revision: Revision = Field( description="Kernel repo revision data" ) - arch: str = Field( + # [TODO]: review which of these Fields should be optional or mandatory + arch: Optional[str] = Field( description="CPU architecture family" ) - defconfig: str = Field( + defconfig: Optional[str] = Field( description="Kernel defconfig identifier" ) - compiler: str = Field( + compiler: Optional[str] = Field( description="Compiler used for the build" ) fragments: Optional[List[str]] = Field(