Commit Graph

1640 Commits

Author SHA1 Message Date
Reed Allman
700078ccb9 bubble up some docker errors to user
currently:

* container ran out of memory (code 137)
* container exited with other code != 0
* unable to pull image (auth/404)

there may be others but this is a good start (the most common). notably, for
both hot and cold these should bubble up (if deterministic, which hub isn't
always), and these are useful for users to use in debugging why things aren't
working.

added tests to make sure that these behaviors are working.

also changed the behavior such that when the container exits we return a 502
instead of a 503, just to be able to distinguish the fact that fn is working
as expected but the container is acting funky (400 is weird here, so idk).

removed references to old IsUserVisible crap and slightly changed the
interface for RunResult for plumbing reasons (to get the error type,
specifically).

fixed an issue where if ~/.docker/config.json exists sometimes pulling images
wouldn't work deterministically (should be more inline w/ expectations now)

closes #275
2017-09-07 11:55:50 -07:00
CI
779b53425c fnlb: 0.0.66 release [skip ci] fnlb-0.0.66 2017-09-13 18:30:07 +00:00
CI
d395c4edda functions: 0.3.99 release [skip ci] 0.3.99 2017-09-13 18:28:45 +00:00
Reed Allman
3b70b68d72 Merge pull request #322 from fnproject/302
Fix error handling when deleting app
2017-09-13 11:18:00 -07:00
Denis Makogon
5683d01603 Fix error handling 2017-09-13 21:03:53 +03:00
CI
6f5ec3a0e6 fnlb: 0.0.65 release [skip ci] fnlb-0.0.65 2017-09-13 17:25:31 +00:00
CI
95aa5aa190 functions: 0.3.98 release [skip ci] 0.3.98 2017-09-13 17:24:11 +00:00
Reed Allman
cb11749a67 Merge pull request #321 from fnproject/uncap-slice
oops, try to pre-allocate slice of useful size but if not allow expan…
2017-09-13 10:12:30 -07:00
Reed Allman
3707935f56 Merge pull request #314 from fnproject/302
Implementing force delete for apps
2017-09-13 10:01:59 -07:00
Denis Makogon
b2ca5ebc64 Run all statements in one transaction 2017-09-12 23:39:18 +03:00
Denis Makogon
93d4a5730b Running deletes in single transaction 2017-09-12 23:30:31 +03:00
Denis Makogon
0b47c8c40c Fix sql statements 2017-09-12 20:42:52 +03:00
Denis Makogon
bdb7e7fd7b Addressing more comments 2017-09-12 20:09:22 +03:00
Denis Makogon
4052a7d428 Addressing review comments 2017-09-12 20:07:40 +03:00
Denis Makogon
33a8b87dc0 Reverting swagger doc 2017-09-11 23:57:47 +03:00
Denis Makogon
8c9e7443cb Removing no longer valid tests 2017-09-11 23:38:19 +03:00
Denis Makogon
24a06cf111 Cleaning API tests from redundant route delete on each test 2017-09-11 23:23:18 +03:00
Denis Makogon
6b7accd3c6 Simplifying app delete per review comments 2017-09-11 23:15:01 +03:00
Reed Allman
f032ce0556 info line this (#316) 2017-09-11 13:05:49 -07:00
CI
a14d63d5f3 fnlb: 0.0.64 release [skip ci] fnlb-0.0.64 2017-09-11 18:44:42 +00:00
CI
6aeca53b5a functions: 0.3.97 release [skip ci] 0.3.97 2017-09-11 18:43:29 +00:00
Reed Allman
c71c170ac8 Merge pull request #299 from fnproject/fn-the-things
FN_ prefix env vars
2017-09-11 11:33:43 -07:00
Reed Allman
1814dcb7d8 Merge pull request #315 from fnproject/carimura-patch-1
Update ping.go
2017-09-11 11:28:52 -07:00
Chad Arimura
d0901c104f Update ping.go
updating ping
2017-09-11 11:16:17 -07:00
Denis Makogon
78f2d51bfa Implementing force delete for apps
Deployment-Impact: DB schema changed

API Impact: HTTP DELETE /apps/{app} accepts query parameters: /apps/{app}?force=True

Closes: #302
2017-09-11 17:32:35 +03:00
Denis Makogon
3e190342fb Implementing batch deletes for calls, logs and routes
Partially-Closes: #302
2017-09-11 11:41:27 +03:00
Denis Makogon
774d53662f Making logs app-bound
Partially-Closes: #302
2017-09-11 11:04:54 +03:00
CI
ddc56e5cc2 fnlb: 0.0.63 release [skip ci] fnlb-0.0.63 2017-09-10 18:01:12 +00:00
CI
bb43437050 functions: 0.3.96 release [skip ci] 0.3.96 2017-09-10 17:59:54 +00:00
Chad Arimura
ecbbd90693 Merge pull request #312 from fnproject/skip_test
Skip the flaky test
2017-09-10 10:49:27 -07:00
James
871197d3c4 Skip the flaky test #253 2017-09-10 10:09:17 -07:00
CI
26b047a856 fnlb: 0.0.62 release [skip ci] fnlb-0.0.62 2017-09-08 19:11:27 +00:00
CI
28a5e5f392 functions: 0.3.95 release [skip ci] 0.3.95 2017-09-08 19:10:17 +00:00
Reed Allman
fd1afb180c Merge pull request #300 from fnproject/cli-flag-changes
Updated docs for cli flag changes.
2017-09-08 12:00:16 -07:00
CI
d680823c06 fnlb: 0.0.61 release [skip ci] fnlb-0.0.61 2017-09-08 17:10:39 +00:00
CI
d92253376a functions: 0.3.94 release [skip ci] 0.3.94 2017-09-08 17:09:26 +00:00
Reed Allman
4839edc12b add default to idle_timeout in hot fn docs (#309)
it's a bit funny that in hot / not functions idle_timeout appears but it's not such a big deal, either
2017-09-08 09:58:42 -07:00
CI
92ea1bd9d1 functions: 0.3.93 release [skip ci] 0.3.93 2017-09-08 16:58:15 +00:00
CI
e7c0c164c1 fnlb: 0.0.60 release [skip ci] fnlb-0.0.60 2017-09-08 16:48:05 +00:00
CI
aa4b61cc4f functions: 0.3.92 release [skip ci] 0.3.92 2017-09-08 16:46:55 +00:00
CI
af28b15780 fnlb: 0.0.59 release [skip ci] fnlb-0.0.59 2017-09-08 16:40:32 +00:00
CI
9275a592a8 functions: 0.3.91 release [skip ci] 0.3.91 2017-09-08 16:39:16 +00:00
CI
23becd70af fnlb: 0.0.58 release [skip ci] fnlb-0.0.58 2017-09-08 16:37:02 +00:00
CI
c5c4f83476 functions: 0.3.90 release [skip ci] 0.3.90 2017-09-08 16:35:49 +00:00
Chad Arimura
d5250b4f0c Update writing.md 2017-09-08 09:27:31 -07:00
Chad Arimura
8f1a77123e Update writing.md 2017-09-08 09:27:06 -07:00
Chad Arimura
03bb8157cf Update writing.md 2017-09-08 09:26:49 -07:00
Chad Arimura
227e41ef3c Update writing.md 2017-09-08 09:26:29 -07:00
Chad Arimura
7b4744fe47 Update func.yaml 2017-09-08 09:26:08 -07:00
Reed Allman
59d95d660a push app/route cache down to datastore (#303)
cache now implements models.Datastore by just embedding one and then changing
GetApp and GetRoute to have the cache inside. this makes it really flexible
for things like testing, so now the agent doesn't automagically do caching,
now it must be passed a datastore that was wrapped with a cache datastore.
the datastore in the server can remain separate and not use the cache still,
and then now the agent when running fn 'for real' is configured with the cache
baked in. this seems a lot cleaner than what we had and gets the cache out of
the way and it's easier to swap in / out / extend.
2017-09-08 09:18:36 -07:00