Commit Graph

2307 Commits

Author SHA1 Message Date
Tolga Ceylan
18716911b9 fn: agent slot and execution wait correction (#658)
Since by policy we require timeout/2 remaining time
before we can execute the request, we should also
bound the slot wait time by timeout/2 to avoid
waiting for full timeout in slot wait phase.
2018-01-08 12:33:37 -08:00
CI
dba306e3c8 fnlb: 0.0.235 release [skip ci] fnlb-0.0.235 2018-01-08 18:37:36 +00:00
CI
c66f668680 fnserver: 0.3.274 release [skip ci] 0.3.274 2018-01-08 18:35:45 +00:00
Tolga Ceylan
6f1f5e365d fn: URL parsing updates to fix json request_url (#657)
*) Updated fn-test-utils to latest fdk-go
*) Added hot-json to runner tests
*) Removed anon function in FromRequest which had
a side effect to set req.URL.Host. This is now more
explicit and eliminates some corresponding logic in
protocol http.
*) in gin, http request RequestURI is not set, removed
code that references this. (use Call.URL instead)
2018-01-08 10:28:50 -08:00
CI
b34a31aacc fnlb: 0.0.234 release [skip ci] fnlb-0.0.234 2018-01-08 18:12:45 +00:00
CI
89a4ad3cc2 fnserver: 0.3.273 release [skip ci] 0.3.273 2018-01-08 18:10:35 +00:00
Travis Reeder
5cdee5579d Fixes 404 responses from functions that go through NoRoute path. (#651)
* Fixes 404 responses from functions that go through NoRoute path.

* cleanup

* cleanupp

* fix link

* Rollback a bad change.
2018-01-08 10:03:33 -08:00
CI
c4ccf5f5a8 fnlb: 0.0.233 release [skip ci] fnlb-0.0.233 2018-01-06 02:07:00 +00:00
CI
798856c580 fnserver: 0.3.272 release [skip ci] 0.3.272 2018-01-06 02:04:56 +00:00
Reed Allman
a3f822a9be add a license printing script (#648)
* add a license printing script

this takes info from glide.yaml, which covers all our external dependencies,
and then searches for a LICENSE in each of them. the good news is that it
covers all of our stuff right now, there are none without a license we can't
find. the bad news is, it's not very robust. this seemed to be a manual
process so this is markedly better.

removed one dep we had in glide.yaml that we aren't actually using, should go
away next update

* last of em
2018-01-05 17:10:46 -08:00
CI
2a2e6723b6 fnlb: 0.0.232 release [skip ci] fnlb-0.0.232 2018-01-05 18:36:30 +00:00
CI
5e09fb45ab fnserver: 0.3.271 release [skip ci] 0.3.271 2018-01-05 18:34:30 +00:00
Tolga Ceylan
7185f8306a fn: async wait bugfix and low mem warnings (#649)
*) fix async high water mark logic
*) warning on 256 mem for async and async+sync pools
2018-01-05 10:27:26 -08:00
CI
18de5b4302 fnlb: 0.0.231 release [skip ci] fnlb-0.0.231 2018-01-05 17:43:23 +00:00
CI
2c029e155b fnserver: 0.3.270 release [skip ci] 0.3.270 2018-01-05 17:41:18 +00:00
Gerardo Viedma
6b91351ed8 Logs should support specifying region when using S3-compatible object store (#645)
Logs should support specifying region when using S3-compatible object store
2018-01-05 17:34:32 +00:00
CI
ed9e71ea5b fnlb: 0.0.230 release [skip ci] fnlb-0.0.230 2018-01-04 21:12:26 +00:00
CI
503d596993 fnserver: 0.3.269 release [skip ci] 0.3.269 2018-01-04 21:10:29 +00:00
Reed Allman
ab225178a7 revert swagger to json for logs (#639)
we need to keep it like this until we move to swagger 3, so that we don't
break clients using old versions of fn and new clients.
2018-01-04 13:03:58 -08:00
CI
587fc1bc3a fnlb: 0.0.229 release [skip ci] fnlb-0.0.229 2018-01-04 19:43:32 +00:00
CI
c8ae56d285 fnserver: 0.3.268 release [skip ci] 0.3.268 2018-01-04 19:41:35 +00:00
Tolga Ceylan
14789aba41 Slot mgr fixes (#613)
*) during shutdown, errors should be 503
*) new inactivity time out for hot queue, we previously kept hot queues in memory forever.
*) each hot queue now has a hot launcher to monitor and launch hot containers
*) consumers now create a consumer channel with startDequeuer() that can be cancelled via context
*) consumers now ping (signal) hot launcher every 200 msecs until they get a slot
*) tests for slot queue & mgr
2018-01-04 11:34:43 -08:00
CI
282412f4f5 fnlb: 0.0.228 release [skip ci] fnlb-0.0.228 2018-01-04 00:26:27 +00:00
CI
5dd40ef045 fnserver: 0.3.267 release [skip ci] 0.3.267 2018-01-04 00:24:29 +00:00
Tolga Ceylan
880773a269 fn: FN_DEADLINE description (#638) 2018-01-03 16:17:40 -08:00
CI
ccb8e47a7d fnlb: 0.0.227 release [skip ci] fnlb-0.0.227 2018-01-03 16:51:52 +00:00
CI
4599468017 fnserver: 0.3.266 release [skip ci] 0.3.266 2018-01-03 16:49:45 +00:00
Nigel Deakin
c0dec594ef Add calls metric (#637)
* Add new Prometheus metric fn_api_calls

* Change fn_api_calls to a counter
2018-01-03 10:42:37 -06:00
CI
77d8f32ec4 fnlb: 0.0.226 release [skip ci] fnlb-0.0.226 2018-01-02 22:57:00 +00:00
CI
76ca562b6d fnserver: 0.3.265 release [skip ci] 0.3.265 2018-01-02 22:54:57 +00:00
Reed Allman
aa3ea9f7c9 CI don't install docker (#635)
it's there already, and >17.05
2018-01-02 16:47:08 -06:00
CI
5b6da996b5 fnlb: 0.0.225 release [skip ci] fnlb-0.0.225 2018-01-02 22:11:33 +00:00
CI
746a2cf4cf fnserver: 0.3.264 release [skip ci] 0.3.264 2018-01-02 22:09:33 +00:00
Denis Makogon
60d2ca234f Ship call logs to the user as text/plain instead of JSON (#615)
* Ship call logs to the user as text/plain instead of JSON

* Fixing swagger doc

* c.String instead of c.JSON

* Make Logs API backward compatible

* Loop over accepted MIME types

* Bump swagger API version

* Fix client build script

 previous version was producing the following "couldn't find a swagger spec"

* Logs API regression test

* Write response body without buffering

* Switch JSON and text/plain cases

* Handle Accepted content types properly

* More solid response content type handling

* Write HTTP 406 with corresponding error body

* Remove unused import

* Use handleErrorResponse
2018-01-02 16:01:22 -06:00
CI
9e9cb136ed fnlb: 0.0.224 release [skip ci] fnlb-0.0.224 2018-01-02 21:42:56 +00:00
CI
ee5092c247 fnserver: 0.3.263 release [skip ci] 0.3.263 2018-01-02 21:41:08 +00:00
CI
26dddca041 fnlb: 0.0.223 release [skip ci] fnlb-0.0.223 2018-01-02 21:26:07 +00:00
CI
45dfb0d586 fnserver: 0.3.262 release [skip ci] 0.3.262 2018-01-02 21:24:03 +00:00
Tolga Ceylan
fe80b50e30 fn: tests: revert a hack for agent shutdown (#632)
Reverting due to fix for #623
2018-01-02 15:17:44 -06:00
Reed Allman
3e8b24dce4 remove arbitrary docker build (#633)
`release.sh` does this upon release anyway, this is the last step in the
build. while nice to verify this, it does take 2 minutes on every branch
build, which is almost 1/3 of our build time now.
2018-01-02 13:15:43 -08:00
CI
70e9fe5ce7 fnlb: 0.0.222 release [skip ci] fnlb-0.0.222 2018-01-02 21:09:08 +00:00
CI
a49bd43cb2 fnserver: 0.3.261 release [skip ci] 0.3.261 2018-01-02 21:07:01 +00:00
Denis Makogon
4bb0744853 Use alpine images to make tests take less time (#629)
* Use retry func while trying to ping SQL datastore

 - implements retry func specifically for SQL datastore ping
 - fmt fixes
 - using sqlx.Db.PingContext instead of sqlx.Db.Ping
 - propogate context to SQL datastore

* Use alpine images to make tests take less time

 * use PG alpine
 * use Minio alpine
 * no official alpine distro for MySQL, uhhh :(
 * install swagger tool instead of docker image
 * use retry func to confirm that datastore is okay before running tests

* Store swagger tool at Fn during CI time

 somehow it's a problem to put binary to ${GOPATH}/bin

* Adjust swagger tool reference path

* Revert minio image

* Use amd64/alpine-based swagger tool image for API spec validation

* Cleanup
2018-01-02 14:56:38 -06:00
CI
c9ab6b9729 fnlb: 0.0.221 release [skip ci] fnlb-0.0.221 2018-01-02 19:41:07 +00:00
CI
9dfb6a4561 fnserver: 0.3.260 release [skip ci] 0.3.260 2018-01-02 19:39:07 +00:00
Denis Makogon
9d6f0b2a05 Speed up API tests (#624)
* Adjust API tests internal API

* Refactor API tests to take less time

 - sqlite: tests 15s, overall time: 1m
 - mysql: tests 15s, overall time: 59s

* Use retry func to survive in faulty places

* Use retry func while trying to ping SQL datastore

 - implements retry func specifically for SQL datastore ping
 - fmt fixes
 - using sqlx.Db.PingContext instead of sqlx.Db.Ping
 - propogate context to SQL datastore

* Simplify TestCanCauseTimeout retry loop

* Call retry with sane timeout

* Fix TestOversizedLog, use retry func

* Increase number of attempts

 2 test cases are really faulty in CI, so they need a lot more time to finish.

* Increase TestCanCauseTimeout timeout

* Use retry at TestMultiLog to speed it up

* Use retry at TestCanWriteLogs to speed it up

* Use retry at TestGetCallsSuccess to speed it up

* Use retry at TestCanGetAsyncState to speed it up

* Use retry at TestListCallsSuccess to speed it up

* Remove sleep calls

* Remove dup test case

* Cleaup Calls API test

* Build API tests binary once

 This patch lets CI to build API tests binary once and reuse that whenever it needs it

* Swap API tests checks

* Build API test binary by default

 dirty fix for CircleCI

* Use retry func to determine if datastore is alive in tests

* go install should also reduce build time

* Fix rebase issues
2018-01-02 13:29:49 -06:00
CI
cafc277325 fnlb: 0.0.220 release [skip ci] fnlb-0.0.220 2018-01-02 18:50:37 +00:00
CI
1357119b67 fnserver: 0.3.259 release [skip ci] 0.3.259 2018-01-02 18:48:36 +00:00
Denis Makogon
faaf5846ce Use retry func while trying to ping SQL datastore (#630)
* Use retry func while trying to ping SQL datastore

 - implements retry func specifically for SQL datastore ping
 - fmt fixes
 - using sqlx.Db.PingContext instead of sqlx.Db.Ping
 - propogate context to SQL datastore

* Rely on context from ServerOpt

* Consolidate log instances

* Cleanup

* Fix server usage in API tests
2018-01-02 12:32:10 -06:00
CI
4a85806544 fnlb: 0.0.219 release [skip ci] fnlb-0.0.219 2018-01-02 17:07:52 +00:00