Commit Graph

1710 Commits

Author SHA1 Message Date
Reed Allman
6b7b1e3c63 Merge pull request #354 from fnproject/stats
Extend stats to report Failed calls
2017-09-22 10:50:59 -07:00
CI
71d1d556d3 fnlb: 0.0.78 release [skip ci] fnlb-0.0.78 2017-09-22 17:08:32 +00:00
CI
ecd454d02f functions: 0.3.112 release [skip ci] 0.3.112 2017-09-22 17:07:06 +00:00
Chad Arimura
d6cc0d7ddc Merge pull request #353 from fnproject/zzz-moar
fix slot races
2017-09-22 09:50:40 -07:00
Nigel Deakin
54407f7b74 Extend stats to report Failed calls 2017-09-22 17:36:43 +01:00
Reed Allman
ab7352ce40 Merge pull request #352 from fnproject/346
Fix route headers routine
2017-09-21 15:37:18 -07:00
Denis Makogon
edd0c8453c Fixing tests 2017-09-22 01:23:14 +03:00
Denis Makogon
c39bf31425 Adding API test to valide change 2017-09-22 01:05:56 +03:00
Denis Makogon
0e1140e60c Fix route headers merge
Closes: #346
2017-09-22 00:36:28 +03:00
Reed Allman
169f269ae1 Merge pull request #348 from fnproject/exclude-api-tests-from-test-sh
Run API tests as separate task
2017-09-21 09:42:36 -07:00
Denis Makogon
ef74b82506 Adding all datastores-based API tests 2017-09-21 12:33:16 +03:00
Denis Makogon
482f8423d6 Run API tests as separate task
Before that we tested only SQLite, deployments we do are using MySQL.
 So, it's better to run that set of tests.
2017-09-21 12:33:15 +03:00
CI
0cc4a8f74a fnlb: 0.0.77 release [skip ci] fnlb-0.0.77 2017-09-21 00:19:34 +00:00
CI
9ceda5ec72 functions: 0.3.111 release [skip ci] 0.3.111 2017-09-21 00:18:17 +00:00
Reed Allman
f7f4d659ea Merge pull request #347 from fnproject/fix-queries-for-mysql-pg
Split queries to make them work on Postgres and MySQL
2017-09-20 17:07:24 -07:00
Denis Makogon
f4699ea0ba Adding API tests that verifies recently changed code bevaviour 2017-09-21 02:25:36 +03:00
Denis Makogon
830c86efe7 Make app delete more stable
We still need to delete app and check how may rows affected in apps table.
 But we don't really care about other tables and rows affected there: routes, calls, logs

 We need to delete app out of loop to check for invalid numbers of rows affected:
 - zero rows means nothing happend

 Despite apps table, zero rows affected if valid case for routes, calls and logs
2017-09-21 02:04:27 +03:00
Denis Makogon
a09159308c Run queries inside one transaction 2017-09-21 01:21:41 +03:00
Denis Makogon
7a9591fd45 Split queries to make them work on Postgres and MySQL
Only SQLite supports multiple deletes in one transaction/statement,
 but other are not.
2017-09-21 00:55:39 +03:00
CI
e47c815b61 fnlb: 0.0.76 release [skip ci] fnlb-0.0.76 2017-09-20 19:51:13 +00:00
CI
950b62994a functions: 0.3.110 release [skip ci] 0.3.110 2017-09-20 19:49:55 +00:00
Reed Allman
38a2baa5d0 Merge pull request #339 from fnproject/app-yaml
Example and documentation for deploying full applications
2017-09-20 12:38:49 -07:00
Travis Reeder
deb2ae8103 Merge branch 'master' into app-yaml 2017-09-20 11:49:33 -07:00
Travis Reeder
904f288ed6 Replace FN_ROUTE with FN_PATH 2017-09-20 11:35:18 -07:00
Reed Allman
22a1b296e3 fix slot races
I'd be pretty surprised if these were happening but meh, a computer running at
capacity can make the runtime scheduler do all kinds of weird shit, so this
locks down the behavior around slot launching.

I didn't load test much as there are cries of 'wolf' running amok, and it's
late, so this could be off a little -- but I think it's about this easy.  cold
is the only one launching slots for itself, so it should always receive its
own slot (provided within time bounds). for hot we just need a way to tell the
ram token allocator that we aren't there anymore, so that somebody can close
the token (important).

If the bug still persists then it seems likely that there is another bug
around timing I'm not aware of (possible, but unlikely) or the more likely
case that it's actually taking up to the timeout to launch a container / find
a ram slot / find a free container. Otherwise, it's not related to the agent
and the http server timeouts may need fiddling with (read / write timeout),
if ruby client is failing to connect though I'm guessing that it's just that
nobody is reading the body (i.e. no function runs) and the error handling
isn't very well done, as we are replying with 504 if we hit a timeout (but if
nobody is listening, they won't get it).
2017-09-20 10:43:12 -07:00
CI
5ad17e13f4 fnlb: 0.0.75 release [skip ci] fnlb-0.0.75 2017-09-19 22:41:45 +00:00
CI
6a5b5fbcd4 functions: 0.3.109 release [skip ci] 0.3.109 2017-09-19 22:40:27 +00:00
Derek Schultz
fbb3ed6e9a Merge pull request #343 from fnproject/rollback-mysql
rollback mysql driver
2017-09-19 16:29:57 -06:00
Reed Allman
1a55c8050e rollback mysql driver
this https://github.com/go-sql-driver/mysql/pull/302 seems to have pretty much
crippled the ability to use mysql, so we need to lock a version before that
until that issue gets fixed.
2017-09-19 14:14:42 -07:00
CI
8988d5996c fnlb: 0.0.74 release [skip ci] fnlb-0.0.74 2017-09-19 17:54:45 +00:00
CI
e1248bca5e functions: 0.3.108 release [skip ci] 0.3.108 2017-09-19 17:53:34 +00:00
Reed Allman
4e96232c53 Merge pull request #341 from fnproject/dep-update
Finally rid of capital Sirupsen??
2017-09-19 10:48:14 -07:00
Chad Arimura
4c303205d6 Merge pull request #342 from fnproject/improved_stats by demoman
Update global stats charts to show breakdown by function
2017-09-19 10:43:36 -07:00
Nigel Deakin
ae69bb37e3 Update global stats charts to show bteakdown by function 2017-09-19 15:05:37 +01:00
Travis Reeder
3aecebdf48 Finally rid of capital Sirupsen?? 2017-09-18 23:33:47 -07:00
CI
6698efeaa9 fnlb: 0.0.73 release [skip ci] fnlb-0.0.73 2017-09-19 05:46:34 +00:00
CI
3c3f771207 functions: 0.3.107 release [skip ci] 0.3.107 2017-09-19 05:45:16 +00:00
Travis Reeder
cdb74915de Removed capital Sirupsen from glide.lock 2017-09-18 22:37:33 -07:00
Reed Allman
f335d34636 add server option to limit request size (#320)
we're going to want to do this in our service version of this thing, but
adding this here so that it's usable by everyone. just an option, can add it
to server configuration, but response is nicely formatted, etc.

closes #277
2017-09-18 22:34:19 -07:00
Travis Reeder
87deba45e2 Updated docs. 2017-09-18 17:17:00 -07:00
Travis Reeder
5476665ea9 Quick link fix. 2017-09-18 17:17:00 -07:00
Travis Reeder
4f653e3595 wip 2017-09-18 17:17:00 -07:00
Travis Reeder
75e2051169 Example app structure. round 1. 2017-09-18 17:16:59 -07:00
Travis Reeder
fdc3e76359 wip 2017-09-18 17:16:59 -07:00
CI
c6f9b50afe fnlb: 0.0.72 release [skip ci] fnlb-0.0.72 2017-09-18 22:41:06 +00:00
CI
a935a7102d functions: 0.3.106 release [skip ci] 0.3.106 2017-09-18 22:39:49 +00:00
Reed Allman
6ba06b8cff Merge pull request #338 from fnproject/fix-nilly
not ready for spans yet in hot land
2017-09-18 15:29:46 -07:00
CI
a5764b4a75 fnlb: 0.0.71 release [skip ci] fnlb-0.0.71 2017-09-18 21:12:22 +00:00
CI
913342c4d5 functions: 0.3.105 release [skip ci] 0.3.105 2017-09-18 21:11:00 +00:00
Reed Allman
f0d720cf2f Merge pull request #318 from fnproject/fnlog-fiddler
make fn logger more reasonable
2017-09-18 13:59:31 -07:00