Commit Graph

1230 Commits

Author SHA1 Message Date
James Jeffrey
9f9c9cc40e Merge branch 'add_max_conns' into 'master'
Add max cons 1 if sqlite3

See merge request !124
2017-07-24 13:11:55 -07:00
James Jeffrey
9917815214 Add max cons 1 if sqlite3 2017-07-24 13:04:08 -07:00
Reed Allman
2c3ab08589 Merge branch 'rm-nanny' into 'master'
remove the nanny

See merge request !125
2017-07-24 12:59:13 -07:00
Reed Allman
afcec04c24 remove the nanny
we finally graduated high school and can make our own ramen

we no longer need this since fn appears to have no concept of canceling tasks
through an api we need to watch, and the context is plumbed if the request is
canceled. since tasks are short, we may never need to do cancellation of
running tasks like we had with iron worker. this was an added docker call
that's unnecessary since we are doing force removal of the container at the
end anyway.
2017-07-24 11:56:58 -07:00
James Jeffrey
8d836d5956 fn tool: 0.3.18 release [skip ci] 2017-07-24 08:34:53 -07:00
James Jeffrey
40f911c566 : 0.3.23 release [skip ci] 2017-07-24 08:33:43 -07:00
James Jeffrey
e572cb93ec Merge branch 'test_ci_integration_local_code' into 'master'
Test ci integration local code

See merge request !121
2017-07-21 16:18:48 -07:00
James Jeffrey
9654fd4179 Make tests use local functions server not one in container 2017-07-21 16:12:33 -07:00
Denis Makogon
0ac91e6e7c Run tests against sqlite3 2017-07-21 16:07:17 -07:00
Denis Makogon
84c9bb9b93 Increase startup timeouts 2017-07-21 16:07:17 -07:00
Denis Makogon
823ee23d37 More verbosity 2017-07-21 16:07:17 -07:00
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