Skip to content

add 'installSuccess' flag to telemetry, cache misses if npm install fails#12163

Merged
mhegazy merged 2 commits into
release-2.0.5from
vladima/cache-failures
Nov 11, 2016
Merged

add 'installSuccess' flag to telemetry, cache misses if npm install fails#12163
mhegazy merged 2 commits into
release-2.0.5from
vladima/cache-failures

Conversation

@vladima
Copy link
Copy Markdown
Contributor

@vladima vladima commented Nov 11, 2016

// cc @mhegazy, @billti

@mhegazy mhegazy merged commit 09f29ad into release-2.0.5 Nov 11, 2016
@mhegazy mhegazy deleted the vladima/cache-failures branch November 11, 2016 00:52
}
for (const typing of filteredTypings) {
this.missingTypingsSet[typing] = true;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's interesting that we mark all the packages as missing. I assume that the npm install command could fail because one package failed, but the rest installed correctly? Or does NPM install in an "all-or-nothing" fashion?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it is all or nothing

// treat any output on stdout as success
onRequestCompleted(!!stdout);
// treat absence of error as success
onRequestCompleted(!err);
Copy link
Copy Markdown
Member

@billti billti Nov 11, 2016

Choose a reason for hiding this comment

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

I assume we've confirmed that "npm install" returns a non-0 error code across platforms/versions if a package fails to install (and always returns 0 on success, not like "1" if it succeeded with extra info).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, that is correct

vladima added a commit that referenced this pull request Nov 14, 2016
…ails (#12163)

* add 'installSuccess' flag to telemetry, cache misses if npm install fails

* fix typo
vladima added a commit that referenced this pull request Nov 14, 2016
…ails (#12163) (#12240)

* add 'installSuccess' flag to telemetry, cache misses if npm install fails

* fix typo
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

4 participants