Commit Graph

2269 Commits

Author SHA1 Message Date
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
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