Commit Graph

1427 Commits

Author SHA1 Message Date
flowzone-app[bot]
7bb85d7aa1
v16.1.2 2024-03-06 14:06:49 +00:00
Felipe Lalanne
6217546894 Update typescript to v5
This also updates code to use the default import syntax instead of
`import * as` when the imported module exposes a default. This is needed
with the latest typescript version.

Change-type: patch
2024-03-05 15:33:56 -03:00
flowzone-app[bot]
59137f2baf
v16.1.1 2024-03-04 18:16:14 +00:00
Felipe Lalanne
988a1c9e9a Update @balena/lint to v7
This updates balena lint to the latest version to enable eslint support
and unblock Typescript updates. This is a huge number of changes as the
linting rules are much more strict now, requiring modifiying most files
in the codebase. This commit also bumps the test dependency `rewire` as
that was interfering with the update of balena-lint

Change-type: patch
2024-03-01 18:27:30 -03:00
flowzone-app[bot]
8750951521
v16.1.0 2024-02-27 19:30:56 +00:00
flowzone-app[bot]
d49b5e333f
v16.0.4 2024-02-27 15:06:27 +00:00
flowzone-app[bot]
4daf6192b8
v16.0.3 2024-02-21 21:03:26 +00:00
flowzone-app[bot]
d1c834d196
v16.0.2 2024-02-17 02:44:56 +00:00
flowzone-app[bot]
5adf727cb5
v16.0.1 2024-02-12 19:56:21 +00:00
flowzone-app[bot]
52dddd23ce
v16.0.0 2024-02-08 21:45:45 +00:00
flowzone-app[bot]
c90c02806f
v15.3.1 2024-02-01 19:31:16 +00:00
flowzone-app[bot]
963f43cf0d
v15.3.0 2024-01-26 14:51:03 +00:00
Felipe Lalanne
2f3e3d2e61 Improve test:compose and test:env commands
The commands now use docker-compose run instead of docker compose up
for simplicity and also to match what flowzone does.

Change-type: patch
2024-01-25 15:05:02 -03:00
flowzone-app[bot]
d32987ab1f
v15.2.0 2024-01-08 13:25:40 +00:00
flowzone-app[bot]
66c35cfd4a
v15.1.1 2024-01-02 18:35:28 +00:00
flowzone-app[bot]
df027248fd
v15.1.0 2023-11-22 20:12:21 +00:00
flowzone-app[bot]
6acd04a01b
v15.0.4 2023-11-22 17:10:59 +00:00
Christina Ying Wang
7981e6becd Update @balena/systemd to 0.5.0
Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-11-22 11:09:26 -03:00
flowzone-app[bot]
55433a88cd
v15.0.3 2023-11-22 00:32:56 +00:00
flowzone-app[bot]
dd5f9c8558
v15.0.2 2023-11-01 22:17:08 +00:00
flowzone-app[bot]
06cf939958
v15.0.1 2023-10-25 13:04:14 +00:00
flowzone-app[bot]
6d2470a686
v15.0.0 2023-10-23 17:31:14 +00:00
flowzone-app[bot]
2089b3863d
v14.13.14 2023-10-23 13:34:46 +00:00
flowzone-app[bot]
f7396cf335
v14.13.13 2023-10-16 21:43:24 +00:00
flowzone-app[bot]
a3d70e3240
v14.13.12 2023-10-16 16:59:18 +00:00
flowzone-app[bot]
39d912d3e6
v14.13.11 2023-10-16 15:43:29 +00:00
Pagan Gazzard
23d5311a51 Fix husky config for automatic linting on commit
Change-type: patch
2023-10-16 16:20:02 +01:00
flowzone-app[bot]
47ebe39bed
v14.13.10 2023-10-16 13:50:24 +00:00
flowzone-app[bot]
f6a4465114
v14.13.9 2023-10-16 02:14:34 +00:00
flowzone-app[bot]
60c457f966
v14.13.8 2023-10-12 19:28:43 +00:00
Felipe Lalanne
eb485cfde4 Move mdns-resolver to devDependencies
Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
c3832cf061 Move got to devDependencies
Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
dcef2ec78b Move semver to dev-dependencies
Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
50d2d59cd1 Move happy-eyeballs to dev-dependencies
This allows it to be tree-shaken

Change-type: patch
2023-10-12 10:28:17 -03:00
Felipe Lalanne
a67a5a0f8f Move systeminformation to devDependencies
devDependencies are tree-shaked, while dependencies are stored in the
image. We reserve dependencies just for those that contain binary
bindings

Change-type: patch
2023-10-12 10:28:17 -03:00
flowzone-app[bot]
ddf99429eb
v14.13.7 2023-10-12 01:34:05 +00:00
flowzone-app[bot]
b94a4f7047
v14.13.6 2023-10-11 14:12:07 +00:00
flowzone-app[bot]
bcf6476b2d
v14.13.5 2023-10-10 18:54:24 +00:00
Christina Ying Wang
b096cb6328 Make Node & NPM versions in package.json slightly more permissive to avoid warning
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-10-09 13:41:12 -07:00
flowzone-app[bot]
f3f854af21
v14.13.4 2023-10-02 21:38:15 +00:00
flowzone-app[bot]
1b6cf322b0
v14.13.3 2023-10-02 14:22:27 +00:00
flowzone-app[bot]
2b23b66ea2
v14.13.2 2023-09-30 00:37:07 +00:00
Christina Ying Wang
06d4775178 Use native structuredClone instead of _.cloneDeep
Memory tests have shown performance improvements to using the native method.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-09-29 12:29:50 -07:00
flowzone-app[bot]
07a2a34f51
v14.13.1 2023-09-28 20:17:11 +00:00
flowzone-app[bot]
b7d006fd58
v14.13.0 2023-09-28 18:13:18 +00:00
flowzone-app[bot]
3ed369883d
v14.12.2 2023-09-15 01:57:46 +00:00
flowzone-app[bot]
1e54d66ffe
v14.12.1 2023-08-21 16:17:38 +00:00
Felipe Lalanne
99962dc94f Bump sqlite3 to 5.1.6
Change-type: patch
2023-08-17 15:00:42 -04:00
Felipe Lalanne
06e258ecad Bump knex to v2.5.1
Change-type: patch
2023-08-17 15:00:29 -04:00
flowzone-app[bot]
e87ac99feb
v14.12.0 2023-08-17 00:38:36 +00:00
Felipe Lalanne
327dc31ef0 Replace node-dbus with @balena/systemd
The node-dbus module is unmaintained and a blocker for the update to
Node 18. Switching to our own node bindings for systemd solves this
issue

Relates-to: Shouqun/node-dbus#241
Change-type: patch
2023-08-16 15:58:52 -04:00
Pagan Gazzard
2da691bcd5 Update to nodejs 18
Change-type: minor
2023-08-16 14:46:58 -04:00
flowzone-app[bot]
eb69295ca3
v14.11.14 2023-08-14 23:47:13 +00:00
flowzone-app[bot]
011dc30028
v14.11.13 2023-08-10 16:51:28 +00:00
flowzone-app[bot]
e4e48136ba
v14.11.12 2023-07-19 07:55:57 +00:00
flowzone-app[bot]
325075b528
v14.11.11 2023-07-12 08:35:30 +00:00
flowzone-app[bot]
833e02567b
v14.11.10 2023-07-05 19:00:47 +00:00
flowzone-app[bot]
f905c80a40
v14.11.9 2023-06-28 21:01:09 +00:00
flowzone-app[bot]
098494d6f4
v14.11.8 2023-06-23 18:46:29 +00:00
flowzone-app[bot]
60e39e929c
v14.11.7 2023-06-19 21:55:02 +00:00
flowzone-app[bot]
5cbd1149f1
v14.11.6 2023-06-19 20:53:38 +00:00
flowzone-app[bot]
e95a26c37c
v14.11.5 2023-06-19 19:01:23 +00:00
flowzone-app[bot]
7e24f095cc
v14.11.4 2023-06-19 07:56:46 +00:00
flowzone-app[bot]
0521d97c96
v14.11.3 2023-06-15 19:49:47 +00:00
Balena CI
d3f9821895
v14.11.2 2023-06-05 18:53:19 +00:00
Balena CI
e6c136d6cd
v14.11.1 2023-05-11 22:07:34 +00:00
Balena CI
ec363c305a
v14.11.0 2023-05-10 12:39:17 +00:00
Balena CI
eec4d06909
v14.10.11 2023-05-08 20:35:29 +00:00
Balena CI
6148ed6ed1
v14.10.10 2023-05-03 16:01:39 +00:00
Balena CI
c8d7b28a7e
v14.10.9 2023-05-03 14:26:38 +00:00
Kyle Harding
33b29cfa22
Run test supervisor under a different service name
The docker compose V2 spec no longer accepts `network_mode: bridge`,
which means we can no longer override the network configuration of
the `balena-supervisor` service for tests.

For this reason we now create a separate service to run the built
supervisor `balena-supervisor-sut` and run API tests against this
service instead of the default `balena-supervisor`.

Change-type: patch
2023-05-03 09:33:22 -04:00
Balena CI
f6e0683032
v14.10.8 2023-04-26 18:49:44 +00:00
Balena CI
d3be730c8e
v14.10.7 2023-04-21 23:04:21 +00:00
Balena CI
835bf9e49b
v14.10.6 2023-04-20 18:25:02 +00:00
Balena CI
e36060aa29
v14.10.5 2023-04-13 21:01:23 +00:00
Christina Ying Wang
9431ffc780 Use simpler command for docker compose test volume removal
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-04-11 13:05:44 -07:00
Balena CI
66cbe53b03
v14.10.4 2023-04-10 18:15:44 +00:00
Balena CI
447cb0109b
v14.10.3 2023-04-10 15:18:01 +00:00
Balena CI
5e0509910f
v14.10.2 2023-04-07 18:35:19 +00:00
Balena CI
da15bc3c63
v14.10.1 2023-04-07 00:16:01 +00:00
Balena CI
980c838e44
v14.10.0 2023-03-28 19:13:51 +00:00
Balena CI
07b8d44545
v14.9.8 2023-03-27 08:05:46 +00:00
Balena CI
9304a9215d
v14.9.7 2023-03-23 21:40:33 +00:00
Balena CI
7bc89faf12
v14.9.6 2023-03-23 20:18:33 +00:00
Balena CI
b55964e207
v14.9.5 2023-03-20 19:21:49 +00:00
Balena CI
d0061e426b
v14.9.4 2023-03-13 20:49:33 +00:00
Balena CI
2e81eb1abf
v14.9.3 2023-03-10 22:26:09 +00:00
Balena CI
4411f4f074
v14.9.2 2023-03-02 21:48:08 +00:00
Balena CI
935a4fba59
v14.9.1 2023-02-15 14:13:58 +00:00
Balena CI
5b0c8e6743
v14.9.0 2023-02-14 17:10:10 +00:00
Balena CI
e7aaae9db9
v14.8.0 2023-02-10 23:01:04 +00:00
Balena CI
cfd18a7620
v14.7.1 2023-02-07 00:59:07 +00:00
Balena CI
3d28f36fb2
v14.7.0 2023-02-03 00:06:05 +00:00
Balena CI
8b7cecfd3e
v14.6.4 2023-01-31 19:43:30 +00:00
Balena CI
f663e38697
v14.6.3 2023-01-30 18:59:40 +00:00
Balena CI
c833d016ff
v14.6.2 2023-01-26 20:58:35 +00:00
Balena CI
f94f06c7ff
v14.6.1 2023-01-24 20:34:01 +00:00
Balena CI
e715498ee7
v14.6.0 2023-01-20 20:51:25 +00:00
Balena CI
072a9f6755
v14.5.2 2023-01-19 19:40:04 +00:00
Balena CI
cf7a865647
v14.5.1 2023-01-18 11:58:56 +00:00
Balena CI
6c7193e0c1
v14.5.0 2023-01-17 19:28:46 +00:00
Balena CI
62840c6bec
v14.4.10 2023-01-04 20:25:56 +00:00
Balena CI
e0005c8307
v14.4.9 2022-12-19 14:26:00 +00:00
Pagan Gazzard
fd135214fe Use got for fetching the target state in order to have brotli support
Change-type: patch
2022-12-15 21:15:11 +00:00
Balena CI
062078ab60
v14.4.8 2022-12-15 22:29:20 +00:00
Balena CI
ac3812aa9f
v14.4.7 2022-12-15 20:39:49 +00:00
Balena CI
a482174aa0
v14.4.6 2022-12-08 18:39:59 +00:00
Balena CI
cb72b8337b
v14.4.5 2022-12-07 19:29:25 +00:00
Balena CI
3e1b1b0be1
v14.4.4 2022-11-22 15:22:26 +00:00
Balena CI
db1c806d33
v14.4.3 2022-11-22 02:54:22 +00:00
Balena CI
80f52b796a
v14.4.2 2022-11-21 20:02:28 +00:00
Balena CI
e64166a583
v14.4.1 2022-11-18 16:08:16 +00:00
Balena CI
48fca82a79
v14.4.0 2022-11-17 01:37:54 +00:00
Felipe Lalanne
dade598737 Use fatrw utility for writes to boot partition
This PR changes the way the supervisor reads and writes files from /mnt/boot. Reads will
now use the [fatrw utility](https://github.com/balena-os/fatrw/) as a way to minimize corruption of
files in the boot partition, and thus preventing possible bricking of the device.

Since this basically changes the way a lot of configurations are read, this work was being blocked because of
the way tests were being done. While there still remain a couple of legacy tests to be migrated, this PR disables
test:legacy tests when running npm run test, as the work on refactoring those tests is in progress (see #2048) and
fatrw integration is of higher priority.

Change-type: minor
2022-11-16 21:21:23 -03:00
Balena CI
d14cca8e5d
v14.3.5 2022-11-16 22:29:58 +00:00
Balena CI
631e560137
v14.3.4 2022-11-16 18:55:03 +00:00
Balena CI
b29aaf540f
v14.3.3 2022-11-14 15:28:58 +00:00
pipex
827f892c13 Migrate all device config tests to integration.
This means that configuration backend tests no longer use stubs and
(mostly) avoid internal dependencies in the tests. Instead of stubs and
mock-fs, the tests use [testfs](https://github.com/balena-io-modules/mocha-pod#working-with-the-filesystem)
which allows working with a real filesystem and ensuring everything is
re-set between tests.

This is the last change needed in order to be able to merge #1971. Here is the list of changes

- [x] Migrate splash image backend tests
- [x] Migrate extlinux backend tests
- [x] Migrate config.txt backend tests
- [x] Migrate extra-uenv config tests
- [x] Migrate odmdata config tests
- [x] Migrate config utils tests
- [x] Migrate device-config tests

Change-type: patch
2022-11-14 11:12:52 -03:00
Balena CI
83c856ae4b
v14.3.2 2022-11-11 17:14:06 +00:00
Balena CI
ae756cfabe
v14.3.1 2022-11-11 16:47:26 +00:00
Pagan Gazzard
9e154da76e Update blinking to 0.0.7
Update blinking from 0.0.5 to 0.0.7

Change-type: patch
2022-11-11 16:06:11 +00:00
Balena CI
d766e3d103
v14.3.0 2022-11-10 01:09:40 +00:00
Christina Ying Wang
75bf2aa3b4 Improve NotFoundError handling
Use isNotFoundError which converts an error of the default type
`unknown` into NotFoundError if the error is an instance of NotFoundError.
Thrown errors are of type `unknown` by default so we should use methods
with type guards for better type narrowing.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-11-08 15:41:52 -08:00
Balena CI
80e213ab7e
v14.2.21 2022-11-07 21:20:00 +00:00
Balena CI
f5ec74211f
v14.2.20 2022-11-03 22:27:41 +00:00
Balena CI
c4b2cb867e
v14.2.19 2022-11-03 21:20:53 +00:00
Balena CI
0bb3f0ad1f
v14.2.18 2022-11-02 19:00:54 +00:00
Balena CI
9e2d912fa1
v14.2.17 2022-11-01 21:47:55 +00:00
Balena CI
636d623151
v14.2.16 2022-10-27 15:00:47 +00:00
Balena CI
fd285b8f25
v14.2.15 2022-10-20 14:43:06 +00:00
pipex
117651ab3c Update sinon 2022-10-19 20:38:34 -03:00
Balena CI
93ca9c05f3
v14.2.14 2022-10-19 13:35:19 +00:00
Balena CI
1185b92bb4
v14.2.13 2022-10-18 22:58:19 +00:00
Balena CI
b7c497cc65
v14.2.12 2022-10-18 14:01:33 +00:00
pipex
a1e432f4fa Add build util to automatically detect arch from uname
This will help running `test:env` and `test:compose` in environments
other than `amd64`.
2022-10-17 11:32:47 -03:00
Balena CI
55285e9918
v14.2.11 2022-10-17 12:08:25 +00:00
Balena CI
eec12faa02
v14.2.10 2022-10-13 16:09:18 +00:00
Balena CI
076d95d0d2
v14.2.9 2022-10-10 19:42:06 +00:00
Balena CI
ef0dcc39dc
v14.2.8 2022-10-03 20:37:37 +00:00
Pagan Gazzard
0237bd7cf4 Update type dependencies
Change-type: patch
2022-10-03 14:38:42 -05:00
Balena CI
24fafd6e9d
v14.2.7 2022-09-28 15:37:47 +00:00
Felipe Lalanne
1867b74bd7 Migrate config module tests to integration
This commit also changes the test:integration command to run integration
tests as different processes. This allows to avoid any test leaking into
each-other because of the use of singletons. This however has the side
effect of tests being slower, but that is a forcing function to refactor
the code.
2022-09-28 10:37:41 -03:00
Felipe Lalanne
a2f9ea17c3 Update mocha-pod to 0.8.x
Newer mocha-pod allows to setup testfs instances at the global
level. This helps the test suite setup as it can guarantee that certain
files will always be available.
2022-09-28 10:37:40 -03:00
Balena CI
dee8680779
v14.2.6 2022-09-28 00:21:07 +00:00
Balena CI
e1b12c28fe
v14.2.5 2022-09-27 04:50:53 +00:00
Balena CI
1e84f8f59f
v14.2.4 2022-09-26 20:17:29 +00:00
Balena CI
6c1a9cadb2
v14.2.3 2022-09-26 19:24:16 +00:00
Felipe Lalanne
460659429d Update dependencies to fix NPM build
Change-type: patch
2022-09-26 15:26:48 -03:00
Balena CI
9f8929aa42
v14.2.2 2022-09-22 21:42:18 +00:00
Pagan Gazzard
47dca8604b Update to webpack 5
Change-type: patch
2022-09-22 21:07:44 +01:00