Commit Graph

1882 Commits

Author SHA1 Message Date
ekatek
ad708ca569 this should fix local versionsFrom in most cases and is technically right 2014-08-05 13:31:24 -07:00
David Glasser
62db7b694c api.versionsFrom may only be called once 2014-08-05 13:17:26 -07:00
ekatek
82323fcfa9 do not close the connection 2014-08-05 13:10:56 -07:00
ekatek
ecaa9e0231 download all dependencies to be on the safe side 2014-08-05 13:10:56 -07:00
ekatek
bcf85a42b9 don't print out add messages when no versions file present 2014-08-05 13:10:56 -07:00
ekatek
64ddf8a979 fixing the amIAuthorized issues 2014-08-05 13:10:56 -07:00
ekatek
5e4c8cd276 search --mine 2014-08-05 13:10:55 -07:00
ekatek
98a9b5b31a don't check authorization on the client 2014-08-05 13:10:55 -07:00
David Glasser
ddc3657e4f Watch files which fail before emitting a resource
Regression introduced by the CSS watching code (specifically, f230eba62)
by the sourceIsWatched check. We need to be able to tell the difference
between "source handler didn't do anything because there was an error"
and "source handler didn't do anything because it's web-specific and
this is an os arch".

A simple fix would have been to interpret compileStep.error as
"sourceIsWatched = true", but I didn't think of that until after doing
it the slightly more complicated but more precise way :)

Also, ensure that if the runner rebuilds the client and there's an
error, it properly kills the app process (and the watchers and the
keepalive interval, etc).
2014-08-04 21:32:22 -07:00
Emily Stark
07852ebcbe Fix galaxy login 2014-08-04 20:38:33 -07:00
David Glasser
7d05640ea0 Make buildmessage fiber-aware
Port a simplified version of Meteor.EnvironmentVariable and
Meteor.bindEnvironment to fiber-helpers.js to deal with this.

Identify uses of fiberHelpers.inFiber and switch them to either
fiberHelpers.bindEnvironment (if the callback they are wrapping is
semantically "part of" the context that creates the callback) or
fiberHelpers.inBareFiber (otherwise).

Without this, concurrency was causing the wrong buildmessage message
sets and jobs to be active when builds yielded.
2014-08-04 19:03:05 -07:00
ekatek
581b51afcc clean up misc, operations stuff 2014-08-01 15:29:19 -07:00
ekatek
9d5aa280c3 invalid release should be a buildmesage, not an error 2014-08-01 00:13:08 -07:00
David Glasser
d7594fd72d Code change from packaging-PREVIEW branch 2014-07-31 15:16:52 -07:00
David Glasser
1d17caeeaf Merge branch 'devel' into packaging 2014-07-31 15:07:40 -07:00
Emily Stark
bf0e0b61df Fix usage of timeoutScaleFactor in test-utils 2014-07-31 15:05:56 -07:00
David Glasser
8adb56b2b3 Fix typo in make-bootstrap-tarballs 2014-07-31 14:33:23 -07:00
David Glasser
09faa5371a Merge branch 'packaging-only-client-archs' into packaging 2014-07-31 14:20:49 -07:00
David Glasser
cee6d7401e fix orderKey regexp 2014-07-31 14:12:21 -07:00
Matthew Arbesfeld
8bcbd65344 Separate "browser" target into web.browser/cordova
Cordova projects often have a different set of files than web targets,
so we would like to be able to target different client architectures in
our bundles. Ideally, we allow the user to use arbitrary client
architectures - but this patch is a step in the right direction by
abstracting out more of the hard coded "browser"/"os" lines.

We accomplish this separation in a backwards compatible way by allowing
api.___ commands to target a "client" architecture. For example,
api.addFiles('a.js', 'client') adds 'a.js' to both the 'client.browser'
and 'client.cordova' targets.

Effects on 0.9 packaging stuff: packages don't have to change, but the
"data.json" file in ".meteor0" has "browser" in some places. We think we
have to fix the troposphere code where this data.json is created.

Some plugins will also be backwards-incompatible with this change, since
many have a "clientArch.matches("browser")" line in the plugin
code. Ideally, we fix plugins so that this stops being an issue, but for
now package authors can just patch that line.

At the compiled (unipackage) level the new names are 'web.browser' and
'web.cordova', replacing 'browser'. In package.js, the new names are
'client.browser' and 'client.cordova', serving as an adjunct to 'client'.
2014-07-31 14:12:15 -07:00
ekatek
722ebace9a don't just crash on unknown packages when changing admin 2014-07-31 13:53:40 -07:00
ekatek
1976d4f4f1 different error code for server errors 2014-07-31 13:53:40 -07:00
David Glasser
06a7dc90b5 Add many buildmessage.capture/assertInCapture
Moving towards a world where all things that might invoke buildmessage.error are
encouraged to be in a buildmessage.capture.

This commit is the answer to the question "how many small changes need to be
made to add buildmessage.assertInCapture to PackageCache.loadPackageAtPath?"

Next steps include:
 - Making catalog.resolveConstraints ALWAYS buildmessage.assertInCapture
   (not just when ignoreProjectDeps isn't passed)
 - Then changing resolveConstraints to complain using buildmessage
 - Removing the process.exit(1) in _ensureDepsUpToDate
 - Adding a more structured way to ensure that most commands
   call _ensureDepsUpToDate at an unsurprising location
2014-07-30 22:16:21 -07:00
David Glasser
b11a623193 assert rebuildLocalPackages in capture 2014-07-30 20:38:27 -07:00
David Glasser
26006d53dc Merge branch 'devel' into packaging
Conflicts:
	tools/utils.js
2014-07-30 17:40:44 -07:00
ekatek
0460c5015f oh right wrap try around the block that can actually fail 2014-07-30 16:01:32 -07:00
ekatek
a91ff48da5 Allow MDG members to publish unprefixed releases in client 2014-07-30 15:58:12 -07:00
ekatek
f2ebbb1238 more piping errors to stderr 2014-07-30 15:58:12 -07:00
David Glasser
26f9b283a5 Tree hashes of builds now ignore package.json
We were finding that npm was inconsistently including various fields (eg
"readme") in package.json, leading to spurious "must update the version
number" errors in publish-release --from-checkout. This should be good
enough, as any actual package change should also have some other file
changed!
2014-07-30 15:44:12 -07:00
Justin SB
706fc7ebe7 Allow TIMEOUT_SCALE_FACTOR env variable to scale up timeouts for self-test
Particularly for automated tests, where we may run on a slow machine, we need
an escape valve to let us boost the timeouts.  This also allows for a 'tolerant'
test (scale factor 2+?) and a 'strict' test (scale factor 0.5?) etc
2014-07-30 14:37:18 -07:00
ekatek
0902f7e39a make sure errors go to stderr: cursory pass 2014-07-30 08:07:12 -07:00
ekatek
d316eacab2 check if the package already exists and return a different error code 2014-07-29 21:19:43 -07:00
David Glasser
43b04a12b2 add some buildmessage.assertInJob to PackageClient 2014-07-29 18:57:59 -07:00
David Glasser
70c0ff2c98 put calls to publishPackage in buildmessage 2014-07-29 18:57:59 -07:00
David Glasser
81e4b51cf6 Put --get-ready's PackageLoader.getPackage in job 2014-07-29 18:57:59 -07:00
David Glasser
950a3d9c1b Use buildmessage in publish-for-arch
Also, drop a unipkg.saveToPath that we think is redundant (since
5e72f55eb2 changed bundleBuildResult to also call saveToPath)
2014-07-29 18:57:59 -07:00
Matthew Arbesfeld
c6ad06fe77 Fix for run --once test. Actually include programs in star.json 2014-07-29 18:42:25 -07:00
David Glasser
30a397cde5 Rename ServerCatalog -> OfficialCatalog
Since it it used for catalog.official.
2014-07-29 17:19:31 -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
381956d40b make a test failure not abort the whole self-test 2014-07-28 17:37:20 -07:00
Matthew Arbesfeld
c65a199c3c Glasser fixes 2014-07-28 17:12:27 -07:00
Matthew Arbesfeld
b8ae210d9b Add documentation 2014-07-28 17:12:26 -07:00
Matthew Arbesfeld
55fe8a8aae Fix hot code push client-side reloads.
We were overwriting the server directory when a client-side file changed,
which made all process calls fail, such as process.cwd() and fs.*. We
abstracted out some of the builder code so that only the client targets
are "rebuilt" when a client side file changes.
2014-07-28 17:12:26 -07:00
ekatek
3aff2199cc fixing old cli test 2014-07-28 16:09:19 -07:00
David Glasser
5b69c7c25b fix report-stats test from release 2014-07-28 16:07:42 -07:00
David Glasser
b7fa7e2452 don't run constraint-solver test from release 2014-07-28 16:07:41 -07:00
ekatek
0e74bdf769 help text for meteor update 2014-07-28 15:07:38 -07:00
Emily Stark
9e65038d08 Update "old cli test" for new 'meteor remove' output 2014-07-28 10:46:15 -07:00
David Glasser
6bb4b4de7b Help for 'meteor publish-for-arch' 2014-07-25 16:10:08 -07:00
ekatek
a58f2c3bb2 mark some mroe tests as net with comments; first pass on making it ... exit, instead of craash in ensureDeps. Next up, maybe it can do something better than process.exit 2014-07-25 15:34:54 -07:00