Commit Graph

2915 Commits

Author SHA1 Message Date
Balena CI
95f2814f98 v10.6.2 2019-11-07 13:32:46 +02:00
CameronDiver
a6e372da60
Merge pull request #1132 from balena-io/extract-preload
Extract loadTargetFromFile into it's own module
2019-11-07 11:30:58 +00:00
Cameron Diver
053e111626
Define the database type of the application
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-11-07 09:47:19 +00:00
Cameron Diver
09a8231fde
Extract loadTargetFromFile function to preload module
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-11-07 09:47:19 +00:00
Cameron Diver
fea80c5205
Define TargetApplicationState in types and remove Application type
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-11-06 17:52:16 +00:00
Cameron Diver
1d89174caf
Upgrade typescript to 3.7
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-11-06 15:01:05 +00:00
Balena CI
dbf1e4d776 v10.6.1 2019-11-06 11:28:55 +02:00
Roman Mazur
f8cfdebba8
Merge pull request #1106 from balena-io/roman/analytics-fix
event-tracker: Use std mixpanel types
2019-11-06 11:25:54 +02:00
Roman Mazur
2143180d27
event-tracker: Use std mixpanel types
Custom type definitions are removed for mixpanel module since they are embedded
into their npm package.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-11-05 18:09:09 +02:00
Balena CI
e50d49e4bf v10.6.0 2019-11-05 17:59:47 +02:00
CameronDiver
474b37903c
Merge pull request #1127 from balena-io/contextual-containers
Support optional containers based on their contract
2019-11-05 15:02:06 +00:00
Cameron Diver
8223bf2ccb Report any optional containers that aren't being run
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-11-05 14:44:22 +00:00
Cameron Diver
f75b8aad2b
Support optional containers based on their contract
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-11-05 10:11:30 +00:00
Balena CI
62f8532743 v10.5.5 2019-10-31 20:54:58 +02:00
CameronDiver
d20771e00b
Merge pull request #1123 from balena-io/dependabot/npm_and_yarn/lodash-4.17.13
Bump lodash from 4.17.11 to 4.17.13
2019-10-31 18:53:13 +00:00
dependabot[bot]
835ef7908e Bump lodash from 4.17.11 to 4.17.13
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.13)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2019-10-31 15:05:39 +00:00
Balena CI
80b0063b0e v10.5.4 2019-10-30 21:18:47 +02:00
xginn8
d3a7bbb7ac
Merge pull request #1128 from balena-io/lockfile-python
docs: update lockfile Python snippet
2019-10-30 15:17:10 -04:00
Matthew McGinn
d12c10b0c2 docs: update lockfile Python snippet
Port over the downstream changes from https://github.com/balena-io/docs/pull/1184

Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-10-30 09:02:19 -04:00
Balena CI
91b384a010 v10.5.3 2019-10-30 14:56:56 +02:00
CameronDiver
a57d1df990
Merge pull request #1089 from balena-io/convert-tests-to-ts
Convert some coffeescript tests to typescript
2019-10-30 12:55:13 +00:00
Cameron Diver
b5a427f2b9
Convert some coffeescript tests to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-30 10:58:32 +00:00
CameronDiver
f2b7543531
Merge pull request #1122 from balena-io/dependabot/npm_and_yarn/mixin-deep-1.3.2
Bump mixin-deep from 1.3.1 to 1.3.2
2019-10-30 09:38:59 +00:00
dependabot[bot]
d0f35359b3 Bump mixin-deep from 1.3.1 to 1.3.2
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2019-10-29 17:03:13 +00:00
Balena CI
0e229eb13b v10.5.2 2019-10-29 17:14:22 +02:00
CameronDiver
9cd4313897
Merge pull request #1121 from balena-io/dependabot/npm_and_yarn/handlebars-4.5.1
Bump handlebars from 4.0.12 to 4.5.1
2019-10-29 15:12:42 +00:00
dependabot[bot]
d767bada4e Bump handlebars from 4.0.12 to 4.5.1
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.5.1.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/v4.5.1/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.5.1)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2019-10-29 11:28:57 +00:00
Balena CI
35e3cd8f39 v10.5.1 2019-10-29 13:13:18 +02:00
CameronDiver
b64c5345a9
Merge pull request #1119 from balena-io/1117-vpn-rate-limit-fix
Ensure that we reset rate limits after a successful target apply
2019-10-29 11:11:39 +00:00
Cameron Diver
9651bc7028
Ensure that we reset rate limits after a successful target apply
Change-type: patch
Closes: #1117
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-28 11:54:11 +00:00
Balena CI
424e1f69ca v10.5.0 2019-10-07 18:20:35 +03:00
CameronDiver
12f68634d8
Merge pull request #1099 from balena-io/db-target-state-cache
Add a cache around the database application target state
2019-10-07 16:19:03 +01:00
Cameron Diver
7b8e7ea8ca
Add a cache around the database application target state
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-07 14:16:31 +01:00
Balena CI
47d39b70d8 v10.4.1 2019-10-02 21:33:17 +03:00
CameronDiver
5bbd1558e6
Merge pull request #1107 from balena-io/fix-contract-validation
Correctly validate container contracts
2019-10-02 19:31:12 +01:00
Cameron Diver
d16403f654
Correctly validate container contracts
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-02 15:48:17 +01:00
Balena CI
5b48f791d9 v10.4.0 2019-10-01 19:45:32 +03:00
CameronDiver
7c9e2f4287
Merge pull request #1090 from balena-io/container-contracts
Add support for container contracts
2019-10-01 17:43:35 +01:00
Cameron Diver
14e442f943 Add support for container contracts
These contracts can specify an OS version and supervisor version that
they require. If any of the containers in a release have requirements
that are not met, the release is rejected, and the previous release
continues to run.

Change-type: minor
Closes: #1086
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-01 16:17:44 +01:00
Cameron Diver
9843f62e24 Upgrade io-ts and fp-ts to 2.0.0
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-01 16:17:44 +01:00
Cameron Diver
5ce8ba8acf Add contract resolution code, which checks release requirements
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-01 16:17:43 +01:00
Cameron Diver
2d168784b2 Avoid synchronous file accesses for os release info
This also required refactoring the request library to be generated with
a promise, as we now no longer get the information synchronously.

We also cache the release info, to avoid grabbing it again within the
same runtime, which does not make sense.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-01 16:17:43 +01:00
Cameron Diver
487e2c54a1 Add test number to test files name
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-01 16:17:42 +01:00
Cameron Diver
7239b93f4a Add a cache around the database application target state
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-09-26 15:03:36 +01:00
Balena CI
6027556150 v10.3.8 2019-09-23 19:36:18 +03:00
Roman Mazur
b6498fe25a
Merge pull request #1095 from balena-io/roman/error-handling
Unify API errors processing
2019-09-23 19:34:26 +03:00
Roman Mazur
8b4c9837fa
Unify API errors processing
With this change, we define a custom error handler as express middleware
which renders 503 error with JSON response that includes status and message
fields.

The handler also logs the error, so the stack can be inspected in supervisor
logs. It's also a point where we can report the error to analytics services.

This removes a bunch of error handlers written in every request handler
function. Behaviour should remain unchanged except the fact that
/healthy endpoint now returns 503 in case of failure instead of 500.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-09-23 17:20:38 +03:00
Balena CI
89d9e9d117 v10.3.7 2019-09-20 17:37:24 +03:00
xginn8
ab6fd22c1e
Merge pull request #1094 from balena-io/ping-unauth
ping: move /ping out from authentication
2019-09-20 16:35:41 +02:00
Matthew McGinn
8d5633a11f
ping: move /ping out from authentication
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-09-20 15:16:47 +02:00