Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/lazy load tree details #776

Merged
merged 1 commit into from
Jan 17, 2025
Merged
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
2 changes: 1 addition & 1 deletion backend/kernelCI_app/typeModels/commonDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class TestSummary(BaseModel):
failed_platforms: List[str]
environment_compatible: Optional[Dict] = None
environment_misc: Optional[Dict] = None
platforms: Optional[Dict[str, TestStatusCount]]
platforms: Optional[Dict[str, TestStatusCount]] = None


class BuildSummary(BaseModel):
Expand Down
10 changes: 5 additions & 5 deletions backend/kernelCI_app/typeModels/treeDetails.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, List, Optional, Set
from typing import Dict, List, Optional

from kernelCI_app.typeModels.commonDetails import (
Summary,
Expand All @@ -22,15 +22,15 @@ class TestSummary(BaseModel):
configs: Dict[str, TestStatusCount]
issues: List[TestIssuesItem]
unknown_issues: int
enviroment_compatible: Dict[str, TestStatusCount]
enviroment_misc: Dict[str, TestStatusCount]
environment_compatible: Dict[str, TestStatusCount]
environment_misc: Dict[str, TestStatusCount]
fail_reasons: Dict[str, int]
failed_platforms: List[str]


class TreeSummary(Summary):
hardware: Set[str]
tree_url: str
hardware: Optional[List[str]]
tree_url: Optional[str]
git_commit_tags: Optional[List[str]]


Expand Down
8 changes: 4 additions & 4 deletions backend/kernelCI_app/views/treeDetailsSummaryView.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def get(self, request, commit_hash: str | None):
"configs": self.bootConfigs,
"issues": self.bootIssues,
"unknown_issues": self.failedBootsWithUnknownIssues,
"enviroment_compatible": self.bootEnvironmentCompatible,
"enviroment_misc": self.bootEnvironmentMisc,
"environment_compatible": self.bootEnvironmentCompatible,
"environment_misc": self.bootEnvironmentMisc,
"fail_reasons": self.bootFailReasons,
"failed_platforms": list(self.bootPlatformsFailing),
},
Expand All @@ -176,8 +176,8 @@ def get(self, request, commit_hash: str | None):
"configs": self.test_configs,
"issues": self.testIssues,
"unknown_issues": self.failedTestsWithUnknownIssues,
"enviroment_compatible": self.testEnvironmentCompatible,
"enviroment_misc": self.testEnvironmentMisc,
"environment_compatible": self.testEnvironmentCompatible,
"environment_misc": self.testEnvironmentMisc,
"fail_reasons": self.testFailReasons,
"failed_platforms": list(self.testPlatformsWithErrors),
},
Expand Down
8 changes: 4 additions & 4 deletions backend/kernelCI_app/views/treeDetailsView.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def get(self, request, commit_hash: str | None):
"configs": self.bootConfigs,
"issues": self.bootIssues,
"unknown_issues": self.failedBootsWithUnknownIssues,
"enviroment_compatible": self.bootEnvironmentCompatible,
"enviroment_misc": self.bootEnvironmentMisc,
"environment_compatible": self.bootEnvironmentCompatible,
"environment_misc": self.bootEnvironmentMisc,
"fail_reasons": self.bootFailReasons,
"failed_platforms": list(self.bootPlatformsFailing),
},
Expand All @@ -193,8 +193,8 @@ def get(self, request, commit_hash: str | None):
"configs": self.test_configs,
"issues": self.testIssues,
"unknown_issues": self.failedTestsWithUnknownIssues,
"enviroment_compatible": self.testEnvironmentCompatible,
"enviroment_misc": self.testEnvironmentMisc,
"environment_compatible": self.testEnvironmentCompatible,
"environment_misc": self.testEnvironmentMisc,
"fail_reasons": self.testFailReasons,
"failed_platforms": list(self.testPlatformsWithErrors),
},
Expand Down
Loading
Loading