Commit Graph

3251 Commits

Author SHA1 Message Date
David Glasser
36f870a6ab Catch files that change immediately after the server restarts by doing a
one-time content scan. Addresses Issue #223.

This addresses two cases: files that change during a slow bundle (eg, during
slow NPM updates) and *do* end up with a different mtime (which could also be
addressed in other ways, see eg the issue-223-dead-end branch)... and those that
change twice within the same second on OSX HFS+ which only has 1-second mtime
resolution, which really cannot be addressed in any purely mtime-based way.

This still is not 100% perfect. Most notably, any files read via
register_extension (which is to say, basically all source files other than
package.js and static resources) still have a race between hash calculation and
the actual read done by the bundler, since the register_extension API takes a
source_path rather than contents. This could be addressed by making
register_extension handlers take the contents as an argument too (and encourage
the use of source_file only for things like printing errors with filenames, not
actually for reading the file). In addition, this won't detect files added after
the bundler passes them but before the initial DependencyWatcher run.
release/0.6.0-alpha4
2013-03-31 23:01:44 -07:00
David Glasser
69b19330a2 make cli-test pass again 2013-03-30 17:58:04 -07:00
David Glasser
32593f3940 install-engine: Extra newline after download, and use an exec instead of piping
everything manually.
2013-03-30 17:54:49 -07:00
David Glasser
c7e5582537 Remove /usr/local/meteor.old after Mac upgrade to engine. 2013-03-30 17:50:30 -07:00
David Glasser
d65551a687 Better message for unknown releases. 2013-03-30 17:50:19 -07:00
David Glasser
f3821b06f3 Remove outdated comments. 2013-03-30 00:53:29 -07:00
David Glasser
894dfdc546 more alphas 2013-03-30 00:48:00 -07:00
David Glasser
1e2a40ef2b Use GNU tar on Mac to avoid warnings. 2013-03-30 00:47:52 -07:00
David Glasser
1c36bbaa79 Use normal tar, not node-tar, to create bootstrap tarballs release/0.6.0-alpha3 release/0.6.0-alpha2 release/0.6.0-alpha1 2013-03-30 00:08:34 -07:00
David Glasser
4b91013be8 Don't print a message at the end of running the install script. 2013-03-30 00:08:22 -07:00
David Glasser
bce332dbbb Use CDN to download bootstrap tarballs. 2013-03-29 23:50:56 -07:00
David Glasser
59f55f9a8c update notices for 0.6.0-alpha1 2013-03-29 23:44:58 -07:00
David Glasser
af8ddf5811 publish-release.sh: switch order of arguments.
I found myself typing "HEAD" a whole lot!
2013-03-29 23:07:50 -07:00
David Glasser
273c08fd7c Merge branch 'packaging' into devel 2013-03-29 23:00:06 -07:00
David Glasser
421bd951c7 in update message, only print basename 2013-03-29 22:57:12 -07:00
David Glasser
88dedc5503 add newlines to "meteor deploy" output
this way any NPM lines between "bundling..." and "uploading..." are less jarring
2013-03-29 22:49:53 -07:00
David Glasser
d9af3c210d make run-tools-tests pass for a brief while 2013-03-29 22:43:38 -07:00
David Glasser
e989706d51 avoid creating temporary package NPM dirs when nothing has changed 2013-03-29 22:41:57 -07:00
David Glasser
081a517baa npm update message: don't include version (which can be long and ugly) 2013-03-29 22:37:27 -07:00
David Glasser
fe1d61db40 more effective detection of stdout/err use for restart message 2013-03-29 22:27:51 -07:00
David Glasser
912e36ad3f move --get-ready comment 2013-03-29 22:21:04 -07:00
David Glasser
55fbe16acf slightly better short description for update 2013-03-29 21:45:53 -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
8e550dfe9a add more spacing around banner 2013-03-29 18:03:02 -07:00
David Glasser
02ce324185 Merge branch 'packaging' into devel 2013-03-29 16:42:24 -07:00
David Glasser
4df4a5e03c fix cli-test for new help text 2013-03-29 16:26:51 -07:00
David Glasser
8c8fea17c4 don't print overriding message when overriding "none" 2013-03-29 16:23:24 -07:00
David Glasser
c28c7db3e0 wrap some text 2013-03-29 16:23:14 -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
b6e4398aef fix comment (thanks @awwx) 2013-03-29 11:52:34 -07:00
David Glasser
331654c0b8 basic pass on making updater reasonable. 2013-03-29 11:52:34 -07:00
David Glasser
6935f63b2c pipe everything to stderr.
(stdout is lost in some contexts, eg emacs shell?)
2013-03-29 11:52:34 -07:00
David Glasser
c5d9ae151a figure out stdio stuff 2013-03-29 11:52:34 -07:00
David Glasser
513a6f2571 oops, no-* is specially handled 2013-03-29 11:52:34 -07:00
David Glasser
068774147c unbreak running from git 2013-03-29 11:52:34 -07:00
David Glasser
1ceef40beb apps with no release file are now assumed to be the latest release, not 0.6.0 2013-03-29 11:52:34 -07:00
David Glasser
d8179cd255 some extra newlines 2013-03-29 11:52:34 -07:00
David Glasser
8d8bacd9a9 checkpoint for upgrade-to-engine.sh 2013-03-29 11:52:34 -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
1dda5a05a3 Add another newline in overriding message. 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
0eff9604fc use meteor --get-ready instead of --version in places where we're trying to make
sure a checkout is complete
2013-03-29 11:52:33 -07:00
David Glasser
111582d757 fixes for per-arch packages 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