Commit Graph

1840 Commits

Author SHA1 Message Date
Matthew Arbesfeld
55fe8a8aae Fix hot code push client-side reloads.
We were overwriting the server directory when a client-side file changed,
which made all process calls fail, such as process.cwd() and fs.*. We
abstracted out some of the builder code so that only the client targets
are "rebuilt" when a client side file changes.
2014-07-28 17:12:26 -07:00
ekatek
3aff2199cc fixing old cli test 2014-07-28 16:09:19 -07:00
David Glasser
5b69c7c25b fix report-stats test from release 2014-07-28 16:07:42 -07:00
David Glasser
b7fa7e2452 don't run constraint-solver test from release 2014-07-28 16:07:41 -07:00
ekatek
0e74bdf769 help text for meteor update 2014-07-28 15:07:38 -07:00
Emily Stark
9e65038d08 Update "old cli test" for new 'meteor remove' output 2014-07-28 10:46:15 -07:00
David Glasser
6bb4b4de7b Help for 'meteor publish-for-arch' 2014-07-25 16:10:08 -07:00
ekatek
a58f2c3bb2 mark some mroe tests as net with comments; first pass on making it ... exit, instead of craash in ensureDeps. Next up, maybe it can do something better than process.exit 2014-07-25 15:34:54 -07:00
ekatek
c622fb4072 label online tests as online 2014-07-25 14:40:43 -07:00
David Glasser
4a231a4c76 improved error handling around bad versions 2014-07-25 14:39:30 -07:00
David Glasser
59d38b28bb minor cleanup 2014-07-25 14:12:21 -07:00
Avital Oliver
a8e372221d Correct comment 2014-07-24 23:35:01 -07:00
ekatek
83ac27f9c4 A separate data.json for each package server 2014-07-24 18:36:15 -07:00
ekatek
af8c532411 Fix add-package test with new output. 2014-07-24 18:35:05 -07:00
David Glasser
4428f2b06d sync tests passes 2014-07-24 17:12:14 -07:00
David Glasser
020824d828 minor commands tweaks 2014-07-24 16:52:23 -07:00
David Glasser
a7cbc3bd87 minor remove improvements 2014-07-24 16:49:12 -07:00
David Glasser
ab7e9366e1 minor 'add' cleanup 2014-07-24 16:43:35 -07:00
David Glasser
7aec7d3801 avoid saying 'version constraint null' 2014-07-24 16:42:07 -07:00
David Glasser
21b8e452a7 get rid of skipPackages
- in add, we actually do want to know the added version
- in remove, there's a distinction between truly dropping the package
  and just dropping the top level constraint
2014-07-24 16:41:35 -07:00
David Glasser
ea7afca05f use skipPackages consistently 2014-07-24 16:31:59 -07:00
David Glasser
1591e076e9 spell onDiskPackages consistently
(Have not checked to see that the feature actually works)
2014-07-24 16:31:38 -07:00
David Glasser
6850b679e9 fix bug in 'meteor add x@=1.0.0'
Used to print a "avoid conflicting dependencies" message. Now doesn't.

Start moving some uses of splitConstraint to parseConstraint
2014-07-24 16:21:25 -07:00
David Glasser
e9d7969da8 various minor error cleanups 2014-07-24 15:47:24 -07:00
David Glasser
5ec341c276 different way to show usage 2014-07-24 15:26:55 -07:00
David Glasser
74dea7e1ba tiny refactor 2014-07-24 15:26:55 -07:00
David Glasser
a548efe175 ignore unknown packages in .meteor/versions
Hopefully this isn't ignoring real error cases. The whole
previousSolution data-rewriting hack probably needs to be fixed
anyway. But this seems to work?
2014-07-24 15:26:55 -07:00
ekatek
4205a06ba2 add exact constraints 2014-07-24 15:13:47 -07:00
ekatek
335dc4a312 mark tests as online, refresh catalog to the right server after self-test 2014-07-24 15:13:46 -07:00
Avital Oliver
9afd6f4cf9 A first pass on some package command error messages 2014-07-24 14:02:47 -07:00
Avital Oliver
a6db03f131 Unbreak hot code push test by eliminating references to non-existent spacebars-common package 2014-07-23 20:27:35 -07:00
Avital Oliver
a533f1ed5d When calling versionsFrom with no track, default to METEOR-CORE
Also a small restructuring I thought I'd need for this test, but ended
up not needing. But it's nice anyways.
2014-07-23 20:25:50 -07:00
Emily Stark
ff7a2fba92 Add catalog.official._refreshFutures back in.
This allows `catalog.official.refresh` to be called during another
refresh that has yielded.

`catalog.official.refresh` still cannot be called re-entrantly, so
`recordOrRefresh` checks if a refresh is in progress before starting a
new one.
2014-07-23 17:54:16 -07:00
Emily Stark
5e94e9e2d3 Force-refresh catalog.complete from catalog.official.refresh.
Of course, if we were to simply set forceRefresh to true from where
catalog.official was calling catalog.complete.refresh, then we would
have looped inifinitely: initializing the catalog with a `versionsFrom`
field pointing to an unknown release would call
`catalog.official.refresh`, which would call `catalog.complete.refresh({
forceRefresh: true })`, which would call `catalog.official.refresh`
because the unknown release is still not found, and so on.

`catalog.official.refresh` doesn't do any of its actual work when called
reentrantly or when called during a `catalog.official.refresh` yield, so
it makes sense for `catalog.complete.refresh` to be part of that work;
in other words, `catalog.complete.refresh` shouldn't be called if
`catalog.official.refresh` is called reentrantly or during a yield, just
as we don't hit the server again under such conditions. And this also
prevents the infinite loop.

For reasons I don't fully understand, putting the
`catalog.complete.refresh` call before the futures are returned didn't
quite work. Turns out the refreshFutures aren't actually used anyway
(Future wasn't imported from this file; I have a sneaking suspicion the
refreshFutures thing hasn't actually been tested) so this is basically
dead code, and I replaced it with just making `catalog.official.refresh`
return immediately when called re-entrantly or during a yield.

Now we're successfully checking with the server before declaring that a
package/release doesn't exist, and not infinite looping if the
package/release really doesn't exist even on the server.
2014-07-23 17:54:16 -07:00
Emily Stark
bc7b92a643 Experiment: remove unknownItem flag
Simplifies loading unknown packages/releases.
2014-07-23 17:54:16 -07:00
David Glasser
d0a81689f3 Use catalog.complete instead of catalog.official
Specifically, in cases (like "load the most recent release we know
about") where we don't always want to incur a sync RPC.

Apparently, there is literally no way to get data from catalog.official
without a sync RPC occuring.

This speeds up 'meteor --version' on built releases by a factor of 10
2014-07-23 17:51:00 -07:00
David Glasser
3dcd7e9066 check config file for version before using it 2014-07-23 17:51:00 -07:00
ekatek
c7a1fdfead slight improvement on the previous hack 2014-07-23 17:42:27 -07:00
ekatek
5ff34557a1 calculate versions earlier to be wary of race conditions 2014-07-23 16:36:18 -07:00
Avital Oliver
67c47a9086 A test now correctly uses a non-existent but correctly named release 2014-07-23 13:56:37 -07:00
Emily Stark
1e83c64183 Add test for 61bf03c (get all pages back from updateServerPackageData) 2014-07-23 12:40:51 -07:00
Emily Stark
0f0c7b1709 Add some expectExits to "sync local catalog" test 2014-07-23 00:04:17 -07:00
Emily Stark
61bf03c8d3 Fix updateServerPackageData to return all data, not just the first page 2014-07-23 00:04:04 -07:00
ekatek
1e1f4b2e8a catalogs talk to each other 2014-07-22 18:40:25 -07:00
Emily Stark
cbc12117a6 Fix pipe/grep for missing package in old cli test 2014-07-22 17:37:53 -07:00
Emily Stark
c1a5443ba7 Two small steps towards getting "old cli tests (warehouse)" to run 2014-07-22 17:14:02 -07:00
David Glasser
b863106075 Remove redundant resolver construction
refresh just did this.
2014-07-22 16:30:13 -07:00
Emily Stark
eb70a7c299 Make old cli test pass.
We might want to revisit this after polishing error messages.

Still doesn't pass with METEOR_WAREHOUSE_DIR set from self-test.
2014-07-22 14:24:17 -07:00
Matthew Arbesfeld
fa97fc74b2 Fix run --once test. 2014-07-21 20:35:58 -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