Commit Graph

18089 Commits

Author SHA1 Message Date
Ben Newman
ba5c8ff530 Bump package versions for 1.4.3-beta.1 release. release/METEOR@1.4.3-beta.1 2016-12-06 10:18:45 -05:00
Ben Newman
f42c137f55 Always copy node_modules/.bin into bundle/programs/server/npm.
Fixes #8136.
2016-12-06 10:16:43 -05:00
Ben Newman
b4290d7e17 Bump $BUNDLE_VERSION to 4.7.5 before rebuilding dev bundle. 2016-12-01 17:54:13 -05:00
Ben Newman
f434383c02 Upgrade the npm npm package to version 4.0.2. 2016-12-01 17:53:53 -05:00
Ben Newman
9ee7e46be9 Bump package versions for 1.4.3-beta.0 release. release/METEOR@1.4.3-beta.0 2016-12-01 16:44:48 -05:00
Ben Newman
134fa0d226 Move facebook package to packages/deprecated. 2016-12-01 16:44:43 -05:00
Ben Newman
5d9d06f3bd Update minifier-js shrinkwrap. 2016-12-01 15:50:34 -05:00
Ben Newman
2f3387f364 Merge pull request #8122 from abernix/feature/improve-ci-script
Make CI test runner more defensive and a bit more flexible.
2016-12-01 15:39:11 -05:00
Jesse Rosenberger
8c7232c0f7 Track error codes from all self-test instances and fail accordingly
Since multiple self-tests could run in a series now, this makes sure that when any of them fails, the error is propagated to CircleCI but still lets them all finish.
2016-12-01 19:12:59 +02:00
Jesse Rosenberger
b2e80f5cbc Revert "Reformat the pre-defined tests to not be multiple lines."
This reverts commit 7df3ccaa2195af2628f20752104b331997137b73 which introduced a change which required `bash`.

I don't want to force `bash` for a test runner.
2016-12-01 19:12:59 +02:00
Jesse Rosenberger
6701357c41 Reformat the pre-defined tests to not be multiple lines.
This might be overboard as it adds some additional code but the regex off the screen was midly unpleasant.

One additional benefit to this is that you could have a list of excluded tests stored in a separate file and use:

```
ADDL_SELF_TEST_EXCLUDE="$(cat addl_tests.txt)"
```

(note the importance of double quotes to preserve newlines)
2016-12-01 19:12:58 +02:00
Jesse Rosenberger
b0c6804b63 Allow changes to some CI settings which may vary by environment.
This permits changing TIMEOUT_SCALE_FACTOR using a variable instead of hard-coding it in the script.

Also adds ADDL_SELF_TEST_EXCLUDE to define environment specific tests which must be skipped.

For example, I run my preliminary (personal) Meteor tests on SemaphoreCI, but there is a particular test that just _will not work_.  This allows me to override particulary problematic tests without sed-ing the script.
2016-12-01 19:12:58 +02:00
Jesse Rosenberger
054796f35e Make CI test runner more defensive and a bit more flexible.
This changes the CI script to make sure it runs all tests, regardless of the environment configuration while still allowing flexibility in the size of the container parallelism.

While not having any effect on the Meteor configuration this will now run all 8 test groups across a fewer number of containers, if necessary.

This fixes issues where false-positives are achieved on contributor PRs, like seen on meteor/meteor#7963.  I explained here:

https://github.com/meteor/meteor/pull/7963#issuecomment-264188162

This change will also allow the script to run tests in their entirety if the parallelism configuration is missing, such as when run from a local dev box.
2016-12-01 19:12:54 +02:00
Ben Newman
e804c00e97 Merge pull request #8037 from mitar/headless
Respect METEOR_HEADLESS environment variable.
2016-12-01 10:18:52 -05:00
Ben Newman
3dc623cb8f Merge pull request #8120 from hwillson/issue-5626-proper
Help address the Unicode asset filename issues discussed in #5626
2016-12-01 09:40:43 -05:00
Ben Newman
4ee47e3f9a Merge pull request #8030 from meteor/run-reify-before-babel
Run Reify before Babel to fix #8021 and #7662
2016-11-30 21:22:06 -05:00
Hugh Willson
4a10a1b26b Making sure asset filenames are Unicode normalized when loaded (to help address issue #5626). 2016-11-30 20:31:37 -05:00
Hugh Willson
c55d8cca76 Revert "Revert "Merge pull request #7963 from hwillson/issue-5626" (#8118)"
This reverts commit 5754f8ef3e.
2016-11-30 20:28:21 -05:00
Ben Newman
9706be2fb3 Bump $BUNDLE_VERSION to 4.7.4 before rebuilding dev bundle. 2016-11-30 19:51:42 -05:00
Ben Newman
7c148b2a4e Merge branch 'devel' into run-reify-before-babel 2016-11-30 19:51:05 -05:00
Ben Newman
5754f8ef3e Revert "Merge pull request #7963 from hwillson/issue-5626" (#8118)
This reverts commit 11ce2f7bbc, reversing
changes made to dfde4146f7.
2016-11-30 19:48:19 -05:00
Ben Newman
8577c9a233 Upgrade the meteor-babel npm package to version 0.14.3. 2016-11-30 13:40:24 -05:00
Alex Terpyakov
1f883c6f6d Update uglify-js (#8117) 2016-11-30 13:36:56 -05:00
Zoltan Olah
cadb94a4c4 Merge pull request #8116 from abernix/feature/fix-history-7970
Fix history and add history for #7970
2016-11-30 09:43:30 -08:00
Jesse Rosenberger
06a1805cf7 Fix history and add history for #7970
As a correction to 8e228180e6 which inadvertently removed 1.4 from existence.

Good catch by @mitar.  8e228180e6 (commitcomment-20013960)
2016-11-30 15:06:37 +02:00
Jesse Rosenberger
330a5afebc Revert "History entry for #7970"
This reverts commit 8e228180e6.
2016-11-30 14:54:59 +02:00
Mitar
fca0dccd20 Parse JSON for the flag. 2016-11-30 03:18:52 -08:00
Ben Newman
5e32a12763 Merge pull request #8101 from meteor/glasser/websocket-timeout
Don't allow websockets to indefinitely wait for DDP handshake
2016-11-29 18:51:55 -05:00
Zoltan Olah
8e228180e6 History entry for #7970 2016-11-29 15:41:39 -08:00
Zoltan Olah
251e09ce5a Merge pull request #7970 from MichaelOber/devel
Add support for frame-ancestors CSP option in browser-policy
2016-11-29 15:35:46 -08:00
Ben Newman
11ce2f7bbc Merge pull request #7963 from hwillson/issue-5626
Load `program.json` using the Unicode Normalization Form of the loaded JSON string
2016-11-29 18:22:00 -05:00
Ben Newman
dfde4146f7 Merge pull request #8104 from abernix/feature/8034-improve-compiler-error
Improve build plugin error when asset is added with empty contents
2016-11-29 18:12:57 -05:00
Ben Newman
ac86594346 Install npm dependencies automatically when creating apps.
Although I have said I do not think Meteor should run `npm install`
automatically to update application node_modules, my real concern is that
Meteor should not interfere with your preferred node_modules-related
workflow, be it npm, npm-shinkwrap.json, yarn, yarn.lock, checking your
node_modules into git/mercurial/cvs, or whatever other scheme you have.

Automatically installing node_modules from the default package.json file
when a new app is created will eliminate real confusion, and should not
interfere with any workflows, because there is no opportunity to establish
another workflow before Meteor runs `npm install` the very first time.
2016-11-28 12:11:59 -05:00
Ben Newman
83cb162e0f Bump $BUNDLE_VERSION to 4.7.3 before rebuilding dev bundle. 2016-11-27 14:47:52 -05:00
Ben Newman
293e8c5936 Upgrade reify npm package to version 0.4.4. 2016-11-27 14:47:11 -05:00
Ben Newman
deabdf8488 Bump $BUNDLE_VERSION to 4.7.2 before rebuilding dev bundle. 2016-11-26 14:06:39 -05:00
Ben Newman
ac0b697988 Remove wildcard from 7-zip path in Windows dev bundle script. 2016-11-26 13:54:25 -05:00
Ben Newman
39a8591fb2 Upgrade reify npm package to version 0.4.3. 2016-11-26 13:30:33 -05:00
Ben Newman
bd0a7be6e2 Upgrade the meteor-babel npm package to version 0.14.2. 2016-11-26 13:29:33 -05:00
Ben Newman
c83094ae26 Tolerate module["import"] properties in findImportedModuleIdentifiers. 2016-11-26 13:07:27 -05:00
Jesse Rosenberger
487b41fd75 Improve compiler error when asset is added with empty contents
While not a Meteor bug, this makes the error message more helpful when a compiler tries adding an asset without data, as demonstrated in meteor/meteor#8034.

Thanks to suggestion by @sdarnell for this.

Closes meteor/meteor#8034
2016-11-24 16:20:46 +02:00
David Glasser
b9f2bb255d Don't allow websockets to indefinitely wait for DDP handshake
In general, we try to avoid allowing TCP connections to be open with no
traffic on it indefinitely.  We place timeouts on incoming HTTP
connections in webapp_server.js (which we adjust to longer values when
there's an HTTP request pending), and once a DDP connection is fully
established we require heartbeats.

However, if the incoming connection is a websocket, the faye-websocket
package used by SockJS calls setTimeout(0) on the underlying socket when
it initializes the WebSocket object:

https://github.com/faye/faye-websocket-node/blob/3148348a3/lib/faye/websocket/api.js#L111

So if a client does the WebSocket handshake with the server but never
sends a valid DDP connect message, the socket can be held open
indefinitely. (To add insult to injury, a 1MB Buffer object is retained
on such sockets due to something in the faye-websocket code, at least on
older versions of Node like 0.10.)

This commit restores a timeout on the socket for this in-between period.

(We actually saw this issue in production on the Meteor Developer
Accounts server --- hundreds of such broken connections would accumulate
over time.  This may be triggered by a particular setup we use involving
proxies for the accounts server, or it may be a more generally
applicable issue.)
2016-11-23 13:10:58 -08:00
Ben Newman
b1df3ed0ed Merge pull request #8082 from Rhywden/patch-1
Fix for console output in PowerShell on Win10.
2016-11-21 19:06:14 -05:00
Rhywden
b029732a11 Fix for console output in PowerShell on Win10
See https://github.com/meteor/meteor/issues/6785

Basically, 
```
new Array(249).join('\b')
```
is not a good idea for a carriage return. Code has been tested with CMD, PowerShell and PowerShell in Legacy Mode and seems to solve the issue.
2016-11-21 20:34:11 +01:00
Ben Newman
3120b9324d Update modules test app to Meteor 1.4.2.3. 2016-11-18 11:01:47 -05:00
Ben Newman
f4abbccf45 Merge branch 'master' into devel 2016-11-17 16:23:04 -05:00
David Burles
00c6681ae4 remove inline eslint rules 2016-11-17 16:21:40 -05:00
David Burles
76f85113f1 remove validation test 2016-11-17 16:21:40 -05:00
David Burles
9ac8df351f remove url validation 2016-11-17 16:21:40 -05:00
David Burles
180ce53633 more concise export 2016-11-17 16:21:40 -05:00