Cameron Diver
1060e70e82
dev: Add package.json tasks to aid debugging supervisor tests
...
Running mocha on the coffee and ts sources resulted in unreliable
sourcemaps, and breakpoints not working, among other things. To solve
this, this commit adds package.json tasks which will build both the
coffeescript and typescript files with their sourcemaps and places it
into a build directory. It also copies over other dependent files, such
as test data and migrations.
Another task adds a mocha debugging command, which can be connected to
using a node debugger.
Another tasks runs mocha without a debugging interface, but also without
running linters etc first. This enables the tests to be run much faster.
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-16 16:38:40 +01:00
resin-io-versionbot[bot]
a4959f2ac3
Auto-merge for PR #727 via VersionBot
...
Add more typescript support
2018-08-16 15:37:36 +00:00
resin-io-versionbot[bot]
e55193151a
v7.16.7
2018-08-16 15:02:03 +00:00
Cameron Diver
cb2349dbb6
Update docker-toolbelt to pull in typings
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-16 15:35:31 +01:00
Cameron Diver
3a4f1594e0
Refactor: Add docker-utils typings
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-16 15:35:31 +01:00
Cameron Diver
b504306f28
Refactor: Convert log-types module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-16 15:35:30 +01:00
resin-io-versionbot[bot]
003cb8af2c
Auto-merge for PR #722 via VersionBot
...
Docs: Add documentation for the v2/applications/state endpoint
2018-08-13 12:17:10 +00:00
resin-io-versionbot[bot]
9415d04bc3
v7.16.6
2018-08-13 12:00:10 +00:00
Cameron Diver
409a582507
Docs: Add documentation for the v2/applications/state endpoint
...
Change-type: patch
Closes : #719
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-13 10:51:32 +01:00
resin-io-versionbot[bot]
233f4af1df
Auto-merge for PR #724 via VersionBot
...
fix: Apply device name before generating container config
2018-08-13 09:49:50 +00:00
resin-io-versionbot[bot]
840ec03b3e
v7.16.5
2018-08-13 09:33:26 +00:00
Cameron Diver
b7d991b98e
fix: Apply device name before generating container config
...
Currently the service has the device name applied after the docker
config is generated. This means that is has no effect until the next
restart.
This commit ensures that the device name is applied before the docker
config is generated, meaning that the env var gets applied to the
upcoming container.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-13 10:02:53 +01:00
resin-io-versionbot[bot]
b8c178d113
Auto-merge for PR #721 via VersionBot
...
Fix: Restart a service when it's memory limit changes
2018-08-07 13:30:19 +00:00
resin-io-versionbot[bot]
51f008a44f
v7.16.4
2018-08-07 12:54:52 +00:00
Cameron Diver
430e45d6fb
Fix: Restart a service when it's memory limit changes
...
Change-type: patch
Closes : #720
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-08-07 13:15:37 +01:00
resin-io-versionbot[bot]
50e9df08fc
Auto-merge for PR #715 via VersionBot
...
Add a backoff mechanism for state reporting errors.
2018-08-01 19:58:34 +00:00
resin-io-versionbot[bot]
be73be53e1
v7.16.3
2018-08-01 19:41:31 +00:00
Pagan Gazzard
c6b77954a7
Add a backoff mechanism for state reporting errors
...
Change-type: patch
Signed-off-by: Pagan Gazzard <page@resin.io>
2018-08-01 11:56:55 -07:00
resin-io-versionbot[bot]
59d54b92e1
Auto-merge for PR #711 via VersionBot
...
Fix: Fix scoping issue with variables in service-manager
2018-07-25 15:12:24 +00:00
resin-io-versionbot[bot]
8cad3a664c
v7.16.2
2018-07-25 14:57:58 +00:00
Cameron Diver
7ea48683be
Fix: Fix scoping issue with variables in service-manager
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-25 15:45:18 +01:00
resin-io-versionbot[bot]
e85cc6e04f
Auto-merge for PR #704 via VersionBot
...
Dont restart service on device name change
2018-07-25 10:47:07 +00:00
resin-io-versionbot[bot]
fa79c4872f
v7.16.1
2018-07-25 10:34:13 +00:00
Cameron Diver
f7958e6c6b
Dont restart service on device name change
...
Change-type: patch
Closes : #659
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-25 10:45:05 +01:00
resin-io-versionbot[bot]
065f79390f
Auto-merge for PR #701 via VersionBot
...
Implement new log backend
2018-07-23 19:11:16 +00:00
resin-io-versionbot[bot]
0578840f09
v7.16.0
2018-07-23 18:56:09 +00:00
Petros Angelatos
202362241c
logger: Add unit tests
...
Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:31:14 -07:00
Petros Angelatos
bba1da370b
logger: Remove pubnub leftovers
...
Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:31:10 -07:00
Petros Angelatos
6766c23bd9
logger: Only send logs produced after attaching
...
The previous approach had the bad side effect of resending tons of logs
in the case of a supervisor restart.
The approach can be improved by storing the last timestamp per container
and re-attaching at the correct point.
Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:31:06 -07:00
Petros Angelatos
0d812c272c
logger: Use the new logging backend
...
Change-type: minor
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2018-07-18 12:30:59 -07:00
resin-io-versionbot[bot]
9dcf3ed697
Auto-merge for PR #700 via VersionBot
...
Allow persistent logging to be enabled/disabled via env var
2018-07-17 20:54:37 +00:00
resin-io-versionbot[bot]
d9eee69fcd
v7.15.0
2018-07-17 20:40:33 +00:00
Cameron Diver
1604fdf276
Allow the enabling and disabling of persistent logging via env var
...
Closes : #698
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-17 19:43:54 +01:00
Cameron Diver
0e29e5f6f7
Refactor config code to be consistent in location
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-16 17:48:03 +01:00
resin-io-versionbot[bot]
f9a9adf20f
Auto-merge for PR #699 via VersionBot
...
Re-enable majority of tests
2018-07-16 16:08:10 +00:00
resin-io-versionbot[bot]
f8ead44b2b
v7.14.1
2018-07-16 15:52:46 +00:00
Cameron Diver
5e5ff05b4f
Re-enable majority of tests
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-16 16:43:50 +01:00
resin-io-versionbot[bot]
7dad63b470
Auto-merge for PR #692 via VersionBot
...
Remove resinApiEndpoint meta-endpoint and use config.json entry instead
2018-07-12 14:04:14 +00:00
resin-io-versionbot[bot]
b1c3faabb0
v7.14.0
2018-07-12 13:46:47 +00:00
Cameron Diver
c61b16655e
Remove resinApiEndpoint meta-endpoint and use config.json entry instead
...
The resinApiEndpoint config option existed for legacy reasons, where the
apiEndpoint was passed in via env vars, but this is no longer the case,
and the current supervisor wouldn't run on these older versions of
resinOS anymore anyway, so I've removed the references to this legacy
endpoint, as it made reasoning about offline mode weird.
Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-12 13:33:57 +01:00
resin-io-versionbot[bot]
0ec7b829b9
Auto-merge for PR #691 via VersionBot
...
Correctly apply current commit value to applications
2018-07-12 12:06:37 +00:00
resin-io-versionbot[bot]
4e3070f343
v7.13.3
2018-07-12 11:53:34 +00:00
Cameron Diver
9259f231f8
Correctly apply current commit value to applications
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-12 12:42:22 +01:00
resin-io-versionbot[bot]
f9646e0a3a
Auto-merge for PR #688 via VersionBot
...
Fix typo in config method call
2018-07-09 10:44:46 +00:00
resin-io-versionbot[bot]
36f95c88bf
v7.13.2
2018-07-09 10:31:19 +00:00
Cameron Diver
8abfd05718
Fix typo in config method call
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-07-09 11:09:42 +01:00
resin-io-versionbot[bot]
40965b9ad2
Auto-merge for PR #687 via VersionBot
...
Bind db handle to fn variable
2018-06-28 14:57:20 +00:00
resin-io-versionbot[bot]
98486717aa
v7.13.1
2018-06-28 14:18:21 +00:00
Cameron Diver
080fdd3774
Bind db handle to fn variable
...
During the conversion to typescript, the behaviour of the database
handle changed slightly, meaning storing a reference to the models
function also requires a bind to be applied too.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-28 14:25:06 +01:00
resin-io-versionbot[bot]
857165f625
Auto-merge for PR #684 via VersionBot
...
Change config function providers to be mutable
2018-06-27 12:16:06 +00:00