Commit Graph

479 Commits

Author SHA1 Message Date
Justin SB
5e2cb2bfc5 Remove 'random' pauses in HCP tests; insert the one which works
Still better to fix this properly, but this gives us a single starting point
2014-10-04 17:16:03 -07:00
Sashko Stubailo
94074d5972 Very carefully handle all of the different cases for servers and ports
1. mobile-server passed
2. running on device
3. running on simulator
2014-10-03 21:06:22 -07:00
Emily Stark
b4a0df4e7d Add test for --mobile-server propagating through hot code pushes 2014-10-03 15:46:43 -07:00
Emily Stark
3069788e01 Rework --mobile-server defaults.
* --port now requires a port ('meteor run --port example.com' isn't valid).
* --mobile-server defaults to your detected IP address and the port from
    --port.
* If you provide a value for --mobile-server, we default to http:// as
  the protocol. A host is required for --mobile-server if you don't omit
  the option entirely. Similar for the --server argument to 'meteor
  build'.

This commit includes the 'netroute' npm module as a core package (which
has binary dependencies) for IP detection. It would be nice to put it in
packages/non-core, but I think it has to be a core package in order to
uniload it.
2014-10-03 12:11:44 -07:00
Sashko Stubailo
07987a009d Merge branch 'devel' into platform-list
Conflicts:
	tools/commands-cordova.js
	tools/tests/cordova-platforms.js
2014-09-30 19:02:42 -07:00
ekatek
c67de0830a merging from sqllite 2014-09-30 16:29:41 -07:00
ekatek
69df87ce7d mark tests that publish as checkout only
When we publish things to the test packaging server, we use the versionsFrom
argument that is very difficult to set up right to actually work. Most of the time
we don't really set that up and just agree that those tests should fail. As such, I
am going to mark most of those tests as checkout-only for now (we still usually check
that we can publish manually anyway as part of poking at the release in QA, and there is
not a lot of reason that I can think of why publishing from release would be different than
pubishing from checkout. So, marking these as checkout-only until we can get a better
testing infrastructure for this in place.
2014-09-30 12:22:09 -07:00
Sashko Stubailo
cd55ca4b1c Bump version number for release 2014-09-30 11:51:16 -07:00
ekatek
f4563457e8 fix the update server package data unit test
Rewrote parts of the update server package data unit test to compare a pre-sync and a
post-sync catalog, rather than the output of package client's attempts to contact the server.
This is because in the new world, there is no accurate output, and instead, the function
modifies the catalog in place. Additionally, removed the old function that read from
data.json, since it was not used anymore, and cleaned up some comments and return values in
package-client. We no longer claim to return the contents of data.json, instead we return
an object that signals if we should reset the entire catalog, and/or if our connection to the
server flat-out failed. I am not sure that this is the best abstraction for this piece of code
(why does package-client modify the catalog, but not reset it, for example? Since resetting
has consequences, in the ideal world, the package-client would only have the logic to get data
from the server and it would be up to the catalog to figure out how to insert it into sql lite,
I think, maybe. Regardless, now is not the time to do that refactoring.)

The test is a little odd in the following ways. First, comparing every record ever published is
something that is already significantly harder than it used to be, and will get only harder from
there. (However, the test claims to check that no data has been erased, so we need to check it).
We check the vague existence of most records, on the theory that it is unlikely that
we only got a portion of the record in, rather than the entire thing. Second, it doesn't check the
actual contents on disk, because I wasn't sure about writing another interface to sqllite this
late in the game. There are some ways to get around this -- we could be sneaky and submit a non-blank
syncToken in some way (faking a previous sync), so we only get the packages touched since (time X).
Usually, that might violate some internal consistency, but we only care about the contents at this stage.
Second, we should probably write some method on the catalogs to compare themselves instead of making
and querying a copy.For now, though, I think that this is sufficiently expedient.

Also, the test publishes 5 packages. That's a lot of packages, so I marked it as slow.
2014-09-29 22:16:32 -07:00
ekatek
8ce15905c2 to check syncing, we now need to create a new 'remoteCatalog' and sync into it 2014-09-29 22:16:31 -07:00
Justin SB
4ad1525337 Don't log loads of output from dumpPreBuilt and other localCatalogTests.js 2014-09-29 19:10:44 -07:00
Emily Stark
59db2ff04b Rename --mobile-server to --server for 'meteor build'. 2014-09-29 18:38:52 -07:00
Emily Stark
1973971b20 Add tests for 'meteor build --mobile-server'. 2014-09-29 17:53:02 -07:00
Emily Stark
f738340556 Remove dead code in cordova platforms test 2014-09-29 17:53:01 -07:00
Emily Stark
c5fdf45568 Rename 'parseHostPort' to 'parseUrl' and add tests 2014-09-29 17:53:00 -07:00
Emily Stark
257de8a62e WIP: '--mobile-port' to '--mobile-server', and allow https 2014-09-29 17:53:00 -07:00
Sashko Stubailo
81dee7f526 Working on generalizing platforms, need to worry about backcompat still 2014-09-29 15:35:29 -07:00
ekatek
1ab17b6aa8 tells bundler tests to initialize the official catalog - we used to not need this, but now that we use the official catalog as the recordstore not mirrored locally, we have to do it 2014-09-29 15:04:10 -07:00
Justin SB
e50fab39a0 Merge branch 'devel' into sqlite_store
Conflicts:
	tools/catalog.js
	tools/tests/autoupdate.js
2014-09-29 07:08:54 -07:00
Emily Stark
6041122944 Exit immediately if --parent-pid doesn't look like an integer.
If you pass "--parent-pid foobar", then we immediately log an error
message and exit. This check happens via `parseInt` rather than testing
for exceptions in `process.kill(parentPid, 0)` because `process.kill`
converts its pid argument to an integer, so `process.kill('foobar', 0)`
returns true just as `process.kill(0, 0)` does.
2014-09-26 14:01:19 -07:00
ekatek
dd7635af6e merging from master 2014-09-25 19:45:48 -07:00
ekatek
0e8f8e5039 we now print this message to stderr instead of stdout 2014-09-25 17:46:22 -07:00
Emily Stark
2f47a81395 Comments from nim, ben 2014-09-25 15:30:17 -07:00
Emily Stark
4b739b0684 Add test for runner process being SIGKILLed. 2014-09-25 15:30:17 -07:00
Emily Stark
41d8c71185 Use project.setRootDir instead of reload in stats test.
As of 3e64bd78, this usage of `reload` no longer works (if we set a
project's root dir to a fresh app, and then run the app which computes
versions.json, and then call `reload`, we'll end up with the project's
dependencies being empty). Maybe this is a bug in `reload`, but it
probably doesn't matter for any usage other than this test, and maybe
this test was misusing `reload` in the first place.
2014-09-25 14:58:10 -07:00
Nick Martin
648a4e2a09 Revert "Correct but failing test for lenient parsing of bad version number"
This reverts commit c496bd716b.
2014-09-25 11:42:16 -07:00
Nick Martin
3cb6ea87be Revert "Uncomment test for meteor search with malformed versions"
This reverts commit cb0811a10a.
2014-09-25 11:42:07 -07:00
Nick Martin
1db094b411 Revert "Ignore packages with malformed versions or malformed constraints"
This reverts commit 8fe23b418b.
2014-09-25 11:41:56 -07:00
Avital Oliver
1cf8b1d4d5 Merge branch 'release-0.9.3-lenient-version-numbers' into release-0.9.3
Conflicts:
	tools/package-version-parser.js
2014-09-24 23:21:01 -07:00
Avital Oliver
8fe23b418b Ignore packages with malformed versions or malformed constraints
This allows us to later increase the pool for well-formed versions without requiring
moving the catalog's data.json into a new folder, which would require re-syncing
the entire catalog.
2014-09-24 23:19:59 -07:00
ekatek
58c110499e fix the test for updating RCs and make list tell you about new rcs sometimes
1. Fixes the test for updating to a new rc. First, change the ordering -- since we order RCs now, it means that if you add rc.3 while
rc.4 is available it just adds rc.4. So, now, we publish rc.4 after rc.3 has been added, run update (with the right options) and
check that it worked.

2. When you run list, we check if there are newer versions of packages. Usually we just look at mainline versions. But if you are already
using an rc version of a package, you might care about new rcs too. So, in that case, we check the latest of *all* available versions.
2014-09-24 22:35:05 -07:00
ekatek
3278265b52 also testing correct behavior when there are two rcs: running update should move you to the newer rcs ifff you are already using an rc. Does not currently work. 2014-09-24 20:52:22 -07:00
ekatek
88936518d8 test reproducing this bug: when you add a package with rcs, you end up adding the rcs, even if you did not explicitly ask for them. 2014-09-24 19:23:55 -07:00
Avital Oliver
cb0811a10a Uncomment test for meteor search with malformed versions 2014-09-24 18:30:41 -07:00
Avital Oliver
573f881531 Simplify a test 2014-09-24 18:29:33 -07:00
Avital Oliver
c496bd716b Correct but failing test for lenient parsing of bad version number 2014-09-24 16:16:39 -07:00
Pascal Rapicault
e48ec74b71 now uses v2 metadata 2014-09-23 11:45:55 -04:00
Pascal Rapicault
32a0178e88 merge devel 2014-09-22 22:59:15 -04:00
Justin SB
d26387fdd7 More delays in JS HCP self-test 2014-09-19 20:45:07 -07:00
Justin SB
715c13ff7c Update self-test with new 'up to date' language 2014-09-19 20:21:31 -07:00
Justin SB
4d572fcc1d Insert some pauses to see if this does indeed fix the self-test
This would be a hack, but it does seem to work
2014-09-19 20:17:58 -07:00
Justin SB
cfefbcf28f Revert 7282c0ee5b, now that 0ac1855166 has reverted bdcf0d188 2014-09-19 19:10:37 -07:00
Justin SB
2c6e615d17 Auto-agree to the license in self-test; wait for the huge download 2014-09-19 18:42:48 -07:00
ekatek
298f684580 we also need to update the warehouse code to use the right version 2014-09-19 18:24:05 -07:00
ekatek
9c99638c7f be more consistent about using utils.parseConstraint in the tool; test for either-version 2014-09-19 16:56:24 -07:00
Pascal Rapicault
73aff98b64 changes 2014-09-19 17:34:15 -04:00
ekatek
d8377487dc support multiple major versions in meteor 0.9.3 and above. A little hacky in the tool around keeping old interfaces, but it works 2014-09-18 00:12:30 -07:00
Pascal Rapicault
5173bfe881 change test to accomodate for different ordering 2014-09-17 20:41:24 -04:00
Pascal Rapicault
894638cec7 merge devel 2014-09-16 10:20:38 -04:00
Emily Stark
ccfee68145 Merge branch 'master' into devel
Conflicts:
	docs/client/api.html
	docs/client/data.js
	docs/client/names.json
	meteor
	packages/autoupdate/package.js
	packages/base64/.gitignore
	packages/constraint-solver/package.js
	packages/device-orientation/.gitignore
	packages/less/package.js
	packages/meteor-tool/package.js
	packages/meteor/package.js
	packages/package-version-parser/package.js
	packages/webapp/webapp_server.js
	scripts/admin/meteor-release-experimental.json
	tools/commands.js
	tools/help.txt
	tools/package-version-parser.js
	tools/run-all.js
	tools/tests/apps/build-errors/packages/with-colon-plugin/.gitignore
2014-09-15 14:48:57 -07:00