Commit Graph

21 Commits

Author SHA1 Message Date
Felipe Lessa
056d47ee23 Now really fix it. 2015-06-01 03:59:57 -03:00
Felipe Lessa
1aeacdebea Fix acid-state test on GHC < 7.10. 2015-06-01 03:41:59 -03:00
Felipe Lessa
5a7b4ce08f
Test GHC 7.10 via base package. 2015-06-01 03:15:31 -03:00
Felipe Lessa
9b1be63b8a Don't test AcidStorage on local storage if on GHC < 7.10.
I give up.  I hope the tests finally go green on Travis.
2015-06-01 02:49:00 -03:00
Felipe Lessa
d23c5ac4c6 Use a HashMap on acid-state implementation + Travis.
Also dial back on maximum heap size as 2 GiB with -F1.5 still makes OOM
kill the process on Travis.
2015-06-01 02:06:36 -03:00
Felipe Lessa
9a471a90ea Travis: Tweak acid-state test suite RTS options again.
C'mon, GHC 7.8... Why do you need so much more memory than GHC 7.10?
2015-06-01 00:55:43 -03:00
Felipe Lessa
1b3bec4778 Travis: Allow a slightly bigger heap for acid-state test suite.
Although it uses 580M on my GHC 7.10, it blew up the 1 GiB limit on Travis.

Travis currently allows usage of 3 GiB, and GHC tends to use 2x the the
maximum residency (even with the compacting option, WTF?).
2015-05-31 23:50:53 -03:00
Felipe Lessa
774bc18fa1 Force the test suites to use a lot less memory.
Works fine on my machine using GHC 7.10 with these limits.  Note that
I've activated the in-place compaction GC.
2015-05-31 23:22:21 -03:00
Felipe Lessa
0cca9cd086 Use HashMap for SessionMap.
It's a bit faster and uses a bit less memory.
2015-05-31 23:09:02 -03:00
Felipe Lessa
4e3f27cb36 Setup.lhs x 7. 2015-05-31 14:56:39 -03:00
Felipe Lessa
16c4248355 More GHC 7.8 fixes (import mempty, derive Typeable). 2015-05-31 14:36:33 -03:00
Felipe Lessa
f0e1005f18 Add Applicative imports for GHC 7.8. 2015-05-31 12:57:52 -03:00
Felipe Lessa
3e33c58af0
Generalize session data (huge commit). 2015-05-31 11:07:23 -03:00
Felipe Lessa
ec4623da34 Do not run large data tests in parallel.
Brings peak memory usage of the persistent test suite from 6 GiB to
4 GiB.  Still very bad, though.
2015-05-28 13:02:54 -03:00
Felipe Lessa
83faccf3f9 Use insertLookupWithKey when needing old value.
updateLookupWithKey returns original value only if it was deleted.  If
it was updated, it returns the updated value.  On both acid-state and
MockStorage we want the old value, though.

Now all acid-state tests are green once more.

MockStorage tests were already green because MockStorage does not
mantain a cached mapping of auth IDs to session IDs.
2015-05-28 02:03:12 -03:00
Felipe Lessa
8746b5eb4f Fix acid-state's implementation of {insert,replace}Session. 2015-05-28 01:28:07 -03:00
Felipe Lessa
82b7ebdca4 Fix example on how to use acid-state backend. 2015-05-28 01:27:40 -03:00
Felipe Lessa
b446b0ea92 Add storage tests for acid-state, both memory and local storage. 2015-05-28 01:27:13 -03:00
Felipe Lessa
95194a09ca Fix URL references. 2015-05-26 01:00:20 -03:00
Felipe Lessa
c2bd20cd56 Add acid-state to main README, include better example of usage. 2015-05-25 22:09:25 -03:00
Felipe Lessa
bac54a5c70
New serversession-backend-acid-state package. 2015-05-25 21:31:47 -03:00