Cameron Diver
34e5a7b048
misc: Exclude typescript files from resulting image
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-21 09:26:11 +00:00
Resin CI
7284863e6c
v9.2.5
2018-12-20 19:00:28 +01:00
Page-
d57db859d4
Merge pull request #858 from balena-io/sync-watch
...
Use webpack watching for sync.js for a faster dev cycle
2018-12-20 17:58:09 +00:00
Pagan Gazzard
c0c805d072
Use webpack watching for sync.js for a faster dev cycle
...
Change-type: patch
2018-12-20 17:40:45 +00:00
Resin CI
851db08af0
v9.2.4
2018-12-20 18:04:21 +01:00
Page-
26fc4d7fba
Merge pull request #856 from balena-io/transpile-only
...
Speed up the webpack build
2018-12-20 17:02:20 +00:00
Pagan Gazzard
1130ecd3ce
Force devtool: none
to avoid issues with env.noOptimize
...
Change-type: patch
2018-12-20 16:42:32 +00:00
Pagan Gazzard
77dd1d0a44
Use fork-ts-checker to speed up the webpack build
...
Change-type: patch
2018-12-20 16:41:30 +00:00
Resin CI
bc0354cb0e
v9.2.3
2018-12-20 11:57:07 +01:00
CameronDiver
c31ab6cdd0
Merge pull request #855 from balena-io/fix-top-level-network-ipam
...
fix: Correctly type top level network IPAM config
2018-12-20 10:54:58 +00:00
Cameron Diver
9fab0fc5cc
fix: Correctly type top level network IPAM config
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-20 10:07:38 +00:00
Resin CI
2d014d2a5d
v9.2.2
2018-12-20 11:04:26 +01:00
CameronDiver
53fdd3e4fe
Merge pull request #852 from balena-io/pin-event-stream
...
deps: Pin event-stream to avoid false audit warning
2018-12-20 10:02:41 +00:00
Cameron Diver
0bae497e4d
deps: Pin event-stream to avoid false audit warning
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-20 09:49:45 +00:00
Resin CI
0598c2e7d5
v9.2.1
2018-12-19 19:47:48 +01:00
Page-
7b35663916
Merge pull request #795 from balena-io/update-pinejs-client
...
Update pinejs-client to pinejs-client-request 5.x
2018-12-19 18:45:59 +00:00
Pagan Gazzard
019190646e
Update pinejs-client to pinejs-client-request 5.x
...
Change-type: patch
2018-12-19 17:54:53 +00:00
Resin CI
b48947895c
v9.2.0
2018-12-19 18:52:02 +01:00
Page-
4be44905aa
Merge pull request #799 from balena-io/update-webpack
...
Update to webpack 4
2018-12-19 17:50:18 +00:00
Pagan Gazzard
655c476ccd
Update to webpack 4
...
Change-type: minor
2018-12-19 17:12:55 +00:00
Resin CI
e74f2fd7da
v9.1.0
2018-12-19 16:06:15 +01:00
CameronDiver
980f5da3a7
Merge pull request #853 from balena-io/834-add-morgan
...
device-api: Add morgan to log api requests
2018-12-19 15:04:12 +00:00
Cameron Diver
45b322b7e0
device-api: Add morgan to log api requests
...
Change-type: minor
Closes : #834
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-19 14:30:37 +00:00
Resin CI
e98ec2189d
v9.0.3
2018-12-19 15:27:53 +01:00
CameronDiver
fccd66c773
Merge pull request #849 from balena-io/typescript
...
More typescript conversions
2018-12-19 14:26:13 +00:00
Cameron Diver
0b14af69dd
misc: Update package-lock
...
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-19 14:08:03 +00:00
Cameron Diver
b977b30dfe
refactor: Convert update-lock module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-19 14:07:47 +00:00
Cameron Diver
ec37db597d
refactor: Convert systemd module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-19 14:07:45 +00:00
Cameron Diver
e00954babd
refactor: Convert request module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-19 14:07:45 +00:00
Cameron Diver
2ea657c95d
refactor: Convert migration module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-19 14:07:44 +00:00
Resin CI
dc1450d65d
v9.0.2
2018-12-19 13:35:59 +01:00
Giovanni Garufi
63d1a6df3a
Merge pull request #850 from balena-io/fix-changelog-yml
...
VersionBot: Fix incomplete version in CHANGELOG.yml
2018-12-19 13:33:59 +01:00
Giovanni Garufi
c87123f585
VersionBot: Fix incomplete version in CHANGELOG.yml
...
Change-type: patch
Signed-off-by: Giovanni Garufi <giovanni@balena.io>
2018-12-18 18:19:46 +01:00
Resin CI
253cc113d8
v9.0.1
2018-12-17 20:34:56 +01:00
Pablo Carranza Vélez
2a3d8de828
Merge pull request #845 from balena-io/fix-download-race
...
Fix a race condition that could cause an unnecessary restart
2018-12-17 16:33:04 -03:00
Pablo Carranza Velez
42737cb9e9
Fix a race condition that could cause an unnecessary restart of a service immediately after download
...
Up to now, there was a slim but non-zero chance that an image would be downloaded between the call to `@getTarget` inside deviceState
(which gets the target state and creates Service objects using information from available images), and the call to
`@images.getAvailable` in ApplicationManager (which is used to determine whether we should keep waiting for a download or start the
service). If this race condition happened, then the ApplicationManager would infer that a service was ready to be started (because
the image appears as available), but would have incomplete information about the service because the image wasn't available when
the Service object was created. The result would be that the service would be started, and then immediately on the next applyTarget
the ApplicationManager would try to kill it and restart it to update it with the complete information from the image.
This patch changes this behavior by ensuring that all of the additional information about the current state, which includes available images,
is gathered *before* building the current and target states that we compare. This means that if the image is downloaded after the call to getAvailable, the Service might be constructed with all the information about the image, but it won't be started until the next pass, because ApplicationManager will treat it as still downloading.
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-17 15:41:12 -03:00
Resin CI
53e11436db
v9.0.0
2018-12-17 18:59:43 +02:00
Pablo Carranza Vélez
d3d0e19a16
Merge pull request #844 from balena-io/local-mode-unmanaged
...
Unmanaged + local mode fixes
2018-12-17 13:57:37 -03:00
Cameron Diver
96b614ad6a
Replace offline -> unmanaged in logs and tests
...
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:24 +00:00
Cameron Diver
c533631f70
unmanaged: Default to local mode in target state when unmanaged
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:23 +00:00
Cameron Diver
151af309fb
config: Force config values to strings when storing in db
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:23 +00:00
Cameron Diver
3ca1d7c864
join: Disable local mode when joining a cloud
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:23 +00:00
Cameron Diver
82602abf8d
config: Replace supervisorOfflineMode and offlineMode with unmanaged
...
Change-type: major
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
Cameron Diver
5bea0fdc9d
fix: Give unmanaged target states a source of 'local'
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
Cameron Diver
178e80d92a
Require an apikey for supervisor api in production unmanaged
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
Cameron Diver
5bb3820d6a
Switch to local mode in unmanaged mode
...
Change-type: major
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
Cameron Diver
91a6340563
Move config.json flag back to the database
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:40 +00:00
Cameron Diver
19f8b75766
Revert "localMode: Remove local mode from device-config"
...
This reverts commit eda477ff86
.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 11:05:57 +00:00
Resin CI
edb1f3b1e0
v8.7.1
2018-12-13 16:33:15 +02:00
CameronDiver
6011688041
Merge pull request #846 from balena-io/fix-sync
...
Fix sync.js after move to balena-sync
2018-12-13 14:31:39 +00:00