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

Sm/archiver-bug #768

Merged
merged 4 commits into from
Nov 11, 2022
Merged

Sm/archiver-bug #768

merged 4 commits into from
Nov 11, 2022

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Nov 11, 2022

What does this PR do?

don't await for archiver. See comments for explanation

What issues does this PR fix or reference?

@W-12050345@ forcedotcom/cli#1802


QA/Repro

use https://github.com/mshanemc/nestedFolders, then switch to the sdr-768 branch.

it's already got a mdapiOut folder with an email template which contains a very, very large attachment (as suggested by the customer on forcedotcom/cli#1802
create an org
yarn link SDR into plugin-source, then ../../plugin-source/bin/dev force:mdapi:deploy --deploydir mdapiOut --checkonly --json

you'll see the sfdx version of the command silently exit, but the version with this SDR branch works as expected.

@mshanemc mshanemc requested review from a team as code owners November 11, 2022 20:44
@mshanemc mshanemc requested a review from gbockus-sf November 11, 2022 20:44
@@ -408,7 +408,11 @@ export class MetadataApiDeploy extends MetadataTransfer<MetadataApiDeployStatus,
const zip = createArchive('zip', { zlib: { level: 9 } });
// anywhere not at the root level is fine
zip.directory(this.options.mdapiPath, 'zip');
await zip.finalize();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// the typings on it are misleading and unintended. More info https://github.com/archiverjs/node-archiver/issues/476
// If you await it, bad things happen, like the convert process exiting silently. https://github.com/forcedotcom/cli/issues/1791
// leave the void as it is
void zip.finalize();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a shame gifs don't work in github comments

Copy link
Contributor

@gbockus-sf gbockus-sf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RodEsp
Copy link
Contributor

RodEsp commented Nov 11, 2022

QA

I yarn linked this branch of SDR to main of of plugin-source locally and compared the output of that and [email protected].

Results look good ✔️

image

@RodEsp RodEsp merged commit 17d8dc6 into main Nov 11, 2022
@RodEsp RodEsp deleted the sm/archiver-bug branch November 11, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants