Commit Graph

22288 Commits

Author SHA1 Message Date
Seba Kerckhof
dad1f4e563 Bump version to republish
Should be republished, since the published 1.5.1 is outdated and still contains underscore. https://github.com/meteor/meteor/issues/10788
2019-11-25 15:44:48 +01:00
Filipe Névola
216db74ea4 Small improvement to hashStampedToken (#10747)
Small improvement to hashStampedToken
2019-11-19 08:58:52 -04:00
Filipe Névola
963d90bf52 Merge pull request #10740 from gabrielmcoelho/patch-1
change success variable declaration
2019-11-19 08:54:39 -04:00
Filipe Névola
a914387295 Merge pull request #10728 from imba-tjd/patch-1
Chore: Use https in readme
2019-11-19 08:53:56 -04:00
Ben Newman
3f88ccb387 Update packages/non-core/blaze submodule to latest master.
This version of Blaze includes https://github.com/meteor/blaze/pull/299 by
@sebakerckhof, which is an important prerequisite for #10498.
2019-11-15 14:05:44 -05:00
Ben Newman
fa518b806e Add some advice about republishing packages to History.md. 2019-11-15 10:47:11 -05:00
Ben Newman
407b2d17cb Remove eslint and pre-commit hook to fix npm security warnings. 2019-11-14 17:34:29 -05:00
Ben Newman
0af5c64bd1 Update modules test app to Meteor 1.8.2. 2019-11-14 17:21:02 -05:00
Ben Newman
982181fff8 Merge branch 'master' into devel 2019-11-14 16:28:07 -05:00
Ben Newman
d8563dab46 Merge pull request #10522 from meteor/release-1.8.2
Release 1.8.2
2019-11-14 16:25:48 -05:00
Ben Newman
97e1bba384 Bump package versions for the official 1.8.2 release. release/METEOR@1.8.2 2019-11-14 15:12:21 -05:00
Ben Newman
f29c0561ce Final History.md updates before official Meteor 1.8.2 release. 2019-11-14 10:15:35 -05:00
Ben Newman
c24077e65f Allow relative --test-app-path arguments when running test-packages.
https://github.com/meteor/meteor/pull/10772#issuecomment-553517459

The assertion in tools/fs/optimistic.ts was failing if I passed a relative
path for --test-app-path, and passing the path as a second argument when
calling assert made it easier to tell what was going on, so I decided to
keep that change.
2019-11-13 12:43:42 -05:00
Ben Newman
44d0f1f408 Bump package versions for 1.8.2-rc.10 release. release/METEOR@1.8.2-rc.10 2019-11-12 18:06:25 -05:00
Ben Newman
8ebff0670e Merge pull request #10774 from meteor/enable-additional-appveyor-debugging-output
Fix mysterious Windows AppVeyor test stalls.
2019-11-12 18:00:59 -05:00
Ben Newman
faeab6c7d4 Revert "Temporarily wrap files.rename on non-Windows platforms to validate safety."
This reverts commit 52d4809aeb, as promised
in the previous commit message.
2019-11-12 17:22:33 -05:00
Ben Newman
52d4809aeb Temporarily wrap files.rename on non-Windows platforms to validate safety.
Now that files.rename uses Promise.prototype.await on Windows, it's
important to be sure it never gets called outside of a Fiber. Though we
don't run our full test suite on Windows, we can validate this expectation
by wrapping files.rename on all platforms. This commit should be reverted
once the validation is complete.
2019-11-12 17:12:02 -05:00
Ben Newman
d52c9cc82f Avoid calling writeFileAtomically outside Fiber. 2019-11-12 16:58:05 -05:00
Ben Newman
8567390e7e Fix error stack trace parsing during Windows self-tests. 2019-11-12 16:38:22 -05:00
Ben Newman
c4e05dfffe Rewrite files.rename on Windows to retry after 50ms intervals.
Falling back to a full recursive copy was MUCH more expensive than waiting
a short amount of time before retrying the rename.

This aligns with the way graceful-fs handles EPERM and EACCES errors on
Windows: https://www.npmjs.com/package/graceful-fs#improvements-over-fs-module
2019-11-12 15:06:41 -05:00
Ben Newman
1b9fec3f8d Tolerate variable startup message order in static-html self-test. 2019-11-12 12:52:39 -05:00
Ben Newman
c9904c3ed7 Bump package versions for 1.8.2-rc.9 release.
Note that publishing 1.8.2-rc.8 failed on all platforms due to EMFILE (too
many open files) errors, which necessitated reverting PR #10771.
release/METEOR@1.8.2-rc.9
2019-11-11 19:38:24 -05:00
Ben Newman
41868fa165 Attempt to make static-html self-tests less flaky.
Salvaged from PR #10771, which I had to revert because it caused EMFILE
(too many open files) errors on Windows.
2019-11-11 19:35:48 -05:00
Ben Newman
926cba9a77 Revert "Merge pull request #10771 from meteor/copy-directories-asynchronously"
This reverts commit 77a9784929, reversing
changes made to e0ddae2cc7.
2019-11-11 19:35:16 -05:00
Ben Newman
a367c9aef5 Bump package versions for 1.8.2-rc.8 release. release/METEOR@1.8.2-rc.8 2019-11-11 19:12:13 -05:00
Ben Newman
b71ab5bec5 Bump compiler.BUILT_BY and LINKER_CACHE_SALT to force rebuild. 2019-11-11 19:12:11 -05:00
arggh
16e31728e4 Update license range for year 2019 (#10699)
Better late than never, right?
2019-11-11 19:04:44 -05:00
Ben Newman
77a9784929 Merge pull request #10771 from meteor/copy-directories-asynchronously
Write files in Builder#_copyDirectory asynchronously.
2019-11-11 19:03:44 -05:00
Ben Newman
61b2d1710b Attempt to make static-html self-tests less flaky. 2019-11-11 18:41:43 -05:00
Ben Newman
c7cc817d69 Use wrapDestructiveFsFunc for files.promises.writeFile. 2019-11-11 17:39:35 -05:00
Ben Newman
cf04e051e3 Write files in Builder#_copyDirectory asynchronously.
Using fs.writeFileSync in a serial style becomes especially costly when
we're writing a lot of files. In a recent profiling exercise I did on
Windows, nearly 80% of the time taken by Builder#_copyDirectory was spent
just closing the written files. By using the asynchronous fs.writeFile
function, we should be able to parallelize at least some of this work, and
await all the promises at the very end of copying the directory.
2019-11-11 17:26:03 -05:00
Ben Newman
e0ddae2cc7 Bump $BUNDLE_VERSION to 8.16.2.2 before rebuilding dev bundle. 2019-11-08 20:04:38 -05:00
Ben Newman
bbd5a12787 Update npm to v6.13.0 and pacote to v9.5.9. 2019-11-08 18:56:28 -05:00
Ben Newman
aec3bc76e3 Bump package versions for 1.8.2-rc.7 release. release/METEOR@1.8.2-rc.7 2019-11-08 16:33:29 -05:00
Ben Newman
e4597b1e08 Merge pull request #10765 from meteor/prefer-main-over-module-in-legacy-bundle
Prefer "main" field of package.json over "module" in legacy bundle.
2019-11-08 11:51:23 -05:00
Ben Newman
ecb241cab2 Update History.md to reflect PR #10765. 2019-11-08 11:36:19 -05:00
Ben Newman
bd9043db20 Prefer "main" field of package.json over "module" in legacy bundle.
https://github.com/meteor/meteor/issues/10658#issuecomment-550456095
https://github.com/meteor/meteor/issues/10658#issuecomment-551870115

As usual, changes to module resolution logic need to happen in parallel in
tools/isobuild/resolver.ts and in packages/modules-runtime. However,
thanks to the modern/legacy system, it's easy to make the modules-runtime
package behave exactly the way(s) we want in the server, modern client,
and legacy client bundles.
2019-11-08 11:15:23 -05:00
Ben Newman
37b1683fbc Centralize legacy arch logic in tools/utils/archinfo.ts. 2019-11-08 11:15:23 -05:00
Ben Newman
f290eef631 Simplify delayed watching of lazy modules. (#10763)
* Avoid modifying unibuild.watchSet in PackageSourceBatch._watchOutputFiles.

Should fix #10736 by preventing old hashes from remaining in
unibuild.watchSet, which was sometimes causing isUpToDate to fail
immediately upon restart.

* Regression test for issue #10736.
2019-11-08 11:08:56 -05:00
Ben Newman
8da7f3bfe9 Merge pull request #10543 from brucejo75/accounts_call_onLogin_callbacks_startup
[fix #10157] Make sure onLogin callbacks are called during startup.
2019-11-06 10:57:10 -05:00
Ben Newman
ec0ed4dec9 Simplify _startupCallback by passing callback rather than ID. 2019-11-06 10:23:16 -05:00
brucejo
e17b52afac Call onLogin callbacks during registration if already logged in.
Fixes #10157.
2019-11-06 10:16:26 -05:00
Ben Newman
00564ac2ad Bump package versions for 1.8.2-rc.6 release.
I made a small mistake publishing rc.5 (forgot to bump
meteor-release-experimental.json), so it seemed simpler to skip straight
to rc.6.
release/METEOR@1.8.2-rc.6
2019-11-05 17:27:36 -05:00
Ben Newman
766fa0296b Bump $BUNDLE_VERSION to 8.16.2.1 before rebuilding dev bundle. 2019-11-05 16:52:43 -05:00
Ben Newman
9aebc580b7 Stop creating @babel/runtime/helpers/builtin junction on Windows.
Although I managed to make this work somewhat better in my previous
commit, we still have to create a .tar.gz archive of the dev bundle, and
7z appears not to handle junction points very well. I think it will be
much simpler to avoid the helpers/builtin symlinking hack on Windows.
2019-11-05 16:39:59 -05:00
Ben Newman
8fb3396e2e Invert double and single quotes in Windows symlink operation. 2019-11-05 16:39:59 -05:00
Ben Newman
8129af6015 Avoid using console.error on success in Windows dev bundle scripts.
The scripts/generate-dev-bundle.ps1 script fails if any external command
logs to STDERR instead of STDOUT, apparently.
2019-11-05 16:39:59 -05:00
Ben Newman
241ba1de0f Update meteor-babel to version 7.7.0.
Note that typescript has been updated to version 3.7.2 as part of this
update: https://devblogs.microsoft.com/typescript/announcing-typescript-3-7-rc/
2019-11-05 11:39:18 -05:00
Ben Newman
dea305ca4a Set a higher LRU cache size for makeCheapPathFunction entries.
In PR #10720, we introduced the makeCheapPathFunction in an effort to
reduce the caching overhead for very frequently called (and already pretty
quick) operations like files.stat.

However, the default maximum LRU cache size of Math.pow(2, 16) can cause
quite a bit of cache eviction churn for large applications, which @veered
has identified as a potential source of build performance problems.

By setting the maximum cache size to Math.pow(2, 20) instead, I am no
longer seeing any files.stat calls in the profiling output for rebuilding
a large internal app, saving several seconds of rebuild time. The obvious
downside is that this cache might accumulate more memory over time, which
is why I didn't just set the max to Infinity, though that might be a
viable option if the total set of paths ever stat'd is small enough to fit
into the available memory.

In the future, I hope to find ways of managing LRU cache size that respond
to actual memory pressure (relative to available memory), rather than
pruning the cache after an arbitrary numeric threshold is reached.
2019-11-05 11:19:43 -05:00
David Glasser
3e9e11d76c tools/deploy: provide more context for version-status errors (#10670)
Also only print the error once on failure.
2019-11-05 10:01:53 -05:00