Commit Graph

1219 Commits

Author SHA1 Message Date
Denis Makogon
a83cc89968 Increasing MySQL startup timeout 2017-07-21 16:07:17 -07:00
Denis Makogon
edde79e061 Trying to figure out networking problems 2017-07-21 16:07:16 -07:00
Denis Makogon
bcd79ce4a6 Enable integration tests in CI 2017-07-21 16:07:16 -07:00
Denis Makogon
31e14843fe Enabling API tests in CI 2017-07-21 16:07:16 -07:00
James Jeffrey
4ddf7c1454 Merge branch 'respect_original_cancel' into 'master'
Kill the server if original context is canceled

See merge request !120
2017-07-21 16:05:23 -07:00
James Jeffrey
b9b87fc81f Kill the server if original context is canceled 2017-07-21 16:01:18 -07:00
James Jeffrey
f63804aa8b Merge branch 'update-tests' into 'master'
Increase tests timeouts for API tests

See merge request !119
2017-07-21 14:55:50 -07:00
Denis Makogon
96cf246cb3 Increase tests timeouts for API tests 2017-07-21 23:45:05 +03:00
James Jeffrey
75ac1cc05e Merge branch 'move-api-tests' into 'master'
Moving tests from CLI to server

See merge request !118
2017-07-21 12:48:03 -07:00
Denis Makogon
be3662743e Removing tests from CLI 2017-07-21 22:42:44 +03:00
Denis Makogon
9400a83aa8 Moving tests from CLI to server 2017-07-21 20:03:43 +03:00
James Jeffrey
fae48afaa4 fn tool: 0.3.17 release [skip ci] 2017-07-20 10:15:29 -07:00
James Jeffrey
5d3fd6bd98 : 0.3.22 release [skip ci] 2017-07-20 10:14:48 -07:00
James Jeffrey
8cbddec676 Merge branch 'fn-build-no-cache-support' into 'master'
Teach `fn build` `--no-cache` to avoid using cached steps

See merge request !114
2017-07-20 09:54:14 -07:00
Will Price
c734efefce Teach fn build --no-cache to avoid using cached steps 2017-07-20 09:54:14 -07:00
Travis Reeder
0b736b4b1c Merge branch 'clean-up-dockerfile-orphans' into 'master'
Clean up dockerfile orphans

See merge request !112
2017-07-20 09:03:27 -07:00
Jan Grant
7e9fabd7b0 Clean up dockerfile orphans 2017-07-20 09:03:27 -07:00
Derek Schultz
0879fce4ce Merge branch 'expiring-cache' into 'master'
Expiring cache

Closes #115

See merge request !116
2017-07-20 08:44:56 -07:00
Travis Reeder
c3630eaa41 Expiring cache 2017-07-20 08:44:56 -07:00
James Jeffrey
2be96689d4 : 0.3.21 release [skip ci] 2017-07-19 16:02:02 -07:00
James Jeffrey
2acb484515 fn tool: 0.3.16 release [skip ci] 2017-07-19 15:57:11 -07:00
Travis Reeder
31d4c184fa Merge branch 'back_to_put' into 'master'
Back to put

See merge request !115
2017-07-19 15:45:31 -07:00
James Jeffrey
f9a46f7c1c Update vendor 2017-07-19 15:43:53 -07:00
James Jeffrey
06505cef17 Update back to put 2017-07-19 15:43:44 -07:00
Travis Reeder
cd88c16915 Merge branch 'issue_107' into 'master'
Use chi style middle ware

Closes #107 and #131

See merge request !110
2017-07-19 13:44:26 -07:00
James Jeffrey
cf2c3cf404 Use chi style middle ware 2017-07-19 13:44:26 -07:00
Reed Allman
570e9265f1 Merge branch '114' into 'master'
Fix unexpected failure when trying to update route with exact the same attributes

Closes #114 and #102

See merge request !111
2017-07-18 13:40:54 -07:00
Denis Makogon
07b0fab720 Fix unexpected failure when trying to update route with exact the same attributes 2017-07-18 13:40:54 -07:00
Denis Makogon
fea44b0dbf Merge branch 'mask-errors' into 'master'
mask errors in api response, log real error

See merge request !108
2017-07-18 09:17:03 -07:00
Derek Schultz
86be09a3c3 Merge branch 'fix-formatting' into 'master'
Fix formatting to make tests pass

See merge request !113
2017-07-18 09:12:20 -07:00
Denis Makogon
40bfce856e Fix formatting to make tests 2017-07-18 19:06:39 +03:00
Travis Reeder
ce008b7b01 Merge branch 'fntest2' into 'master'
Update for testing functions.

Closes #7

See merge request !107
2017-07-18 09:01:53 -07:00
Mukhtar Haji
704c6f0ad6 Merge branch 'java-maven-runtime' into 'master'
Adds java-maven runtime

See merge request !36
2017-07-18 08:44:51 -07:00
Reed Allman
0e3b182877 Merge branch 'db-max-conns' into 'master'
increase max idle conns

See merge request !109
2017-07-17 15:32:01 -07:00
Travis Reeder
053c7cb0e6 Added gomega and updated deps. 2017-07-17 13:01:00 -07:00
Travis Reeder
f8b8c6f7e8 Update for testing functions. 2017-07-17 11:41:10 -07:00
Reed Allman
db35a8cfd2 Merge branch 'multilb' into 'master'
back the lb with a db for scale

See merge request !104
2017-07-14 12:18:45 -07:00
Reed Allman
cb3464fcb1 increase max idle conns
we're routinely doing transactions which will hold up connections for some
time, it was pretty easy to run out of 30 conns from routine function
invocations. the 'right' thing is probably to add a config val to the url that
we can strip before passing into the db, but i'm not sure i want to have our
own query params in db urls, either.
2017-07-14 04:18:50 -07:00
Reed Allman
c0aed2fbb0 mask errors in api response, log real error
we had this _almost_ right, in that we were trying, but we weren't masking the
error from the user response for any error we don't intend to show. this also
adds a stack trace from any internal server errors, so that we might be able
to track them down in the future (looking at you, 'context deadline
exceeded'). in addition, this adds a new `models.APIError` interface which all
of the errors in `models` now implement, and can be caught easily / added to
easily.

the front end now does no status rewriting based on api errors, now when we
get a non-nil error we can call `handleResponse(c, err)` with it and if it's a
proper error, return it to the user with the right status code, otherwise log
a stack trace and return `internal server error`. this cleans up a lot of the
front end code.

also rewrites start task ctx deadline exceeded as timeout. with iw we had
async tasks so we could start the clock later and it didn't matter, but now
with sync tasks time out sometimes just making docker calls, and we want the
task status to show up as timed out. we may want to just catch all this above
in addition to this, but this seems like the right thing to do.

remove squishing together errors. this was weird, now we return the first
error for the purposes of using the new err interface.

removed a lot of 5xx errors that really should have been 4xx errors. changed
some of the 400 errors to 409 errors, since they are from sending in
conflicting info and not a malformed request.

removed unused errors / useless errors (many were used for logging, and didn't
provide any context. now with stack traces we don't need context as much in
the logs).
2017-07-14 03:44:16 -07:00
Travis Reeder
c605317250 More middleware updates. 2017-07-13 14:40:36 -07:00
Travis Reeder
6d2c503010 Updated middleware example to return error format that fn understands. 2017-07-13 10:21:02 -07:00
Mukhtar Haji
73e81ec736 Update test boilerplate to reflect API changes 2017-07-13 10:47:59 +01:00
Travis Reeder
667c611fac Added functions to MiddlewareContext interface 2017-07-12 22:28:49 -07:00
Travis Reeder
86b93e27f7 Updated ctx to MiddlewareContext in various places. 2017-07-12 21:40:16 -07:00
Travis Reeder
7a81aa5761 Merge branch 'middleware-update' into 'master'
Allow setting values in middleware context like gin context.

See merge request !99
2017-07-12 15:05:13 -07:00
Travis Reeder
1dcc93b32b Updated dependencies 2017-07-12 14:18:01 -07:00
Travis Reeder
98539fba8a Updated deps 2017-07-12 14:08:59 -07:00
Reed Allman
8d669c202c Merge branch 'one-db' into 'master'
merge datastores into sqlx package

See merge request !101
2017-07-11 11:30:41 -07:00
Travis Reeder
0f83355f0a Merge branch 'fix-root-route-invocation' into 'master'
Allow calling root route on app

Closes #64

See merge request !91
2017-07-11 09:44:29 -07:00
Mukhtar Haji
cdc8c03c87 Remove runtime as a dependency and add test lib
This change also simplifies the entrypoint in the func.yaml, so only the
user's function is referenced. All runtime related stuff is completely
abstracted away from the user.
2017-07-11 11:43:47 +01:00