Felipe Lessa
64dc7f9228
serversession-backend-acid-state-1.0.1
2015-06-16 13:56:49 -03:00
Felipe Lessa
b21904d751
Use modify instead of modify' on acid-state backend.
...
Shouldn't make any difference in strictness due to the way acid-state
works, and should allow us to support older mtl versions.
2015-06-16 13:55:48 -03:00
Felipe Lessa
c5ab2571a4
serversession-1.0.1.
2015-06-16 13:40:53 -03:00
Felipe Lessa
c27597573d
loadSession uses getCurrentTime, don't use fakenow ( fixes #1 ).
2015-06-16 13:39:47 -03:00
Felipe Lessa
511dd91402
Working stack file.
...
Tested on stack-0.0.2.1.
2015-06-15 16:53:16 -03:00
Felipe Lessa
a6e2abd988
Prettier example routes.
...
[ci skip]
2015-06-01 15:27:56 -03:00
Felipe Lessa
66d858170e
Add serversession code to Yesod+Persistent example.
...
Example doesn't showcase yesod-auth integration, though.
2015-06-01 14:36:15 -03:00
Felipe Lessa
da120b20ef
Use qualified imports for persistent example section.
...
The scaffold namespace is too poluted.
2015-06-01 13:14:20 -03:00
Felipe Lessa
23584a9c47
Add new Yesod+Persistent example, currently just "yesod init".
...
Separating "yesod init" commit from others in order to be clearer what
changes were made to the scaffold.
[ci skip]
2015-06-01 13:01:23 -03:00
Felipe Lessa
1a1a281517
Travis: Skip 100 MiB SQL tests.
...
This is getting ridiculous. The test that used to fail on GHC 7.10 and
work on GHC 7.8, now failed on GHC 7.8 and worked on GHC 7.10.
It's better to have a predictable test suite with two less unit tests
than having an unpredictable one.
2015-06-01 12:53:31 -03:00
Felipe Lessa
fefb86db47
Travis: Delete database files after running tests.
...
Currently PostgreSQL is dying on GHC 7.10 but not on GHC 7.8.
Hypothesis: The files left over from the acid-state local storage test
are consuming resources that PostgreSQL needs. These files are not
created on GHC 7.8, only on GHC 7.10.
2015-06-01 11:25:03 -03:00
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
d291e72ba3
Add note about tests on README.md.
2015-06-01 03:32:33 -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
e4f9f422d8
Travis: Don't bother with GHC HEAD.
2015-06-01 02:08:36 -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
e127371df6
Travis: Explicitly run each test suite.
...
Travis is timing out and I can't see where in the test suite we're
having problems.
2015-05-31 21:35:42 -03:00
Felipe Lessa
4ff73d87d8
Travis: Use PostgreSQL 9.3.
...
The persistent test is failing and I have no idea why, as it's not
displaying any error message. This commit changes a few things with
PostgreSQL just to see if they make any difference.
Note that the persistent test suite passes with flying colors both
before and after this commit on my machine using PostgreSQL 9.4.2.
2015-05-31 16:30:44 -03:00
Felipe Lessa
fcdb14e2bf
More GHC 7.8 fixes: Functor constraint.
2015-05-31 15:42:10 -03:00
Felipe Lessa
e9c4ea69a5
Travis: run tests sequentially.
...
They're too intensive and already make good use of the availabe CPU and RAM.
2015-05-31 15:14:46 -03:00
Felipe Lessa
1770734cdb
More consistent badge style.
2015-05-31 15:05:17 -03:00
Felipe Lessa
8f719a3cbb
Add Travis and Hackage badges to main README.md.
2015-05-31 15:02:44 -03:00
Felipe Lessa
4e3f27cb36
Setup.lhs x 7.
2015-05-31 14:56:39 -03:00
Felipe Lessa
d967f2b4a7
More GHC 7.8 fixes: DeriveDataTypeable, imports, (Functor m).
2015-05-31 14:53:26 -03:00
Felipe Lessa
a731cb2a8a
Travis: GHC 7.10.1 instead of GHC 7.10.2.
2015-05-31 14:38:33 -03:00
Felipe Lessa
16c4248355
More GHC 7.8 fixes (import mempty, derive Typeable).
2015-05-31 14:36:33 -03:00
Felipe Lessa
8a222d4a42
Travis: First try at having Redis and PostgreSQL ready.
2015-05-31 13:53:24 -03:00
Felipe Lessa
fdbce5f767
More missing Applicative imports for GHC 7.8.
2015-05-31 13:46:49 -03:00
Felipe Lessa
f0e1005f18
Add Applicative imports for GHC 7.8.
2015-05-31 12:57:52 -03:00
Felipe Lessa
6190544cc4
Travis: Don't bother with GHC 7.6.
2015-05-31 12:39:34 -03:00
Felipe Lessa
70e4353b3e
Travis: --run-tests needs Cabal 1.20.
2015-05-31 12:03:53 -03:00
Felipe Lessa
4bab3dfa2c
Travis: I thought I didn't need alex and happy.
2015-05-31 11:57:53 -03:00
Felipe Lessa
c7d8187149
First stab at Travis + cabal-meta.
...
Travis never works on the first try for me, though :(.
2015-05-31 11:49:46 -03:00
Felipe Lessa
a1769bce1c
Add README note about custom session data types.
2015-05-31 11:29:31 -03:00
Felipe Lessa
3e33c58af0
Generalize session data (huge commit).
2015-05-31 11:07:23 -03:00
Felipe Lessa
821016a382
Remove outdated comment.
2015-05-30 11:03:52 -03:00
Felipe Lessa
34f55d571f
Add workaround to fpco/stack#120 .
2015-05-29 17:30:20 -03:00
Felipe Lessa
dc34513b3a
First stab at a stack.yaml file.
2015-05-29 15:41:08 -03:00
Felipe Lessa
6324f2ddd5
Add single huge unit test to saveSession.
2015-05-29 00:56:09 -03:00
Felipe Lessa
823f992646
Tests for session invalidation.
2015-05-29 00:40:55 -03:00
Felipe Lessa
43b431a6c3
New support for timeout resolution optimization.
2015-05-28 17:07:57 -03:00
Felipe Lessa
b12b3e7cd1
Do not save empty sessions if possible.
2015-05-28 16:39:13 -03:00
Felipe Lessa
3757b4dad9
Test for nextExpires.
2015-05-28 16:04:30 -03:00
Felipe Lessa
ef0d3a707b
Add note about limits to README.
2015-05-28 14:40:22 -03:00