From 62aa05ab93991b2f550b62c0c8d09b2295a7f20e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 14 Dec 2021 12:39:29 +0100 Subject: [PATCH] chore(build): skip attempted PGP signing for now --- packages/build/src/run-draft.spec.ts | 8 +++++--- packages/build/src/run-draft.ts | 6 +++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/build/src/run-draft.spec.ts b/packages/build/src/run-draft.spec.ts index fb8a24dd7b..9d9a213652 100644 --- a/packages/build/src/run-draft.spec.ts +++ b/packages/build/src/run-draft.spec.ts @@ -68,15 +68,17 @@ describe('draft', () => { }); it('asks the notary service to sign files', () => { - expect(notarizeArtifact).to.have.been.callCount(ALL_BUILD_VARIANTS.length); + // expect(notarizeArtifact).to.have.been.callCount(ALL_BUILD_VARIANTS.length); }); it('uploads artifacts to download center', () => { - expect(uploadArtifactToDownloadCenter).to.have.been.callCount(ALL_BUILD_VARIANTS.length * 2); + expect(uploadArtifactToDownloadCenter).to.have.been.callCount(ALL_BUILD_VARIANTS.length); + // expect(uploadArtifactToDownloadCenter).to.have.been.callCount(ALL_BUILD_VARIANTS.length * 2); }); it('uploads the artifacts to the github release', () => { - expect(uploadReleaseAsset).to.have.been.callCount(ALL_BUILD_VARIANTS.length * 2); + expect(uploadReleaseAsset).to.have.been.callCount(ALL_BUILD_VARIANTS.length); + // expect(uploadReleaseAsset).to.have.been.callCount(ALL_BUILD_VARIANTS.length * 2); }); }); diff --git a/packages/build/src/run-draft.ts b/packages/build/src/run-draft.ts index 15a339f267..dcb731828e 100644 --- a/packages/build/src/run-draft.ts +++ b/packages/build/src/run-draft.ts @@ -44,6 +44,8 @@ export async function runDraft( tmpDir ); + /* + // pending https://jira.mongodb.org/browse/BUILD-14385 await notarizeArtifact( tarballFile.path, { @@ -53,10 +55,12 @@ export async function runDraft( } ); const signatureFile = tarballFile.path + '.sig'; + */ + void notarizeArtifact; await Promise.all([ [ downloadedArtifact, tarballFile.contentType ], - [ signatureFile, 'application/pgp-signature' ] + // [ signatureFile, 'application/pgp-signature' ] ].flatMap(([ path, contentType ]) => [ uploadToDownloadCenter( path,