Commit Graph

2262 Commits

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