Commit Graph

13587 Commits

Author SHA1 Message Date
Slava Kim
c247e2526f Add more tests to observeSequence's moveTo
Including a failing test for #2845
2015-03-10 15:04:42 -07:00
David Greenspan
8e75308c6f Merge branch 'use-logic-solver' into devel 2015-03-10 03:51:56 -07:00
David Greenspan
3d64b13555 Give more commands "--allow-incompatible-change"
build, deploy, --prepare-app, and --get-ready for now.

Make the error message more generic (not mention which commands
support the flag, because it will be basically "all" of them). Also
replace "breaking" with "potentially incompatible" as discussed with
Matt a while back.
2015-03-10 03:50:41 -07:00
David Greenspan
284f4ad6aa Refactor getGravity et al. 2015-03-10 03:37:01 -07:00
David Greenspan
c5b768c5ac Reorg solver.js
Combine the "analyze" parts of Solver into one function, and reorder
the file so that it flows better.  Add some comments.
2015-03-10 03:22:45 -07:00
David Greenspan
a5bdd887fe Clarifying comment 2015-03-10 02:49:20 -07:00
David Greenspan
740b0f8ff7 Remove old Version Solver code 2015-03-10 02:46:16 -07:00
David Greenspan
8638954315 Validate package names, with tests 2015-03-10 02:32:12 -07:00
David Greenspan
050a17305b Improve some error messages
Biggest change here is filtering out non-constraining constraints
when listing constraints.  For example, when we list the constraints
on "underscore", don't list a ton of lines that just say "underscore <- accounts-password" and the like (with no actual constraint on underscore).
2015-03-10 02:04:13 -07:00
David Greenspan
6aad026dcf Merge remote-tracking branch 'origin/devel' into use-logic-solver
Conflicts:
	packages/constraint-solver/package.js
	packages/package-version-parser/package.js
2015-03-10 01:43:19 -07:00
David Greenspan
454af5d507 Change error messages a little 2015-03-10 01:40:25 -07:00
David Greenspan
e7702f284e Change --breaking to --allow-incompatible-update 2015-03-10 01:37:58 -07:00
David Greenspan
e6b0b999da Comment about "lock down the versions" 2015-03-10 01:10:28 -07:00
David Greenspan
1a2953cf4d Tests that cover more code
For example, these tests would have caught the `var p = pv.p` typo,
and also the place `costWeights` was incorrectly set to `1` in
Solver#minimize.

We also test that conflicting top-level constraints are not a
problem if the package they refer to does not need to be selected.
2015-03-10 00:50:12 -07:00
David Greenspan
f0c817f4e4 Treat top-level constraints properly as weak
Don't throw an error just because notice that top-level constraints
aren't satisfiable for some package.  We might not need that package.
2015-03-10 00:23:10 -07:00
David Greenspan
b68f91db99 Fix glasser's "actual bug"
That's what we've been calling it.

To see this break and then work, add the following line above
the comment that begins `// lock down versions...`:

```
self.solution = logic.solveAssuming('bar');
```

And then run the test "previous solution no longer needed"
in input-tests.js.

The old code would lock down "bar", including the fact that it
is in the current solution.  The new code only locks down the version
number in the case where "bar" is used, so it is able to be optimized
away.
2015-03-10 00:09:09 -07:00
David Greenspan
76cf2f28ad Call "nudge" from constraint solver 2015-03-09 23:50:48 -07:00
David Greenspan
979554ab55 Ban versions not matching top-level constraints
in solver.  This should speed things up a lot!
2015-03-09 23:44:47 -07:00
David Greenspan
de5e67356a Some clean-up and allow minimization strategies 2015-03-09 23:15:25 -07:00
David Glasser
f207371bc0 Revert "Add some helpers for testing wrapped text"
This reverts commit 4a6dd52bca.

This made some tests flaky because notSpaceSensitive sometimes (but not
always!) ate the newline after the regexp.

We should just disable word wrapping in processes run by self-test
instead.
2015-03-09 22:31:49 -07:00
David Greenspan
5810fd6c81 Prevent stack overflow in logic-solver
Turn recursive addClauses->useFormulaTerm->addClauses into iterative.
Also do a couple tweaks that seem to improve performance.

The "stack overflow bug" case is now hovering around 10-20 seconds.
(It's a failure case, but it sure takes a while to fail.)
2015-03-09 22:20:34 -07:00
Avital Oliver
da159885f4 Windows installer signup flow
Re-introduced the signup/login page and piped through the HTTP
requests to a fake accounts server. This includes some tweaks
to the signup/login UI.
2015-03-09 20:49:59 -07:00
sashko
2ecbb5b96d Remove top header and background images 2015-03-09 20:30:43 -07:00
Tom Coleman
4c6c1d71ff Allow changing password without logging all users out. 2015-03-09 16:15:19 -07:00
David Glasser
590af5e8c2 Revert "Merge branch 'websocket-compression-take-2' into devel"
This reverts commit 5d3cfa2d76, reversing
changes made to 2b466a9015.

Ah well, we tried to enable websocket compression again and ran into
more bugs.

First, newer versions of websocket-driver seem to sometimes send
duplicate close messages:
https://github.com/faye/faye-websocket-node/issues/41

This occurs whether or not deflate is actually used.

Second, in some circumstances permessage-deflate seems to completely
corrupt messages. This was reasonably easily observable by running
test-packages with Chrome, and seeing that sometimes (but not always) a
large number of bad JSON messages got printed to the client
console.  (Another symptom was that the total number of tests would be
larger than it should be, leading to messages like "Passed 1109 of
1153", presumably because the test name got corrupted in some status
messages.) https://github.com/faye/permessage-deflate-node/issues/4

See #3007.
2015-03-09 15:10:50 -07:00
David Glasser
d98733eee6 Merge branch 'revert-current-data' into devel 2015-03-09 14:20:51 -07:00
Sashko Stubailo
395f65859b Re-add helpful changes from f2840103ca 2015-03-09 13:40:26 -07:00
Sashko Stubailo
a6d4e98407 Revert "Tests for Template.currentData and Template.parentData"
This reverts commit f2840103ca.

Conflicts:
	packages/spacebars-tests/template_tests.html
	packages/spacebars-tests/template_tests.js
2015-03-09 13:39:44 -07:00
Sashko Stubailo
4dafb236af Change documentation for Template.currentData in events 2015-03-09 13:37:45 -07:00
Sashko Stubailo
a4d5e95bb1 Revert "Make event handlers get called with target's view"
This reverts commit 72887bb0ee.
2015-03-09 13:36:23 -07:00
Slava Kim
eb33978b60 Always guard leaking env variables on Windows with SETLOCAL/ENDOCAL
Windows-only
2015-03-09 12:05:02 -07:00
David Greenspan
eb9698ae7b Reproduce weird stack overflow bug in a unit test 2015-03-06 18:42:50 -08:00
David Greenspan
20e308163b Fix a test 2015-03-06 18:35:31 -08:00
David Greenspan
f3d3df8624 Space out constraint solver errors 2015-03-06 17:02:44 -08:00
David Greenspan
d9725e2361 Unit test for last commit 2015-03-06 16:55:36 -08:00
David Greenspan
ade555d903 Have CS.Input convert to real PackageConstraints
It caused an exception in an app when a "fake" PackageConstraint made
it into conflict explanation.
2015-03-06 16:29:56 -08:00
David Greenspan
e27840aa24 Improve comments on Steps and reachability 2015-03-06 16:04:38 -08:00
David Greenspan
eda46a2824 Get rid of the "zeroGoal" flag
From running benchmarks while changing the code:
* It doesn't seem to slow things down to *always* try to "hit 0"
  when minimizing
* It does seem to slow things down if the "<= 0" constraint is
  expressed using <= instead of "forbid the terms with non-zero
  weights"

This change also fixes a bug where we required terms with zero
weights to be 0.
2015-03-06 15:53:31 -08:00
Slava Kim
4bab8566fd Uncomment and fix a test for Windows releases 2015-03-06 15:14:21 -08:00
David Greenspan
da14f8d9a2 Fix typo 2015-03-06 12:49:14 -08:00
David Greenspan
a78393b1e7 Implement "allAnswers" flag in constraint solver
I thought it would help me write a test for a bug that turned
up in code review, but it doesn't.  Still, I'm sure it will be
useful.

Also, Logic.Solution#getFormula is something I've been wanting
to write for a while.
2015-03-06 12:47:34 -08:00
David Greenspan
930a55f855 Code review feedback: solver.js 2015-03-06 12:11:49 -08:00
David Glasser
80c45919b2 Add 1.0.4 header to History 2015-03-05 23:25:52 -08:00
David Glasser
b2132ee983 De-flake template-level subs test
Fixes #3859.
2015-03-05 22:20:26 -08:00
Sashko Stubailo
2288d76db1 Rewrap comment 2015-03-05 21:56:40 -08:00
David Glasser
821882057c More History tweaks 2015-03-05 21:50:08 -08:00
David Glasser
3ef568b485 update websocket history note 2015-03-05 21:38:28 -08:00
David Glasser
7ff27f4e17 Update more docs about onStop 2015-03-05 21:36:18 -08:00
David Glasser
7e1ec96afd jsdoc update 2015-03-05 21:25:57 -08:00
David Glasser
a7cb0a0918 Find more History entries 2015-03-05 21:23:20 -08:00