Commit Graph

4402 Commits

Author SHA1 Message Date
sashko
5fbdfce664 Throw a nice error when you are trying to run an old release 2015-03-31 11:16:10 -07:00
Sashko Stubailo
3b225904c3 Throw error on Windows if you try to springboard to a super old release 2015-03-31 10:51:50 -07:00
Sashko Stubailo
eea9e21895 Rename test to more accurately reflect what it does now 2015-03-31 10:51:50 -07:00
David Glasser
9401572041 Remove broken do-not-update-to-rcs test
It was broken because fake-warehouse and test-package-server were
incompatible.  In order to actually use the published packages, we had
to sync test-package-server into the local warehouse.  But as soon as we
did that, the latest release became some other random release.

In any case, the semantics tested here have changed twice since 0.9.0!
In 0.9.0.1 we changed it from "ask for any RC means get any RC" to
"don't get any RCs that aren't explicitly anticipated".  And in 1.1
we're changing it to "minimize unanticipated RCs".

Manually running through the equivalent of this test, most of it works
except for the last line; `meteor update` will not take you from one RC
to the next, due to minimizing unanticipated RCs.  That's probably fine
though.

While we're at it, make it much more clear that warehouse and
test-package-server don't work together.
2015-03-31 13:08:53 -04:00
sashko
168a39adae Fix fake mongo test on Windows 2015-03-31 08:12:03 -07:00
Slava Kim
6d7279373e Fix trailing whitespace for empty lines, in unwrapped mode 2015-03-30 21:53:18 -07:00
Slava Kim
ae398ede87 Don't expect a wrapped path in self-tests for meteor show 2015-03-30 21:51:54 -07:00
Slava Kim
7e7005cc9d Reimplement indent for non-wrapped text 2015-03-30 21:35:33 -07:00
Slava Kim
9bd5b22a85 Indent in unwrapped mode 2015-03-30 21:31:05 -07:00
Slava Kim
bfadacbe8c Revert the broken pattern reporting 2015-03-30 21:11:59 -07:00
Slava Kim
479a14af1d Don't expect the directory line to be wrapped 2015-03-30 21:10:22 -07:00
Slava Kim
742fdca951 Don't wrap the tests and patterns 2015-03-30 21:06:47 -07:00
Slava Kim
56a8ec7556 Use a more specific METEOR_NO_WRAP 2015-03-30 20:55:05 -07:00
Sashko Stubailo
93fe5eb9f1 Also don't crash when cleaning up temp dirs at the end of app run 2015-03-30 20:49:07 -07:00
Slava Kim
613f879abd Don't wrap text in self-test mode 2015-03-30 20:47:24 -07:00
Slava Kim
9abdf1eef1 Fixes to old cli tests 2015-03-30 20:15:36 -07:00
Sashko Stubailo
19a3e31353 Make deploy use mkdtemp 2015-03-30 19:56:35 -07:00
Sashko Stubailo
557f65970d Don't crash on failed temp dir cleanup 2015-03-30 19:55:44 -07:00
David Greenspan
b99c9a42c4 Fix remaining 'publish' self-test failures on OS X 2015-03-30 19:41:41 -07:00
David Greenspan
3bc172dc20 Support --allow-incompatible-update in meteor list
Undocumented flag.  This is one of those cases that is rare but may
come up, because `meteor list` runs the version solver (and writes
.meteor/versions).  For example, it may come up if you run `meteor 
list` with PACKAGE_DIRS and then without (or vice versa).  You'll
get a message that says to pass --allow-incompatible-update, so we
must support it.
2015-03-30 18:04:40 -07:00
David Greenspan
a4bda98fa8 Fix self-test 'add package with no builds' 2015-03-30 17:01:16 -07:00
David Greenspan
4a4680b5d2 Exclude published package from previousSolution
When you `meteor publish` a package (not from an app), a
ProjectContext is created that gets the Version Solver
"previousSolution" from the .versions file in the project directory.
From the point of view of the Version Solver, the package itself is
a root dependency, so if the version changes from last time, you
may be asked to pass --allow-incompatible-update!  That isn't right.
However, the ProjectContext created by `meteor publish` doesn't know
it is created for a particular package.  But it does have the package
marked as "explicitly added."  So for now, the simplest thing to do
is to alter the input to the Version Solver based on the value of
explicitlyAddedLocalPackageDirs.

Oh, another wrinkle here is that we don't actually know the name of
the package we're publishing when we create the PackageContext, so it
can't be an option.

Example of a failing self-test that now passes:
'packages with organizations'
2015-03-30 16:58:47 -07:00
Slava Kim
56e1e08292 Rewrite part of the old/cli-test.sh test to selftest 2015-03-30 16:35:32 -07:00
Avital Oliver
358d797373 Improve error on publish-for-arch with colons
It's unfortunate that this change is in `compiler.compile`. It's
actually unfortunate that we only catch this during publish-for-arch.
But it seems too much to disallow all packages published with colons
even if they don't have binary dependencies since a lot of old
packages were created with our command-line tool that created
filenames with colons in them.
2015-03-26 18:46:12 -07:00
David Glasser
d79ca97398 Be clearer that you need to publish for this arch
Fixes #3961.
2015-03-26 17:32:37 -07:00
Avital Oliver
120febbf8a Fix meteor reset on Windows
We were incorrectly always assuming that Meteor is running
by not actually trying to connect to the port that the
MONGO-PORT file reports Mongo is listening to.

The problem is that that file isn't cleared when Meteor
quits or crashes.

Fixes https://github.com/meteor/windows-preview/issues/138
2015-03-26 17:11:17 -07:00
Slava Kim
2b2b721ff4 Reformat the warnings 2015-03-26 17:07:00 -07:00
Slava Kim
0a7cf60294 Add a warning about proxy env variables when a connection in tool fails 2015-03-26 16:58:41 -07:00
Slava Kim
ac15655897 Remove stray if statemet
A leftover from debugging
2015-03-25 18:25:04 -07:00
Slava Kim
9305e9d514 Adapt wipe-all-packages command to Windows layout 2015-03-25 17:16:46 -07:00
Slava Kim
a1fefa9f92 Fix wipe-all-packages test for Windows 2015-03-25 17:16:46 -07:00
Slava Kim
7e03f78b80 Be able to parse absolute and relative paths in meteor.bat 2015-03-25 17:16:46 -07:00
Slava Kim
9b12a33c6b Fix the default release track issue on Windows 2015-03-25 17:16:46 -07:00
Slava Kim
bba6b617a3 Add fake builds in the test 2015-03-25 17:16:46 -07:00
Slava Kim
5337b3b6c6 Fix the test to generate a relative symlink 2015-03-25 17:16:46 -07:00
Slava Kim
d9cc95531b additional checks in tests to ensure that exactly two versions of tool are not removed 2015-03-25 17:16:46 -07:00
Slava Kim
7be6fe4018 Wipe all packages test
Tested on Mac
2015-03-25 17:16:46 -07:00
Sashko Stubailo
0e3e529751 Add command to test wipeAllPackages 2015-03-25 17:16:46 -07:00
Sashko Stubailo
4ff636c7df Merge branch 'master' into release-1.1
Conflicts:
	History.md
2015-03-25 16:07:42 -07:00
David Greenspan
e97e29e8b0 Add --allow-incompatible-update to more commands
In particular: `create`, `test-packages`, `rebuild`, `publish`, 
`publish-for-arch`, `admin run-upgrader`

Add it to the help text for `publish`, and simply force the flag to
true in `create`.  Other commands get it as an undocumented flag
in case the version solver tells you to pass it in.
2015-03-25 14:30:59 -07:00
sashko
3a748a5ab6 Remove unlinking ssh code that fails
We delete temp directories anyway!
2015-03-24 21:37:30 -07:00
Slava Kim
fa593632f3 Expand on the comment being related to Windows 2015-03-24 17:29:08 -07:00
Slava Kim
fa6d536c80 Always set the path to the node binary when running npm from Meteor 2015-03-24 17:29:02 -07:00
Sashko Stubailo
f9906346db Remove WINDOWS-PREVIEW hack
So that there is a recommended release published for Windows

Conflicts:
	tools/utils.js
2015-03-24 17:21:59 -07:00
Sashko Stubailo
31d199124f Revert "Remove WINDOWS-PREVIEW hack"
This reverts commit 84c0b3ccd8.
2015-03-24 17:19:47 -07:00
Sashko Stubailo
84c0b3ccd8 Remove WINDOWS-PREVIEW hack
So that there is a recommended release published for Windows
2015-03-24 17:18:15 -07:00
Avital Oliver
79f7f162f1 Fix long file paths passed to files.createTarball
The fix is actually in https://github.com/npm/fstream/pull/42,
but now we also remove our explicit path length check
that used to throw an error instead of silently losing files.

This commit also adds a self-test to test the entire flow
through `files.createTarball` and `files.extractTarGz`.
2015-03-23 19:56:19 -07:00
David Glasser
ab2e629239 Upgrader for Facebook API change. 2015-03-23 14:57:54 -07:00
sashko
91be1eac7c Make admin get-machine link to SSH directions 2015-03-23 14:18:09 -07:00
Slava Kim
ccc98c1838 Always exit with the same exit code as Meteor node script, in warehouse 2015-03-23 12:14:11 -07:00