Commit Graph

47 Commits

Author SHA1 Message Date
Sashko Stubailo
c62a37c6b5 Replace process.env.HOME with files.getHomeDir()
Conflicts:
	tools/commands-cordova.js
	tools/config.js
	tools/files.js
	tools/selftest.js
	tools/warehouse.js
2015-01-20 22:03:22 -08:00
Sashko Stubailo
e7167e5257 Factor out almost all fs. and path. calls in the tool
This will be useful when we want to be smart with windows file paths later
Also, all of the file calls are asynchronous with fibers now, which comes with
many benefits.

This is a combination of 23 commits. Original messages:
Wrap a large number of fs calls inside files.*

Convert a few more fs calls to files.*

More moving fs.* to files

Implement read/write streams and open/read/close

Get rid of fs from auth.js

Remove fs and unused imports from catalog-local and catalog-remote

Remove unused imports from catalog.js

Replace a whole lot of fs calls

Fix error

Migrate a lot more fs. calls to files.

Add a temporary symlink method

Convert old test to files.*

Use files.pathX instead of path.x everywhere

Replace path.x to files.pathX in tests

Small fixes to files.js and one rename

Make cleanup run in a fiber

Make wrapping functions take function name in case we need it

Add some timeouts and stuff to HCP tests

wrapFsFunc also makes a sync version of the function

Sometimes you just don't want to yield!

Make sure JsImage readFromDisk doesn't yield

Remove unused imports from npm test

Change order of test now that some things don't yield

Fix missing files import, and add a debug error printout
2014-12-15 15:32:06 -08:00
Justin SB
a3be9a0ac6 Make meteor search output prettier 2014-10-17 06:26:47 -07:00
David Glasser
f7c6f505ac Never springboard to a red pill 2014-08-25 22:49:32 -07:00
David Glasser
215872fea2 speed up legacy springboarding
after the first time you springboard to a legacy release, don't refresh
the catalog before springboarding
2014-08-06 16:02:33 -07:00
David Glasser
cf7b78a83b ensure that latest symlinks exist
otherwise when we legacy-springboard it will be sad
2014-08-06 11:28:59 -07:00
David Glasser
55a1eba1dc delete dead warehouse code 2014-06-11 17:15:27 -07:00
David Glasser
f66e357353 allow springboarding to pre-tropohouse releases! 2014-06-11 17:12:43 -07:00
David Glasser
31d62a5094 remove old notice code 2014-06-10 18:50:41 -07:00
David Glasser
8bdcdbc518 maybe background symlink update works
however, bundling is brokenish

due to buildTimeDeps when building apps not being release-sensitive

(ekate understands what I mean)
2014-05-20 18:58:15 -07:00
David Glasser
984b1d4096 delete dead code 2014-03-05 14:29:23 -08:00
David Glasser
54074fdac7 Fix crash if populating packages in two processes 2014-02-20 15:35:38 -08:00
David Glasser
52639e62bb --get-ready on built meteor now fails on error
Generally reorganize some silent/quiet/background flags to be more
explicit about what is being show/hidden.

The main point here is that the 'background updater' wants to show
banners but ignore errors, whereas --get-ready wants to show errors but
not banners.
2014-02-13 19:11:30 -08:00
Geoff Schmidt
5f7393b3a4 Autoupdater tests! They pass. 2014-01-27 02:31:39 -08:00
Geoff Schmidt
32f2791942 Test springboarding errors/edge cases. 2014-01-27 01:13:18 -08:00
Geoff Schmidt
8bded5c44f eliminate process.exit from release.js and warehouse.js 2014-01-07 22:58:00 -08:00
Geoff Schmidt
88ea71f4c2 style: 'function ()' rather than 'function()' 2013-12-30 07:04:45 -08:00
Geoff Schmidt
5230e79c62 delete ~unused logging function 2013-12-30 07:01:38 -08:00
Geoff Schmidt
4fc8c0d1f3 Eliminate context everywhere!!
Add release.js to manage current release.
2013-12-30 05:16:21 -08:00
Nick Martin
3177d9ad41 Use http_proxy environment variable so meteor update and deploy work behind an http proxy. 2013-09-27 15:06:43 -07:00
David Glasser
2b80e5b973 Generate a dummy package.js in unipackages, to make the downloader happy.
Change the downloader to no longer expect packages to contain package.js.

This actually requires us (already!) to bump BUILD_VERSION, since I've already
published packages without the package.js!
2013-07-15 13:25:26 -07:00
Geoff Schmidt
aaa0e9be5d change inchworm_style to camelCase in a few files 2013-05-13 11:51:52 -07:00
David Glasser
1fc7d7f94d Allow for package-specific notices. 2013-04-10 10:29:09 -07:00
David Glasser
aaae84aa60 Print notices on upgrades from pre-Engine too. 2013-04-01 15:29:50 -07:00
David Glasser
d65551a687 Better message for unknown releases. 2013-03-30 17:50:19 -07:00
David Glasser
de753799ba fix typo in notices support 2013-03-29 18:54:35 -07:00
David Glasser
8ed6e80771 notice printing, as per script 2013-03-29 18:30:17 -07:00
David Glasser
526320ca05 fix --release with releases where you already have all the pieces 2013-03-29 16:09:14 -07:00
David Glasser
e072540031 - better errors when running "meteor update" or a command with an unknown
release while offline
- fix "meteor help update"
- add an OfflineError to files.getUrl
- factor out die into a logging package
2013-03-29 15:40:26 -07:00
David Glasser
b38bfe299d A newline 2013-03-29 11:52:33 -07:00
David Glasser
ab96ca29e8 don't ever call releaseManifestByVersion from the background 2013-03-29 11:52:33 -07:00
David Glasser
250b9b9826 fresh files 2013-03-29 11:52:33 -07:00
David Glasser
06f911a327 revert addition of urlBase to release.json
it was intended to give us a gateway to arch-specific packages later
but we're doing them now already
2013-03-29 11:52:33 -07:00
David Glasser
19521f56f3 fix issues 2013-03-29 11:52:33 -07:00
David Glasser
71b6708c66 packages now per-platform 2013-03-29 11:52:33 -07:00
David Glasser
5c366a34fe build arch-specific packages, which contain NPM modules! 2013-03-29 11:52:33 -07:00
David Glasser
734c185a89 Call "uname plus arch" the "platform".
Normalize to _ (like dev bundle) rather than - (like old releases).
2013-03-29 11:52:33 -07:00
David Glasser
4e199eb07f look for an urlBase in release.json (to support binary packages later) 2013-03-29 11:52:32 -07:00
David Glasser
3c8f21a409 make TEST_WAREHOUSE_DIR a non-test thing called METEOR_WAREHOUSE_DIR
(the non-springboarding piece of that is now controlled by
METEOR_TEST_NO_SPRINGBOARD)

This means that run-all-tests.sh can use launch-meteor to bootstrap a warehouse
instead of starting with an empty warehouse directory (which is no longer
allowed).

also, fix npm module usage out of the bootstrap tarball: we were too liberal in
the "never update npm dependencies in the warehouse" rule since the bootstrap
tarball would contain packages with no node_modules (or if we had a failure
between downloading a package and running installNpmDependencies).  instead,
"never update npm dependencies in the warehouse if .npm/node_modules already
exists".
2013-03-29 11:52:32 -07:00
David Glasser
99ba22d2c4 Don't assign to exports. That breaks circular requires. 2013-03-29 11:52:32 -07:00
David Glasser
6b383db405 We can assume there is always a latest release installed now. 2013-03-29 11:52:32 -07:00
David Glasser
034a6b862d background update check, now with print-once-only banner 2013-03-29 11:52:32 -07:00
David Glasser
c05b0dd652 fix release blessing 2013-03-22 23:39:10 -07:00
David Glasser
d5c85ec5c4 Overhaul release blessing process.
Blessing is now the time that bootstrap tarballs are created.

There's a banner that goes into the global manifest (stored in
scripts/admin/banner.txt).

The global manifest.json is now entirely generated: there's no record of the
current version stored in git.

Have not yet updated launch-meteor or install-template.sh or the fake release
for this brave new bootstrap world, or https://install-bootstrap.meteor.com/.
2013-03-22 19:15:18 -07:00
David Glasser
652b9b9209 die if running a "none" app from warehouse without specifying --release 2013-03-20 00:22:39 -07:00
David Glasser
dd6bf35b80 changelog -> notices 2013-03-19 23:45:06 -07:00
David Glasser
8a79edb43b "tools" -> "scripts", "engine" -> "tools" 2013-03-19 18:19:31 -07:00