Commit Graph

2548 Commits

Author SHA1 Message Date
CameronDiver
b47816513b
Merge pull request #1028 from balena-io/seperate-volumes
Use instantiations of compose objects throughout application-manager
2019-07-05 02:57:10 -07:00
Cameron Diver
89807c21fa
Fix network composition parsing, and correctly report compose config
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-04 11:47:39 +01:00
Cameron Diver
286ba58069
Add tests for Volume
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-04 11:47:39 +01:00
Cameron Diver
e5d7379b74
Keep the network and volume models consistent across usage
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-03 10:42:42 +01:00
Cameron Diver
eaff3a2ee5
Pass around instantiated Network objects when comparing state
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-03 10:36:38 +01:00
Cameron Diver
23e564389d
Seperate volume handling into manager and object classes
This change also makes sure that in the application-manager workflow we
pass around instances of the Volume class, rather than just the config.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-03 10:36:37 +01:00
Pablo Carranza Vélez
fe20f1b400
Merge pull request #1023 from balena-io/fix-unnecessary-vpn-override
fix: When reporting initial config, avoid creating a "VPN enabled" un…
2019-07-02 08:40:10 -07:00
Pablo Carranza Velez
743c8406c9 fix: When reporting initial config, avoid creating a "VPN enabled" unnecessary override
Since we were comparing the VPN's value before adding the explicit "true", there were cases
were the VPN is off, and therefore "value" didn't match the default, so the supervisor would
create a device specific SUPERVISOR_VPN_CONTROL = true, which is unnecessary and causes issues if
users don't expect this and move the device to an app that has VPN disabled. The correct behavior
is to compare "varValue" and only create a device config var if this value differs from the default.

(This was the behavior before the TS conversion in 01ed7bb103 )

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2019-07-01 12:28:46 -07:00
Resin CI
90e7ec0053 v9.18.3 2019-07-01 11:51:28 +03:00
Roman Mazur
f53640ca4c
Merge pull request #1025 from balena-io/roman/fix-test-run
Add mocha tests linter
2019-07-01 11:48:07 +03:00
Roman Mazur
36fa23ab7d
Add mocha tests linter
A simple script that detects presence of .only statements in tests.
The idea is to avoid comitting them, so that all the tests are run with npm test.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-29 16:40:41 +03:00
Resin CI
a87f344607 v9.18.2 2019-06-28 11:59:46 +03:00
CameronDiver
8d72f04a3a
Merge pull request #1017 from balena-io/upgrade-npm
Ensure that every architecture uses npm ci
2019-06-28 01:58:05 -07:00
Cameron Diver
92aa9b40ab Use jessie base images for i386-nlp
This fixes potential SIGILL errors with the supervisor on i386-nlp.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-27 17:09:31 +01:00
Cameron Diver
557f88965a Ensure that all architectures use a node version that supports ci
We do this by using the standalone installer pinned at v6.9.0. We use
the standalone installer because npm itself fails to upgrade on the
i386-nlp build (npm v3). The standalone installer is installed in /tmp,
and then to avoid mysterious CI errors, we use the original npm to run
the tests.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-27 17:09:31 +01:00
Resin CI
fe8ebfc0b0 v9.18.1 2019-06-27 16:33:48 +03:00
Roman Mazur
ee5b4574b0
Merge pull request #1022 from balena-io/roman/fix-test-run
Fix tests run removing .only
2019-06-27 16:29:50 +03:00
Roman Mazur
aad1129f26
Fix tests run removing .only
The issue was introduced with one of the recent changes related to local mode cleanup.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-27 14:56:54 +03:00
Resin CI
064d082836 v9.18.0 2019-06-26 18:27:19 +03:00
Roman Mazur
32082d5ecc
Merge pull request #1012 from balena-io/roman/local-mode-cleanup
Clean up local mode engine objects using snapshots
2019-06-26 18:15:08 +03:00
Roman Mazur
645bc6c185
Ensure we get input on parsing errors
We wrap JSON and date parsing code to ensure input data is logged in case of an error.

Change-type: minor
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-26 17:40:02 +03:00
Roman Mazur
7c4d8d7653
Ensure local mode switch runs before target state
This change makes DeviceState to wait until local mode switch is definitely
completed before actually applying the state, which avoids races in state cleanup.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-26 17:40:02 +03:00
Roman Mazur
4974c9200c
Clean up local mode engine objects using snapshots
Snapshot is collected to compare with engine state when local mode is turned off.

Change-type: minor
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-26 17:40:01 +03:00
Roman Mazur
bc3c56da4e
Add sinon types
Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-26 17:40:00 +03:00
Resin CI
230225b49c v9.17.2 2019-06-25 18:06:51 +03:00
Page-
10b5f169ac
Merge pull request #1019 from balena-io/https-submodule
Change to https for cloning resinos-in-container submodule
2019-06-25 15:58:10 +01:00
Pagan Gazzard
81b0d3142e Change to https for cloning resinos-in-container submodule
May require a `git submodule sync` to update existing local config

Change-type: patch
2019-06-25 14:24:15 +01:00
Resin CI
4cc83d5520 v9.17.1 2019-06-21 16:28:07 +03:00
Page-
45f00c86ac
Merge pull request #1010 from balena-io/update-dind-resinos
Update the resinos version for the dind supervisor
2019-06-21 14:26:11 +01:00
Pagan Gazzard
f5aedffa05 Update the resinos version for the dind supervisor
Change-type: patch
2019-06-21 13:32:53 +01:00
Resin CI
30897ddbba v9.17.0 2019-06-20 23:45:43 +03:00
Roman Mazur
56c4f1d23f
Merge pull request #1007 from balena-io/roman/report-status-in-local-mode
Report device state in local mode
2019-06-20 23:43:51 +03:00
Roman Mazur
024b9c45f4
Report device state in local mode
In local mode, we now update device status on the backend,
but omit applications info in our updates.

Closes: #959
Change-type: minor
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-20 15:38:33 +03:00
Resin CI
f662a6be39 v9.16.7 2019-06-20 15:27:13 +03:00
CameronDiver
d8eeba3d46
Merge pull request #1008 from balena-io/fix-bad-report
Don't drop failed api patch data
2019-06-20 05:25:11 -07:00
Cameron Diver
8c69ae7645 Don't drop failed api patch data
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-20 12:56:10 +01:00
Resin CI
cebf3761d6 v9.16.6 2019-06-20 13:29:23 +03:00
Roman Mazur
255fdb2585
Merge pull request #1009 from balena-io/roman/remove-mochainon
Remove mochainon dependnecy
2019-06-20 13:27:46 +03:00
Roman Mazur
3f5239b07f
Remove mochainon dependnecy
Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-19 23:31:58 +03:00
Resin CI
fe856f091a v9.16.5 2019-06-19 15:58:17 +03:00
Roman Mazur
77fc10cbb7
Merge pull request #1006 from balena-io/typescript-tests
Allow writing test files in typescript
2019-06-19 15:55:46 +03:00
Cameron Diver
9dab00d156
Allow writing test files in typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-19 10:55:15 +01:00
Resin CI
79762c2e08 v9.16.4 2019-06-18 16:30:22 +03:00
CameronDiver
127c0fb833
Merge pull request #1005 from balena-io/better-sync-debug
Make sync-debug much more reliable with logs
2019-06-18 06:28:18 -07:00
Cameron Diver
6c7234f84b Make sync-debug much more reliable with logs
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-18 13:32:04 +01:00
Resin CI
e3d9a9e9da v9.16.3 2019-06-11 15:43:58 +03:00
CameronDiver
04cbadf30b
Merge pull request #1001 from balena-io/fix-typo
Fix typo in image selection
2019-06-11 05:41:58 -07:00
Cameron Diver
65019bb5bc
Fix typo in image selection
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-11 13:10:44 +01:00
Resin CI
73c405bd63 v9.16.2 2019-06-11 11:00:25 +03:00
CameronDiver
118d052022
Merge pull request #999 from balena-io/reparallel-image-code
Re-parallelise current image retrieval code
2019-06-11 00:58:25 -07:00