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

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

Merged
merged 2 commits into from
Nov 11, 2016

Conversation

vladima
Copy link
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
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
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
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
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.

None yet

4 participants