Commit Graph

85 Commits

Author SHA1 Message Date
Slava Kim
8cafda074c Reduce the generality of meteor-npm's execFileSync 2015-01-20 22:03:24 -08:00
David Glasser
6320acabc4 Merge branch 'master' into devel
Conflicts:
	History.md
	tools/safe-pathwatcher.js
	tools/tests/old.js
	tools/watch.js
2014-12-19 11:42:50 -08:00
David Glasser
0befea50f2 Delete versions.json files; they are no longer used 2014-12-19 11:34:07 -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
David Glasser
6ea8443f30 Update calls to addFiles, onUse, and onTest 2014-12-09 20:18:31 -08:00
David Glasser
e7bfa5202e Update packages to use Package.registerBuildPlugin 2014-12-09 20:09:34 -08:00
David Glasser
f4e69b9e96 Fix test-bundler-assets some more 2014-11-25 09:06:31 -08:00
David Glasser
1a56f3c55d fix test-bundler-npm
remove one subtest that's been super flaky for ages
2014-11-25 09:06:30 -08:00
David Glasser
3e1621cdf6 fix bundler-assets 2014-11-25 09:06:28 -08:00
David Glasser
5622d3384e fix bundler-options 2014-11-25 09:06:28 -08:00
David Glasser
f0ff76a24b watch local package search dirs 2014-11-25 09:06:18 -08:00
David Glasser
438ddad7bc Remove catalog.complete from core code
It's still in unmigrated commands.

Remove tropohouse's catalog.  It was there to stop you from downloading
local packages but downloadPackagesMissingFromMap does that based on the
PackageMap now.
2014-11-25 09:06:16 -08:00
David Glasser
ee649d3bda Move isopack-compiler back to compiler 2014-11-25 09:06:15 -08:00
David Glasser
c3cd93c989 Get rid of a few random spots that refer to .build. 2014-11-25 09:06:08 -08:00
David Glasser
170c0acad7 Rename unibuild everywhere to isopackets 2014-11-07 16:45:58 -08:00
David Glasser
97f6a0236e get rid of catalog.uniload
There is no longer a uniload catalog when running from a release, since
the release contains whole isopackets (programs) not
isopacks (packages).

We only need a uniload-specific catalog when we're actually rebuilding
isopackets (not in order to load them), so we now have it as a local
variable in the two places that build isopackets.

The deleted code in package-loader.js was specific to the prebuilt
uniload package which no longer exists.
2014-11-07 16:45:58 -08:00
David Glasser
b5d2cce308 Refactor LocalCatalog
- Simplify internal data structure to just have one map of name ->
  various data instead of a whole bunch of different unsynchronized data
  structures (most of which were used with frequent O(n) operations).

- Move the getLoadPathForPackage logic which combines local and remote
  packages into LayeredCatalog from LocalCatalog, and delete the
  unnecessary copy in BootstrapCatalogCheckout.

- Rename a bunch of fields to make it explicit which ones contain
  package objects, which ones contain package directories, and which
  ones contain package *search* directories

- Replace random version IDs and a long comment about why random is safe
  with sequential. (I don't think these version IDs are ever used
  anyway.)

- Drop unused "initializing" option to refresh

- Drop redundant call to _recomputeEffectiveLocalPackages in
  addLocalPackage (it is called immediately below by refresh).
2014-10-30 22:43:13 -07:00
David Glasser
f64e369888 self-test updates files 2014-10-30 15:12:30 -07:00
Emily Stark
9d0ab76b87 Fix old cli tests for meteor build outputting directory 2014-10-23 16:01:28 -07:00
David Glasser
b5f284305d update test file thing 2014-10-23 14:06:15 -07:00
David Glasser
cfe1e5d230 test file updates from self-test 2014-10-22 14:26:10 -07:00
Emily Stark
5a522d0ce1 Update old cli tests for new 'meteor remove' text 2014-10-21 12:59:29 -07:00
Justin SB
4ec3cb2a55 Rename LayeredCatalog refresh -> refreshLocalPackages, drop cached resolver 2014-10-17 13:47:20 -07:00
David Glasser
cdbaca0b8b release.load no longer needs buildmessage
It used to need buildmessage because catalog.official.getReleaseVersion
used to be capable of rebuilding local packages. Now it can't! Simplify
all call sites.

Note that buildmessage was not actually used to express "no such
release", before or now.
2014-10-17 13:47:19 -07:00
David Glasser
174a059904 Improve cli-test 2014-10-17 13:37:04 -07:00
Slava Kim
4d41c4c7cd Fix failing meteor build self-test 2014-10-10 14:36:43 -07:00
Emily Stark
99228d7c7b Clean up tarball in old-cli-test.
If we don't clean up the tarball, then the following command (`meteor
build`) fails ("Couldn't create tarball"), but for some reason still
exits with code 0. So we then go on to successfully untar the output of
`meteor build`. If we clean up the tarball from `meteor bundle`, we at
least catch the failure by trying to untar a nonexistent file.
2014-10-09 22:21:32 -07:00
ekatek
1ab17b6aa8 tells bundler tests to initialize the official catalog - we used to not need this, but now that we use the official catalog as the recordstore not mirrored locally, we have to do it 2014-09-29 15:04:10 -07:00
ekatek
d8377487dc support multiple major versions in meteor 0.9.3 and above. A little hacky in the tool around keeping old interfaces, but it works 2014-09-18 00:12:30 -07:00
Emily Stark
ccfee68145 Merge branch 'master' into devel
Conflicts:
	docs/client/api.html
	docs/client/data.js
	docs/client/names.json
	meteor
	packages/autoupdate/package.js
	packages/base64/.gitignore
	packages/constraint-solver/package.js
	packages/device-orientation/.gitignore
	packages/less/package.js
	packages/meteor-tool/package.js
	packages/meteor/package.js
	packages/package-version-parser/package.js
	packages/webapp/webapp_server.js
	scripts/admin/meteor-release-experimental.json
	tools/commands.js
	tools/help.txt
	tools/package-version-parser.js
	tools/run-all.js
	tools/tests/apps/build-errors/packages/with-colon-plugin/.gitignore
2014-09-15 14:48:57 -07:00
David Glasser
d5df1b9eb5 sigh, old test versions files update 2014-09-11 15:57:22 -07:00
Emily Stark
88bf4ce810 Update old cli test for meteor build. 2014-09-11 15:30:39 -07:00
ekatek
390b6394b5 strip out extra dependencies on semver in tool 2014-09-10 15:53:23 -07:00
ekatek
debb13fdb6 refactorred the update function to be legible and have fewer bugs 2014-09-05 18:21:24 -07:00
Sashko Stubailo
84f1fcace1 Fix docs and self-test 2014-08-29 11:52:33 -07:00
Sashko Stubailo
aafd8a0d3e Merge branch 'release-0.9.1' into ddp
Conflicts:
	packages/livedata/package.js
2014-08-28 17:16:38 -07:00
Sashko Stubailo
3189a364e9 Rename livedata to ddp, meteor test-packages passes 2014-08-28 12:53:34 -07:00
Sashko Stubailo
6f72a3c649 Update deps to tracker in self-test 2014-08-28 12:04:27 -07:00
David Glasser
2e259e61c2 update old test version, sigh 2014-08-25 13:47:08 -07:00
David Glasser
4482427da5 make cli-tests tests 2014-08-25 12:31:37 -07:00
David Glasser
a247b79aa1 test version bumps, sigh 2014-08-24 21:17:58 -07:00
David Glasser
131b73bc71 update tools/tests id files
really, these directories shouldn't have the files, we should copy to a
temp dir...
2014-08-22 17:33:36 -07:00
ekatek
e859266aaf changes, as per glasser's code review 2014-08-21 13:41:29 -07:00
David Glasser
4af87eadb1 old test app version bump (this is silly) 2014-08-18 00:28:37 -07:00
David Glasser
149fbe942c get old cli tests passing for me 2014-08-16 10:23:35 -07:00
David Glasser
924195b224 app versions bump, grr 2014-08-14 16:17:00 -07:00
David Glasser
c9488c74d0 versions update 2014-08-13 18:11:46 -07:00
David Glasser
f946ff9054 uniload from checkout uses separate catalog 2014-08-13 18:11:46 -07:00
David Glasser
2755f95bb6 Move uniload package list to uniload.js
Actually verify that uniloaded packages are in the list. Add missing
'ejson'. Remove (ah well) test that relies on ability to uniload an app
package (which shouldn't work anyway, but it would be nice to test
uniload Assets...)
2014-08-13 18:11:46 -07:00
David Glasser
b6955a3899 Move towards non-singleton catalog.complete
We're going to make uniload use a different flavor of "complete" catalog
soon.  So we need to reduce the number of singleton-ish references to
it.

Also, we need one PackageCache per catalog, so stop it from being a
singleton too.
2014-08-13 18:11:46 -07:00