Commit Graph

35 Commits

Author SHA1 Message Date
Emily Stark
e3c5743cec Simplify packageList in stats.js 2014-09-25 14:57:39 -07:00
ekatek
f7574429bd Stats should not run the constraint solver. 2014-09-11 16:41:59 -07:00
David Glasser
d6957bad00 All uniload.load for ddp should be the same
Otherwise the uniload cache doesn't work. This shaves a 365 ms off of
stats report for me (in a built release, which doesn't even use the
compiler!)
2014-09-08 18:45:30 -07:00
Sashko Stubailo
3189a364e9 Rename livedata to ddp, meteor test-packages passes 2014-08-28 12:53:34 -07:00
Emily Stark
28e2719ae5 Add new argument to another loginWithTokenOrOAuth call 2014-08-26 17:53:23 -07:00
Emily Stark
3c6c51acd1 Add extra check in stats retrieval in test 2014-08-21 18:31:46 -07:00
Emily Stark
1852e7b2c0 Update test for new package stats format 2014-08-21 18:23:38 -07:00
Emily Stark
81a0a0c7e2 Update to new package stats format 2014-08-21 18:23:38 -07:00
David Glasser
4ac638d60b oops, didn't mean to add blank line 2014-08-18 00:32:15 -07:00
David Glasser
558fb92651 state that package stat error is only in checkout 2014-08-18 00:31:12 -07:00
David Glasser
8a262adc97 Close stats server connections after using them
Notably, we were leaking a (DDP/https/TCP) connection for every restart
in 'meteor run'.
2014-08-16 16:07:28 -07:00
David Glasser
7d05640ea0 Make buildmessage fiber-aware
Port a simplified version of Meteor.EnvironmentVariable and
Meteor.bindEnvironment to fiber-helpers.js to deal with this.

Identify uses of fiberHelpers.inFiber and switch them to either
fiberHelpers.bindEnvironment (if the callback they are wrapping is
semantically "part of" the context that creates the callback) or
fiberHelpers.inBareFiber (otherwise).

Without this, concurrency was causing the wrong buildmessage message
sets and jobs to be active when builds yielded.
2014-08-04 19:03:05 -07:00
David Glasser
06a7dc90b5 Add many buildmessage.capture/assertInCapture
Moving towards a world where all things that might invoke buildmessage.error are
encouraged to be in a buildmessage.capture.

This commit is the answer to the question "how many small changes need to be
made to add buildmessage.assertInCapture to PackageCache.loadPackageAtPath?"

Next steps include:
 - Making catalog.resolveConstraints ALWAYS buildmessage.assertInCapture
   (not just when ignoreProjectDeps isn't passed)
 - Then changing resolveConstraints to complain using buildmessage
 - Removing the process.exit(1) in _ensureDepsUpToDate
 - Adding a more structured way to ensure that most commands
   call _ensureDepsUpToDate at an unsurprising location
2014-07-30 22:16:21 -07:00
Emily Stark
5918a51fef Don't send package stats on bundle.
Send them only on 'run' (which is likely to be running for a long time,
giving us plenty of time to send stats) and 'deploy' (which has to go
over the network anyway), though we don't wait for stats to be sent
before exiting from any commands.

Update stats self-test to run apps instead of bundling them. Add an
environment variable to print some output about when package stats have
been sent for the test to know when it's okay to stop the 'meteor run'
process.
2014-07-21 18:00:22 -07:00
Emily Stark
29f99597c9 Don't log login errors when sending package stats.
Exceptions during login happen fairly regularly (particularly for expired/revoked login tokens)
2014-06-27 17:49:06 -07:00
Emily Stark
8571143d8d Fix name of stats error logging function 2014-06-27 17:47:26 -07:00
Emily Stark
f761e898c8 Record session id on package stats 2014-06-25 11:12:12 -07:00
Emily Stark
e4ecda9fe8 Fix direct dependency reporting.
And test for it.
2014-06-25 11:12:12 -07:00
Emily Stark
4b58ba4d99 A steaming pile of hacks to get report-stats test passing. 2014-06-25 11:12:12 -07:00
Emily Stark
6f92768559 Add hostname/meteor release/os to package stats 2014-06-25 11:12:12 -07:00
Avital Oliver
600ae65304 Don't print errors on stream level failures, and a little reorg
In particular, this becomes especially important with packaging
since we ping the server with a DDP connection every time you
run an app. Multiple times actually.

So now there's no ECONN error messages printed
2014-06-16 16:33:07 -07:00
Avital Oliver
a9fb0072b7 When running from a checkout, print errors from package usage recording 2014-06-16 14:01:53 -07:00
David Glasser
471cc487e6 Merge branch 'packaging' into unified-version-files
Conflicts:
	tools/stats.js
2014-06-03 15:14:56 -07:00
David Glasser
3f5ea39a48 use project.project consistently in stats.js 2014-06-03 15:13:10 -07:00
Emily Stark
fe36e7e473 Add package stats opt-out 2014-05-29 08:23:29 -07:00
ekatek
9e04e2dc35 unified versions wip two 2014-05-23 14:07:48 -07:00
ekatek
6f3504a2d3 project refactoring, wip 1 2014-05-21 15:42:12 -07:00
Emily Stark
a9c944c4d9 Catch errors reporting package stats 2014-05-14 10:25:38 -07:00
Emily Stark
624ddcb655 Remove stats login XXX 2014-05-13 14:30:22 -07:00
Avital Oliver
6696e2751e Respond to Emily's code review comments 2014-05-12 16:45:49 -07:00
Avital Oliver
a51b4697ae Test that userId is recorded when sending package stats. 2014-05-12 16:24:36 -07:00
Emily Stark
2da8567df7 Add OAuth login to package stats reporting 2014-05-12 13:49:35 -07:00
Avital Oliver
14f6570d73 WIP: Failing test for reporting stats on 'meteor bundle' 2014-05-09 11:25:42 -07:00
Emily Stark
7dd6fa1478 Change package stats object to match server change 2014-05-08 12:35:45 -07:00
Emily Stark
7ec7cb4d97 WIP: record package usage stats 2014-05-07 11:27:25 -07:00