Commit Graph

2535 Commits

Author SHA1 Message Date
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
CI
f675c00d93 fnserver: 0.3.258 release [skip ci] 0.3.258 2018-01-02 17:05:52 +00:00
W Brian Leonard
425bcc0954 Adding tutorial prerequisites and correcting routes (#423)
* Adding tutorial prerequisites and correcting routes

* Correcting Quickstart link in README.md

* Minor edit to trigger pull request
2018-01-02 10:49:50 -06:00
CI
250bc645f9 fnlb: 0.0.218 release [skip ci] fnlb-0.0.218 2017-12-26 17:22:09 +00:00
CI
0bfd18a7c4 fnserver: 0.3.257 release [skip ci] 0.3.257 2017-12-26 17:20:10 +00:00
Reed Allman
683fef8c2e allow user configured agent in full node (#627)
* allow user configured agent in full node

this should keep the old default behavior but allow users to pass in a
configured agent to configure the server themselves, without having to worry
about a russian agent being a british agent.

also closes any agent given to an api node.

closes #623

* don't close agent in runner test
2017-12-26 11:04:14 -06:00
CI
3c686aac5c fnlb: 0.0.217 release [skip ci] fnlb-0.0.217 2017-12-23 21:24:24 +00:00
CI
ce6945aa3e fnserver: 0.3.256 release [skip ci] 0.3.256 2017-12-23 21:22:21 +00:00
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