Commit Graph

2250 Commits

Author SHA1 Message Date
Tolga Ceylan
becd7652b1 Shell script error handling (#628)
* fn: fortify shell scripts with euo pipefail
2017-12-23 13:05:41 -08:00
CI
4b9716dbfb fnlb: 0.0.216 release [skip ci] fnlb-0.0.216 2017-12-23 16:30:07 +00:00
CI
3ece05bc23 fnserver: 0.3.255 release [skip ci] 0.3.255 2017-12-23 16:28:09 +00:00
CI
e769f74586 fnlb: 0.0.215 release [skip ci] fnlb-0.0.215 2017-12-23 16:17:04 +00:00
CI
5008188bfd fnserver: 0.3.254 release [skip ci] 0.3.254 2017-12-23 16:15:00 +00:00
Tolga Ceylan
d329e0ef5b fn: circleci and makefile adjustments (#625)
* fn: circleci and makefile adjustments

*) Moved more tasks into Makefile to allow for
parallelism and dependency checks.
*) Added cpu count in circleci make invocations
for parallelism

* fn: typo sqlite => sqlite3

* fn: removed unnecessary make pull & install
2017-12-23 10:12:18 -06:00
Chad Arimura
ae8e87f877 Update CONTRIBUTING.md (#621)
update CLA URL
2017-12-23 09:58:37 -06:00
Reed Allman
f51792ae5e Timestamps on apps / routes (#614)
* route updated_at

* add app created at, fix some route updated_at bugs

* add app updated_at

TODO need to add tests through front end
TODO for validation we don't really want to use the validate wrapper since
it's a programmer error and not a user error, hopefully tests block this.

* add tests for timestamps to exist / change on apps&routes

* route equals at done, fix tests wit dis

* fix up the equals sugar

* add swagger

* fix rebase

* precisely allocate maps in clone

* vetted

* meh

* fix api tests
2017-12-23 09:57:36 -06:00
CI
e1de38bbb5 fnlb: 0.0.214 release [skip ci] fnlb-0.0.214 2017-12-22 21:10:59 +00:00
CI
f6243fc6cb fnserver: 0.3.253 release [skip ci] 0.3.253 2017-12-22 21:09:05 +00:00
Tolga Ceylan
feeeca3321 fn: agent shutdown improvements (#622) 2017-12-22 12:52:31 -08:00
CI
197d437668 fnlb: 0.0.213 release [skip ci] fnlb-0.0.213 2017-12-21 22:16:05 +00:00
CI
4f586533c9 fnserver: 0.3.252 release [skip ci] 0.3.252 2017-12-21 22:12:31 +00:00
Tolga Ceylan
8c081e47b9 fn: remove unnecessary packages from fm-test-utils image (#619) 2017-12-21 15:46:44 -06:00
CI
4ac833b07d fnlb: 0.0.212 release [skip ci] fnlb-0.0.212 2017-12-21 19:53:52 +00:00
CI
77f68a69a9 fnserver: 0.3.251 release [skip ci] 0.3.251 2017-12-21 19:49:38 +00:00
Reed Allman
a8a3e143c7 unexport all data abstractions on Server (#618)
this patch has no behavior changes, changes are:

* server.Datastore() -> server.datastore
* server.MQ -> server.mq
* server.LogDB -> server.logstore
* server.Agent -> server.agent

these were at a minimum not uniform. further, it's probably better to force
configuration through initialization in `server.New` to ensure thread safety
of referencing if someone does want to modify these as well as forcing things
into our initialization path and reducing the surface area of the Server
abstraction.
2017-12-21 13:21:02 -06:00
CI
6d71f2acc2 fnlb: 0.0.211 release [skip ci] fnlb-0.0.211 2017-12-21 19:00:05 +00:00
CI
14d0f10515 fnserver: 0.3.250 release [skip ci] 0.3.250 2017-12-21 18:56:23 +00:00
CI
891473a3cc fnlb: 0.0.210 release [skip ci] fnlb-0.0.210 2017-12-21 18:02:09 +00:00
CI
9ca2905cdb fnserver: 0.3.249 release [skip ci] 0.3.249 2017-12-21 17:58:17 +00:00
James Jeffrey
0c762b2a44 Update CONTRIBUTING.md (#517) 2017-12-21 09:32:36 -08:00
Travis Reeder
fdb4188146 Adds before/after app get/list. And some bug fixes/cleanup. (#610)
* Adds before/after app get/list. And some bug fixes/cleanup.

* Fix test
2017-12-21 09:32:03 -08:00
CI
0a1b180158 fnlb: 0.0.209 release [skip ci] fnlb-0.0.209 2017-12-20 18:43:51 +00:00
CI
c646a5cc5e fnserver: 0.3.248 release [skip ci] 0.3.248 2017-12-20 18:39:27 +00:00
Tolga Ceylan
7290579e7d fn: tests: adding hot container timeout and huge memory cases (#611)
* fn: adding hot container timeout and huge memory cases

*) switching TestRouteRunnerTimeout to fn-test-utils to handle
    both hot and cold.
*) in server_test added content-length handling as protocol http
    does not create content-length if it is not present.
2017-12-20 10:11:57 -08:00
CI
7588d5783a fnlb: 0.0.208 release [skip ci] fnlb-0.0.208 2017-12-20 05:00:23 +00:00
CI
bf1500bb56 fnserver: 0.3.247 release [skip ci] 0.3.247 2017-12-20 04:58:20 +00:00
Travis Reeder
632a9fb34f remove -v on go test (#612) 2017-12-19 20:40:49 -08:00
CI
7f76826128 fnlb: 0.0.207 release [skip ci] fnlb-0.0.207 2017-12-20 03:04:22 +00:00
CI
299eb625c7 fnserver: 0.3.246 release [skip ci] 0.3.246 2017-12-20 03:02:25 +00:00
CI
b4d10d0cc3 fnserver: 0.3.245 release [skip ci] 0.3.245 2017-12-19 23:24:14 +00:00
Tolga Ceylan
b3f7c7fc7f fn: add tester image (#609)
* fn: add fn-test-utils image

New tester image that uses go-fdk for advanced test scenarios.
Right now, this is an enhanced 'hello/sleeper' rolled into one
that echos the received headers/env to allow writing test cases.
2017-12-19 15:06:16 -08:00
CI
1f3091f5d7 fnlb: 0.0.206 release [skip ci] fnlb-0.0.206 2017-12-19 18:43:44 +00:00
CI
b1b64a6f04 fnserver: 0.3.244 release [skip ci] 0.3.244 2017-12-19 18:41:44 +00:00
Michael J Williams
11910dafc5 Update faq.md with more Questions (#444)
* Update faq.md with more Questions

I made the requested changes and added the Flow FAQ questions to the end. I tried to simplify the "How do I Upgrade the FDK" question and not sure if I helped or just mucked it up.

* Review updates to the faq document

* Fixed overview answer

* Requested updates to faq

* Flow links and wording updates

* Fix a link typo.
2017-12-19 10:24:32 -08:00
CI
c62d17a1a3 fnlb: 0.0.205 release [skip ci] fnlb-0.0.205 2017-12-16 00:09:43 +00:00
CI
1ec17c8b0b fnserver: 0.3.243 release [skip ci] 0.3.243 2017-12-16 00:07:44 +00:00
Tolga Ceylan
25a72146f5 slot tracking improvements (#562)
* fn: remove 100 msec sleep for hot containers

*) moved slot management to its own file
*) slots are now implemented with LIFO semantics, this is important since we do
   not want to round robin hot containers. Idle hot containers should timeout properly.
*) each slot queue now stores a few basic stats such as avg time a call spent in a given
   state and number of running/launching containers, number of waiting calls in those states.
*) first metrics in these basic stats are discarded to avoid initial docker pull/start spikes.
*) agent now records/updates slot queue state and how much time a call stayed in that state.
*) waitHotSlot() replaces the previous wait 100 msec logic where it sends a msg to
   hot slot go routine launchHot() and waits for a slot
*) launchHot() is now a go routine for tracking containers in hot slots, it determines
   if a new containers is needed based on slot queue stats.
2017-12-15 15:50:07 -08:00
CI
a9820cfbab fnlb: 0.0.204 release [skip ci] fnlb-0.0.204 2017-12-15 22:50:42 +00:00
CI
fa0439640c fnserver: 0.3.242 release [skip ci] 0.3.242 2017-12-15 22:48:48 +00:00
Tolga Ceylan
419298e1c0 Async hot hdr fix (#604)
* fn: for async hot requests ensure/fix content-length/type

* fn: added tests for FromModel for content type/length

* fn: restrict the content-length fix to async in FromModel()
2017-12-15 14:32:25 -08:00
CI
070a70f62f fnlb: 0.0.203 release [skip ci] fnlb-0.0.203 2017-12-15 18:51:26 +00:00
CI
477ae570a2 fnserver: 0.3.241 release [skip ci] 0.3.241 2017-12-15 18:49:25 +00:00
Nigel Deakin
f1fc040948 Fix spans for prometheus (#606) 2017-12-15 10:31:57 -08:00
CI
172aacd820 fnlb: 0.0.202 release [skip ci] fnlb-0.0.202 2017-12-15 03:43:28 +00:00
CI
1ef2108acc fnserver: 0.3.240 release [skip ci] 0.3.240 2017-12-15 03:41:38 +00:00
Tolga Ceylan
3b12f3fa3d Fn deadline (#591)
* fn: added fn_deadline as RFC3339
2017-12-14 19:25:36 -08:00
CI
d1ad0a7cf9 fnlb: 0.0.201 release [skip ci] fnlb-0.0.201 2017-12-14 22:01:44 +00:00
CI
2fc96fef8d fnserver: 0.3.239 release [skip ci] 0.3.239 2017-12-14 21:59:49 +00:00