Commit Graph

3413 Commits

Author SHA1 Message Date
Cameron Diver
6290993a79 Remove unused dependencies and dedupe
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-06-01 08:50:17 +00:00
Balena CI
05546070c8 v11.5.0 2020-05-30 01:22:07 +03:00
bulldozer-balena[bot]
cf50a8797e
Merge pull request #1340 from balena-io/1249-log-healthcheck-failure
log healthcheck failure
2020-05-29 22:17:31 +00:00
Miguel Casqueira
5550a3a330 Refactor device-state healthchecks to log reason for failure
Closes: #1292
Change-type: minor
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-05-29 16:24:01 -04:00
Miguel Casqueira
ef83acdaeb Refactor api-binder healthchecks to log reason for failure
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-05-29 16:14:58 -04:00
Miguel Casqueira
f494178b2b Added test coverage for GET /v1/healthy
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-05-29 16:14:15 -04:00
Balena CI
15f2ac8d69 v11.4.17 2020-05-29 22:15:57 +03:00
bulldozer-balena[bot]
9aefd9ecf1
Merge pull request #1324 from balena-io/update-deps
Update dependencies
2020-05-29 19:13:19 +00:00
Miguel Casqueira
e0c489bb4a Performed npm audit fix on dependencies
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-05-29 14:22:31 -04:00
Pagan Gazzard
1decd87c21 Update dependencies
Change-type: patch
2020-05-29 14:22:23 -04:00
Balena CI
e0187090b1 v11.4.16 2020-05-29 17:57:50 +03:00
bulldozer-balena[bot]
7365e5c160
Merge pull request #1345 from balena-io/singleton-database
Make the db module a singleton
2020-05-29 14:54:39 +00:00
Cameron Diver
1d7381327e Make the db module a singleton
We were treating the database class as a singleton, but still having to pass
around the db instance. Now we can simply require the db module and have
access to the database handle.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-29 15:02:38 +01:00
Balena CI
0dc0fc77b6 v11.4.15 2020-05-27 10:51:55 +03:00
bulldozer-balena[bot]
68e2546ddc
Merge pull request #1344 from balena-io/correct-error-matching
Support ResponseErrors from balena-register-device
2020-05-27 07:50:06 +00:00
Cameron Diver
972b896c95 Check for ApiError before using it as such
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-26 14:43:59 +01:00
Balena CI
68b2b1be0b v11.4.14 2020-05-22 01:18:57 +03:00
M. Casqueira
81f6a77855
Merge pull request #1338 from balena-io/detect-unique-uuid-error
Check for 409 status code, rather than string matching uuid conflicts
2020-05-21 18:16:28 -04:00
Cameron Diver
eaaa9c257e check for 409 status code, rather than string matching uuid conflicts
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-21 14:57:26 -04:00
Balena CI
00a6ce84f3 v11.4.13 2020-05-21 19:32:18 +03:00
CameronDiver
e5f53d1a2d
Merge pull request #1342 from balena-io/fix-call-stack-exceeding
Use safeStateClone to avoid call-stack exceeding errors
2020-05-21 12:30:18 -04:00
Cameron Diver
87278c0d8c Use safeStateClone to avoid call-stack exceeding errors
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-21 16:47:09 +01:00
Balena CI
1bf2a7ae29 v11.4.12 2020-05-19 20:07:27 +03:00
M. Casqueira
34fff5ef2d
Merge pull request #1329 from balena-io/1294-returning-app-state
Improved handling of invalid appId in V2 state endpoint
2020-05-19 13:04:27 -04:00
Miguel Casqueira
db7c27037c Improved handling of invalid appId in V2 state endpoint
Closes: #1294
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-05-19 10:53:19 -04:00
Balena CI
860afa25c7 v11.4.11 2020-05-18 22:39:56 +03:00
Page-
9c25b09696
Merge pull request #1334 from balena-io/patch-balena-api
Switch to balenaApi for the state patch as patching cannot be cached
2020-05-18 20:38:10 +01:00
Pagan Gazzard
fb90042c39 Switch to balenaApi for the state patch as patching cannot be cached
Change-type: patch
2020-05-18 18:17:48 +00:00
Balena CI
5f35331633 v11.4.10 2020-05-18 18:15:16 +03:00
CameronDiver
709c2788cb
Merge pull request #1333 from balena-io/fix-preload-pinning
Fix leftover spurious return from typescript conversion
2020-05-18 11:13:29 -04:00
Cameron Diver
6972dcd92d Fix leftover spurious return from typescript conversion
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-18 15:21:33 +01:00
Balena CI
84b1726681 v11.4.9 2020-05-18 17:04:05 +03:00
Page-
02be46068b
Merge pull request #1331 from balena-io/always-poll
Catch errors in the target state poll so polling will always continue
2020-05-18 15:02:21 +01:00
Pagan Gazzard
dc187f0036 Catch errors in the target state poll so polling will always continue
Change-type: patch
2020-05-18 14:14:52 +01:00
Balena CI
62a36cbcdc v11.4.8 2020-05-18 16:13:00 +03:00
Page-
bb1e0cdfcd
Merge pull request #1330 from balena-io/avoid-instant-updates-query
Avoid querying `instantUpdates` on every state poll
2020-05-18 14:11:17 +01:00
Pagan Gazzard
afae5d15d4 Avoid querying instantUpdates on every state poll
Change-type: patch
2020-05-18 13:23:44 +01:00
Balena CI
29dd8317d8 v11.4.7 2020-05-16 18:08:18 +03:00
Page-
e271c0b2a8
Merge pull request #1326 from balena-io/fix-default-request-options
Fix default request options
2020-05-16 16:06:18 +01:00
Pagan Gazzard
b05d597ade Fix default request options
Change-type: patch
2020-05-16 14:05:47 +01:00
Balena CI
3b1c29e0ef v11.4.6 2020-05-15 20:54:58 +03:00
M. Casqueira
cca571ef0d
Merge pull request #1320 from balena-io/1318-remove-coffeescript
Remove CoffeeScript tests and all CoffeeScript tools
2020-05-15 13:53:23 -04:00
Miguel Casqueira
466c7999db Remove CoffeeScript tests and all CoffeeScript tools
Closes: #1318
Change-Type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2020-05-15 13:01:51 -04:00
Balena CI
9c1110af32 v11.4.5 2020-05-15 15:04:53 +03:00
Page-
4cf242c976
Merge pull request #1325 from balena-io/update-balena-lint
Update to @balena/lint 5.x
2020-05-15 13:02:46 +01:00
Pagan Gazzard
758f3caa48 Update to @balena/lint 5.x
Change-type: patch
2020-05-15 12:08:42 +01:00
Balena CI
e9728f7c2d v11.4.4 2020-05-15 13:31:49 +03:00
CameronDiver
628527a009
Merge pull request #1281 from balena-io/1242-add-supervisor-poll-jitter
Add a random constant offset to every poll timeout
2020-05-15 11:29:48 +01:00
Cameron Diver
58c6a69e5a Add a random offset to the poll interval with each poll
Change-type: patch
Closes: #1242
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-15 10:34:06 +01:00
Balena CI
a03e89caf8 v11.4.3 2020-05-14 12:31:21 +03:00