Commit Graph

57 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
David Glasser
d75aba324c use sqlite instead of racy json file for banners 2014-12-01 01:41:13 -08:00
David Glasser
46d31e1ce7 Fix update-related bugs
- don't crash when listing upgraders (2 bugs, introduced on this branch)

- successfully write banners-shown file so that we sometimes print
  shorter banners (introduced with sqlite)

- in self-test tropohouse, keep the sadly necessary symlinks

autoupdate test file now passes!
2014-11-25 09:06:28 -08:00
David Glasser
3b7459e62a start on self-test. file 'run' passes 2014-11-25 09:06:27 -08:00
David Glasser
4000dfb993 from-checkout builds isopackets on startup
Nothing actually LOADS from isopackets yet.
2014-11-07 16:45:58 -08:00
ekatek
62e3c2c500 use the right build server and minor stuff 2014-10-16 17:10:45 -07:00
ekatek
f83c08e8fa introduces the 'meteor admin get-machine' command; changes publish not to publish binary builds
This commit does the following:
- Introduces the get-machine command. This command contacts the build farm server
 gets back a machine reservation and then opens    a secure shell to the machine (Alternatively,
 you can ask for a json). This also involved factoring out some   commands to deal with authenticated
 ddp from package-client into a more general auth-client.

- No longer publish binary builds in publish or publish-release; instead give the user a warning
to run get-machine and then publish-for-arch. Someone could ignore this: --existing-version and
publish-for-arch both publish binary builds, but you need to be    at least somewhat familiar with
what you are doing to run them.      Hopefully, you are running them  from a certified build machine,   but
if you are not,    then, well, it    is your    package.

Stuff remaining:
  - We are going to have a url to external documentation, but I haven't written it yet.
  - We are currently talking to   the test-build server, instead of the build server, so mac doesn't
work.
(Neither of those changes require significant tool changes)
2014-10-14 16:49:50 -07:00
Avital Oliver
9a6532c640 Work towards fixing the "do-not-update-to-rcs" self-test.
The test was failing because it was written to run against the real
local warehouse, instead of a stubbed one. When initializing the
Sandbox with an explicit warehouse, the test failed because of
incorrect logic piping the right path to the packages database
(in this case "test-packages.data.db" instead of "packages.data.db").

Unfortunately, the test still fails -- this time potentially due to a bug:
After publishing the package for the first time with `--create`,
the next step tries to update but gets the following error:
    There is no package named test:i1iyhj. If you are creating a
    new package, use the --create flag.
2014-10-12 23:08:26 -07:00
ekatek
b8d927851a increment client cache format to v2
The client cache in sql-land was broken: it sent over the wrong sync token as the default.
This meant that the server thought that this was a much older client. As a result, any
0.9.3+ packages with '_' or '||' in their versions/dependencies were filtered out. There is no
easy way to undo that sort of filtering without deleting the db for a variety of reasons, and if
we are going to delete the db, we might as well increment the version so we don't have to worry about
consistency.
2014-10-08 22:31:37 -07:00
Pascal Rapicault
8bb4904f21 fix comment 2014-09-23 10:12:12 -04:00
Pascal Rapicault
32a0178e88 merge devel 2014-09-22 22:59:15 -04:00
Nick Martin
4e78ed4873 Merge release-0.9.3 (commit '78f36994e332fe1eb80eb70eaa01fdca87155b82') into devel
Conflicts:
	tools/buildmessage.js
	tools/commands-packages.js
	tools/console.js
	tools/package-client.js
2014-09-19 21:54:51 -07:00
Nick Martin
6fec720a2a Use banners from v1 2014-09-19 18:15:18 -07:00
ekatek
717d9a0198 actually use v1.1, and save v2 for sql lite changes in catalog versioning 2014-09-19 16:56:25 -07:00
ekatek
e1311c407c function to check if a version constraint is compatible with pre0.9.3 versions, default token to send to syncNewData includes format specifications 2014-09-19 16:56:25 -07:00
ekatek
c35f4c51dc actually use v1.1, and save v2 for sql lite changes in catalog versioning 2014-09-19 13:47:37 -07:00
ekatek
f61638ca0a function to check if a version constraint is compatible with pre0.9.3 versions, default token to send to syncNewData includes format specifications 2014-09-19 13:41:01 -07:00
Pascal Rapicault
6cc7eee173 hook the remote catalog 2014-09-12 17:07:01 -04:00
Emily Stark
d5e3b2691a Make test packages server URL universe-friendly 2014-08-27 15:56:07 -07:00
Emily Stark
ec0d2bc8b5 Progress towards self-test using DEPLOY_HOSTNAME.
Still can't run all tests against testing servers because the testing
accounts server would need to be configured to send email.
2014-08-25 19:37:47 -07:00
Emily Stark
0c2dd7aff4 Change package stats server hostname 2014-08-21 18:23:37 -07:00
David Glasser
a6b44f77f8 Use the real package server. 2014-08-05 18:54:20 -07:00
David Glasser
2aa9fe6600 include a data.json in the bootstrap tarball
this will allow us to react to resetData by deleting packages, without
having that be everybody's first experience
2014-08-05 17:32:33 -07:00
David Glasser
cd57ac3535 isolate different servers' packages
also, in self-test, only set $METEOR_PACKAGE_SERVER_URL for the specific
runs that actually want the test server (using a tag) rather than kinda
always by accident
2014-07-28 20:45:08 -07:00
David Glasser
59d38b28bb minor cleanup 2014-07-25 14:12:21 -07:00
ekatek
83ac27f9c4 A separate data.json for each package server 2014-07-24 18:36:15 -07:00
ekatek
624571ba20 and more cleanup 2014-06-25 19:47:17 -07:00
ekatek
18e5bd3b6c check for obviously bad architectures 2014-06-25 19:16:56 -07:00
ekatek
b062d5b16e oops contact the right server 2014-06-25 16:11:12 -07:00
ekatek
b2dd824fc0 pagination support and also override arch to deploy to mother 2014-06-25 15:59:40 -07:00
David Glasser
7098c68260 print the main banners! 2014-06-09 16:58:22 -07:00
Emily Stark
71917200b7 Go back to https for package server 2014-05-28 12:06:04 -07:00
Emily Stark
9e3d6fc5cf Merge branch 'package-stats' into packaging
Conflicts:
	tools/commands.js
2014-05-13 13:43:48 -07:00
Emily Stark
573ef7489f Set test package stats server in environment variable 2014-05-13 11:58:31 -07:00
David Glasser
ce73d8855b Make tropohouse a class
The old singleton is now called tropohouse.default
2014-05-12 18:05:13 -07:00
Emily Stark
7ec7cb4d97 WIP: record package usage stats 2014-05-07 11:27:25 -07:00
David Glasser
9d70ff64c9 springboard almost works
springboarding happens infinitely because of build ids

have to manually bootstrap a tropohouse

fixed some other things:

 - store package server token in correct domain
 - copy files (eg packages pre-publish) with +x flags
 - catalog.getReleaseTrack works
 - don't pass release to uniload (Meteor.release will always
   end up 'UNILOAD')
 - fix building meteor-tool again
 - stop supporting apps without .meteor/release
 - merging unipackages with tools works

springboarding to warehouse releases totally not supported
2014-05-05 19:18:34 -07:00
David Glasser
714f98f9fe allow explicit override of package server 2014-05-02 17:52:27 -07:00
ekatek
78683884bb adding warning message about package server 2014-04-04 18:42:23 -07:00
ekatek
0530d57e11 some hack on config to be able to talk to the test package server 2014-04-04 18:41:51 -07:00
ekatek
fb26f842c7 use test server for now 2014-04-04 18:41:51 -07:00
ekatek
a4016e106e refactoring add to use constraint solver and .meteor/versions 2014-03-06 16:15:38 -08:00
David Glasser
6eff081da1 use .meteor in the checkout if you have a checkout 2014-03-05 15:14:05 -08:00
ekatek
ef70c87fc9 moving to the right storage mechanism and introducing the list command 2014-03-05 02:16:26 -08:00
ekatek
811f831ddc sync collection changes from the server 2014-02-28 15:28:55 -08:00
Emily Stark
d50049777f A quick-and-dirty 'meteor publish' command.
It more or less works, but needs lots of cleanup.
2014-02-28 02:03:02 -08:00
Geoff Schmidt
83183a98d0 remove unused, bitrotted engine transition test hook 2014-01-27 02:34:53 -08:00
Geoff Schmidt
0c69701a32 sandbox tests. for now, just the .meteorsession file. 2014-01-22 02:54:10 -08:00
Geoff Schmidt
9db5fec711 files: update code style 2013-12-30 06:11:04 -08:00