Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

fix: Clean up downloaded artifact after rollback #289

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

tbarlow12
Copy link
Contributor

Remove the downloaded artifact from .serverless after deployed to service

Resolves #287

@tbarlow12 tbarlow12 force-pushed the tabarlow/clean-up-rollback branch from 713b7fc to 8fff46f Compare August 30, 2019 12:32
@@ -98,6 +99,9 @@ export class RollbackService extends BaseService {
const functionAppService = new FunctionAppService(this.serverless, this.options);
const functionApp = await functionAppService.get();
await functionAppService.uploadZippedArfifactToFunctionApp(functionApp, artifactPath);
if (fs.existsSync(artifactPath)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't we already cleaning up this folder before deployment? Seems like we should maybe keep this around post deployment so developers can open up the zip more easily to inspect its contents??

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind - this is after a rollback - not deployment.

Copy link
Contributor

Choose a reason for hiding this comment

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

still think it's good to keep around even for rollback. In case a rollback does not behave as expected, user can verify the deployed content

Copy link
Contributor

@wbreza wbreza left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -98,6 +99,9 @@ export class RollbackService extends BaseService {
const functionAppService = new FunctionAppService(this.serverless, this.options);
const functionApp = await functionAppService.get();
await functionAppService.uploadZippedArfifactToFunctionApp(functionApp, artifactPath);
if (fs.existsSync(artifactPath)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind - this is after a rollback - not deployment.

@tbarlow12 tbarlow12 merged commit b55b637 into dev Aug 30, 2019
@tbarlow12 tbarlow12 deleted the tabarlow/clean-up-rollback branch August 30, 2019 21:02
tbarlow12 added a commit that referenced this pull request Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants