ci: extend ReleaseManifest model with logs
@@ -443,6 +443,7 @@ class OnlineReleaseManifest(ReleaseManifest):
s3_key: str
s3_bucket: str
test_result: typing.Optional[ReleaseTestResult]
+ logs: typing.Optional[str]
def stripped_manifest(self):
raw = dataclasses.asdict(self)
@@ -463,6 +464,11 @@ class OnlineReleaseManifest(ReleaseManifest):
new_dict['test_result'] = test_result
return OnlineReleaseManifest(**new_dict)
+ def with_logfile(self, blob_name: str):
+ new_dict = self.__dict__
+ new_dict['logs'] = blob_name
+ return OnlineReleaseManifest(**new_dict)
+
@dataclasses.dataclass(frozen=True)
class ReleaseManifestSet:
