Skip to content

Commit 9a78c62

Browse files
Pass version=5 to artifacts service.
1 parent 757d793 commit 9a78c62

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

dist/merge/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,10 +982,11 @@ class FinalizeArtifactRequest$Type extends runtime_5.MessageType {
982982
{ no: 6, name: "upload_id", kind: "scalar", T: 9 },
983983
{ no: 8, name: "run_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
984984
{ no: 9, name: "attempt_no", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
985+
{ no: 10, name: "version", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
985986
]);
986987
}
987988
create(value) {
988-
const message = { runId: "", attemptNo: 0, workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "", uploadId: "" };
989+
const message = { runId: "", attemptNo: 0, version: 0, workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "", uploadId: "" };
989990
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
990991
if (value !== undefined)
991992
(0, runtime_3.reflectionMergePartial)(this, message, value);
@@ -3668,7 +3669,7 @@ function uploadArtifact(name, files, rootDirectory, options) {
36683669
workflowRunBackendId: backendIds.workflowRunBackendId,
36693670
workflowJobRunBackendId: backendIds.workflowJobRunBackendId,
36703671
name,
3671-
version: 4
3672+
version: 5,
36723673
};
36733674
// if there is a retention period, add it to the request
36743675
const expiresAt = (0, retention_1.getExpiration)(options === null || options === void 0 ? void 0 : options.retentionDays);
@@ -3692,6 +3693,7 @@ function uploadArtifact(name, files, rootDirectory, options) {
36923693
size: uploadResult.uploadSize ? uploadResult.uploadSize.toString() : '0',
36933694
etag: (_a = uploadResult.uploadEtag) !== null && _a !== void 0 ? _a : '',
36943695
uploadId: createArtifactResp.uploadId,
3696+
version: 5,
36953697
};
36963698
if (uploadResult.sha256Hash) {
36973699
finalizeArtifactReq.hash = generated_1.StringValue.create({

dist/upload/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,10 +982,11 @@ class FinalizeArtifactRequest$Type extends runtime_5.MessageType {
982982
{ no: 6, name: "upload_id", kind: "scalar", T: 9 },
983983
{ no: 8, name: "run_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
984984
{ no: 9, name: "attempt_no", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
985+
{ no: 10, name: "version", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
985986
]);
986987
}
987988
create(value) {
988-
const message = { runId: "", attemptNo: 0, workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "", uploadId: "" };
989+
const message = { runId: "", attemptNo: 0, version: 0, workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "", uploadId: "" };
989990
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
990991
if (value !== undefined)
991992
(0, runtime_3.reflectionMergePartial)(this, message, value);
@@ -3668,7 +3669,7 @@ function uploadArtifact(name, files, rootDirectory, options) {
36683669
workflowRunBackendId: backendIds.workflowRunBackendId,
36693670
workflowJobRunBackendId: backendIds.workflowJobRunBackendId,
36703671
name,
3671-
version: 4
3672+
version: 5,
36723673
};
36733674
// if there is a retention period, add it to the request
36743675
const expiresAt = (0, retention_1.getExpiration)(options === null || options === void 0 ? void 0 : options.retentionDays);
@@ -3692,6 +3693,7 @@ function uploadArtifact(name, files, rootDirectory, options) {
36923693
size: uploadResult.uploadSize ? uploadResult.uploadSize.toString() : '0',
36933694
etag: (_a = uploadResult.uploadEtag) !== null && _a !== void 0 ? _a : '',
36943695
uploadId: createArtifactResp.uploadId,
3696+
version: 5,
36953697
};
36963698
if (uploadResult.sha256Hash) {
36973699
finalizeArtifactReq.hash = generated_1.StringValue.create({

0 commit comments

Comments
 (0)