Commit Graph

1748 Commits

Author SHA1 Message Date
Michael Williams
144fb1791c Small fixes after first review 2017-09-29 08:50:59 -06:00
Michael Williams
a036436d4e Fix broken links names in README.md for hello 2017-09-28 18:19:43 -06:00
Michael Williams
f8eda190a9 Fix broken links in README.md for hello 2017-09-28 18:14:37 -06:00
Michael Williams
a3e274105f Changes to Tutorials README.md to fix broken links 2017-09-28 18:05:28 -06:00
Michael Williams
7fc8b99083 Minor fixes to main README.md 2017-09-28 17:47:42 -06:00
CI
4afe06adc7 fnlb: 0.0.86 release [skip ci] fnlb-0.0.86 2017-09-28 18:17:48 +00:00
CI
7d369648f9 functions: 0.3.120 release [skip ci] 0.3.120 2017-09-28 18:16:17 +00:00
CI
ef6d128e0d fnlb: 0.0.85 release [skip ci] fnlb-0.0.85 2017-09-27 16:15:50 +00:00
CI
4b822aa042 functions: 0.3.119 release [skip ci] 0.3.119 2017-09-27 16:14:38 +00:00
Reed Allman
f059cb58da Merge pull request #369 from fnproject/stackoverflow
Links to stackoverflow, blog and twitter.
2017-09-27 09:04:40 -07:00
Reed Allman
84b03b31ed Merge pull request #366 from fnproject/saner-route-cfg
more strict configuration of routes
2017-09-27 09:03:51 -07:00
Travis Reeder
96cb13b211 Links to stackoverflow, blog and twitter. 2017-09-27 07:52:29 -07:00
CI
5c32674315 fnlb: 0.0.84 release [skip ci] fnlb-0.0.84 2017-09-26 19:02:30 +00:00
CI
0f7575aca6 functions: 0.3.118 release [skip ci] 0.3.118 2017-09-26 19:01:03 +00:00
Reed Allman
93e6bf45d0 Merge pull request #351 from fnproject/clean-model
mask models.Call blank fields in api, sqlx
2017-09-26 11:43:53 -07:00
CI
2f3250d00c fnlb: 0.0.83 release [skip ci] fnlb-0.0.83 2017-09-26 18:31:22 +00:00
CI
708d22c150 functions: 0.3.117 release [skip ci] 0.3.117 2017-09-26 18:30:10 +00:00
Reed Allman
3083415611 Merge pull request #349 from fnproject/pagination
add pagination to all list endpoints
2017-09-26 11:13:35 -07:00
CI
ab4cd5bee9 fnlb: 0.0.82 release [skip ci] fnlb-0.0.82 2017-09-26 02:12:01 +00:00
CI
a85678c542 functions: 0.3.116 release [skip ci] 0.3.116 2017-09-26 02:10:44 +00:00
Travis Reeder
3eaf90949c Added brew install fn to README. (#362) 2017-09-25 21:53:58 -04:00
CI
738233acbf fnlb: 0.0.81 release [skip ci] fnlb-0.0.81 2017-09-25 18:34:24 +00:00
CI
1c1caafad5 functions: 0.3.115 release [skip ci] 0.3.115 2017-09-25 18:33:01 +00:00
CI
76fe2a81c5 fnlb: 0.0.80 release [skip ci] fnlb-0.0.80 2017-09-25 18:20:49 +00:00
CI
90e6c43022 functions: 0.3.114 release [skip ci] 0.3.114 2017-09-25 18:19:34 +00:00
Reed Allman
af28ed9960 Merge pull request #359 from fnproject/hot-py-example
Adding Python 3.5 hot fn sample
2017-09-25 11:05:10 -07:00
Reed Allman
ac132ae918 Merge pull request #358 from fnproject/chad-add-version
adding version under Fn ascii on server launch
2017-09-25 11:04:32 -07:00
Reed Allman
bb7e600053 Merge pull request #356 from fnproject/oom-err
improve ux for ooms
2017-09-25 11:03:43 -07:00
Denis Makogon
1c8120f3f9 Updating route path 2017-09-25 17:54:04 +03:00
Denis Makogon
4c19ad4c96 Adding Python hot fn sample 2017-09-25 17:48:39 +03:00
Chad Arimura
be910fdbe4 adding version under Fn ascii on server launch 2017-09-23 13:15:25 -07:00
CI
fff03d370f fnlb: 0.0.79 release [skip ci] fnlb-0.0.79 2017-09-22 18:07:47 +00:00
CI
9612606d21 functions: 0.3.113 release [skip ci] 0.3.113 2017-09-22 18:06:28 +00:00
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
Reed Allman
84239b4a14 remove idle_timeout > timeout check. d'oh 2017-09-21 04:32:56 -07:00
Reed Allman
caba9e0ec6 more strict configuration of routes
* idle_timeout max of 1h
* timeout max of 120s for sync, 1h for async
* max memory of 8GB
* do full route validation before call invocation
* ensure that idle_timeout >= timeout

we are now doing validation of updating route inside of the database
transaction, which is what we should have been doing all along really.
we need this behavior to ensure that the idle timeout is longer than the
timeout, among other benefits (like not updating the most recent version of
the existing struct and overwriting previous updates, yay). since we have
this, we can get rid of the weird skipZero behavior on validate too and
validate the real deal holyfield.

validating the route before making the call is handy so that we don't do weird
things like run a func that wants to use 300GB of RAM and run for 3 weeks.

closes #192
closes #344
closes #162
2017-09-21 04:04:34 -07:00
Reed Allman
46dfbd362d mask models.Call blank fields in api, sqlx
sqlx has nice facilities for using structs to do queries and using their
fields, so decided to move us all over to this. now when you take a look at
models.Call it's really obvious what's in db and what's not. added omitempty
to some json fields that were bleeding through api too.

deletes a lot of code in the sql package for scanning and made some queries
use struct based sqlx methods now which seem easier to read than what we
previously had. moves all json stuff into sql.Valuer and sql.Scanner methods
in models/config.go, these are the only 2 types that ever need this. sadly,
sqlx would have done this marshaling for us, but to keep compat, I added json.
we can do some migrations later maybe for a more efficient encoding, but did
not want to fuss with it today.

it seems like we should probably aim to keep models.Call as small as possible
in the db as there will be a lot of them. interestingly, most functions
platforms I looked at do not seem to expose this kind of information that I
could find. so, i think only having timestamps, status, id, app, path and
maybe docker stats is really all that should be in here (agree w/ Denys on
284 as these and logs will end up taking up most db space in prod. notably,
payload, headers, and env vars could be extremely large and in the general
case they are always a copy of the routes (this breaks apart when routes are
updated, which would be useful considering we don't have versioning --
versioning may be cheaper).

removed unused field in apps too

this is lined up behind #349 so that I could use the tests...

closes #345
closes #142
closes #284
2017-09-21 03:18:24 -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