X Tutup
Skip to content

Analytics add npm install + ci tracking#4955

Closed
IgorMinar wants to merge 4 commits intoangular:masterfrom
IgorMinar:analytics-npm-install
Closed

Analytics add npm install + ci tracking#4955
IgorMinar wants to merge 4 commits intoangular:masterfrom
IgorMinar:analytics-npm-install

Conversation

@IgorMinar
Copy link
Copy Markdown
Contributor

No description provided.

@IgorMinar IgorMinar force-pushed the analytics-npm-install branch 2 times, most recently from fff1f9d to 09834e5 Compare October 27, 2015 23:24
@IgorMinar
Copy link
Copy Markdown
Contributor Author

@alexeagle what do you think about this approach?

I track all start events as well as all end events, but for end events I also track duration.

@IgorMinar IgorMinar changed the title Analytics npm install Analytics add npm install + ci tracking Oct 27, 2015
package.json Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we move this to a .sh file? it's getting out of control

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.

I'd love to but that would make the scripts platform specific. the current approach is the only way to make this work across all platforms.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I figured as much. Here is another idea:

 "scripts": {
    "test": "npm run test1 && npm run test2",
    "test1": "echo test1",
    "test2": "echo test2"
  },

I tried that out and it appears to work fine. The scripts here will still be long but at least we could split into a few bits, maybe:

"postinstall": "node tools/analytics/build-analytics finish install npm-install-net; node tools/analytics/build-analytics start install npm-postinstall; npm run setup-env; npm run install-typings; node tools/analytics/build-analytics finish install npm-postinstall; node tools/analytics/build-analytics finish install npm-install",

It would also help with the nesting of the analytics instrumentation. Parent-level timespans can be in the 'master' command and children timespans go in the sub-commands

@alexeagle
Copy link
Copy Markdown
Contributor

Can you add me to the analytics account to see what we're gathering already?

@alexeagle
Copy link
Copy Markdown
Contributor

Nice, I'm sure we can do something with this data, even though it's hard to make Analytics UI show us what we need to know

@IgorMinar IgorMinar force-pushed the analytics-npm-install branch 2 times, most recently from a70b8eb to 4165b9d Compare October 29, 2015 12:31
Since the very first npm install is called while node_modules is empty, we need to ignore it, but we can track
the start timestamp and record the install even once the installation is completed.
VSCode recognizes jsconfig.json for es6 code in the same way as it recognizes tsconfig.json for ts code.
@IgorMinar IgorMinar added the action: merge The PR is ready for merge by the caretaker label Oct 29, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4955 on behalf of @IgorMinar to branch presubmit-IgorMinar-pr-4955.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Oct 29, 2015
@IgorMinar IgorMinar closed this in 6815ace Oct 29, 2015
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup