Commit Graph

4156 Commits

Author SHA1 Message Date
bulldozer-balena[bot]
bf3caa45b9
Merge pull request #2022 from balena-os/update-webpack
Update webpack
2022-09-20 13:47:43 +00:00
Pagan Gazzard
93893093ff Update webpack dependencies to latest webpack 4.x compatible versions
Change-type: patch
2022-09-20 14:13:04 +01:00
Balena CI
a8841df5a4
v14.1.2 2022-09-20 12:57:54 +00:00
bulldozer-balena[bot]
4c9e4710ad
Merge pull request #2021 from balena-os/update-dev
Update husky/lint-staged dev dependencies
2022-09-20 12:55:41 +00:00
Pagan Gazzard
b3d8666997 Update husky/lint-staged dev dependencies
Change-type: patch
2022-09-20 12:52:26 +01:00
Balena CI
ade6513c66
v14.1.1 2022-09-19 21:21:53 +00:00
bulldozer-balena[bot]
4165eef8d4
Merge pull request #2019 from balena-os/uuid-9
Update balena-register-device to 8.0.0
2022-09-19 21:20:38 +00:00
Thodoris Greasidis
1baf972e16 Update balena-register-device to 8.0.0
Update balena-register-device from 7.2.0 to 8.0.0

Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2022-09-19 13:41:23 -07:00
Balena CI
181be21d6e
v14.1.0 2022-09-19 20:36:48 +00:00
bulldozer-balena[bot]
8752cea372
Merge pull request #2018 from balena-os/nodejs-16
Update to nodejs 16
2022-09-19 20:35:26 +00:00
Pagan Gazzard
5518eb17bd Update to nodejs 16
Change-type: minor
2022-09-19 17:51:48 +01:00
Balena CI
7c6eadbb6c
v14.0.26 2022-09-19 16:37:43 +00:00
Page-
03f65653c2
Merge pull request #2020 from balena-os/update-typescript
Update to typescript 4.8.2
2022-09-19 17:36:17 +01:00
Pagan Gazzard
96418d55b5 Update @balena/lint to 6.2.0
Change-type: patch
2022-09-19 16:41:28 +01:00
Pagan Gazzard
a4c13aa2e9 Update to typescript 4.8.2
Change-type: patch
2022-09-19 16:36:17 +01:00
Balena CI
4153c179b8
v14.0.25 2022-09-15 22:32:31 +00:00
bulldozer-balena[bot]
4ba7a24980
Merge pull request #2008 from balena-os/nodejs-14
Update to nodejs 14
2022-09-15 22:31:17 +00:00
Felipe Lalanne
e47879c284 Fix mochapodrc to reference the correct test config.json 2022-09-15 22:59:40 +01:00
Pagan Gazzard
65e69f3a83 Update to nodejs 14
Change-type: patch
2022-09-15 22:59:40 +01:00
Balena CI
627aed295a
v14.0.24 2022-09-15 20:55:25 +00:00
bulldozer-balena[bot]
11ae215e8b
Merge pull request #2016 from balena-os/multi-env-flowzone
Split publish to balena-staging from flowzone
2022-09-15 20:54:05 +00:00
Pagan Gazzard
fa8f02006e Split publish to balena-staging from flowzone
Change-type: patch
2022-09-15 15:59:29 -03:00
Balena CI
a296700201
v14.0.23 2022-09-14 20:28:58 +00:00
bulldozer-balena[bot]
13195050fd
Merge pull request #2010 from balena-os/flowzone
Switch from balenaCI to flowzone
2022-09-14 20:27:40 +00:00
Pagan Gazzard
dff4da28c9 Specify job name for flowzone branch protections 2022-09-14 21:03:37 +01:00
Felipe Lalanne
1586b7a424 Enable branch protection 2022-09-14 13:21:25 -03:00
Christina Ying Wang
aad0d1f45e Clarify Flowzone job names
Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-09-14 13:21:03 -03:00
Christina Ying Wang
efc04296ce Add staging environment workflow
Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-09-14 12:22:14 -03:00
Christina Ying Wang
7788180df3 Rename Dockerfile.null to Dockerfile
The Docker Flowzone CI job currently only runs successfully
with `Dockerfile` and not any variants, by design.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-09-14 12:22:14 -03:00
Christina Ying Wang
82b4a7fe1e Modify npm scripts for Flowzone
Replace test with test:base to make sure integration tests don't run in CI.
Integration tests for the Supervisor fail when not run in container, leading
to an error-exit and cause the Flowzone CI job for Node to fail.

By returning true, the Flowzone Node CI job succeeds, and this is fine even if tests
fail because they will be caught in the Docker job anyway.

Also, combine original npm test script with test:node.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-09-14 12:22:14 -03:00
Christina Ying Wang
728724ce46 Remove balena-ci.yml and add balenaCloud slugs
Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-09-14 12:22:14 -03:00
Christina Ying Wang
670b9ff563 Automate dbus lib installation depending on system
Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-09-14 12:22:14 -03:00
Pagan Gazzard
044fa5a038 Switch from balenaCI to flowzone
Change-type: patch
2022-09-14 12:22:14 -03:00
Balena CI
86aece8d29 v14.0.22 2022-09-14 11:19:10 -04:00
bulldozer-balena[bot]
ba9beef1cf
Merge pull request #2015 from balena-os/only-install-running-false
Only install service if running is set to false
2022-09-14 15:16:52 +00:00
Felipe Lalanne
f7bc30a310 Remove unnecessary check for docker status code 2022-09-14 10:41:32 -03:00
Felipe Lalanne
c6f911c36b Only install service if running is set to false
The supervisor supports target state `running: false` for services.
This state indicates that the service should be stopped if already
running, or that the container should just be created and never started
if the container does not exist. This commit fixes the latter behavior.

Although nothing in our platform currently sends this target state, this
enables some potential use cases, e.g. only starting some services
in manufacturing and starting the rest of the services when the device
actually connects.

Change-type: patch
Closes: #2014
2022-09-14 10:15:51 -03:00
Balena CI
2ec9274b78 v14.0.21 2022-09-13 16:43:37 -04:00
bulldozer-balena[bot]
9160a8b269
Merge pull request #2013 from balena-os/running-false-target
Fix withDefault type helper to work with boolean
2022-09-13 20:40:55 +00:00
Felipe Lalanne
3e45e9561e Fix withDefault type helper to work with boolean
`withDefault` is a type helper that allows to create a type that
defaults to a default value when trying to decode a nullish value.
That type was not correctly working with boolean types, causing `false`
values to be replaced by true. This would specifically cause issues when
parsing the target state, where a `running: false` in a service would
become a `running: true` due to the type decoding.

Change-type: patch
2022-09-13 20:08:32 +00:00
Balena CI
efa400c5a6 v14.0.20 2022-09-13 16:07:08 -04:00
bulldozer-balena[bot]
b27f6e7dda
Merge pull request #2012 from balena-os/supervisor-filter
Fix filtering of the supervisor app on the target state
2022-09-13 20:05:04 +00:00
Felipe Lalanne
5a57647450 Fix filtering of the supervisor app on the target state
Under some conditions, an aarch64 device may get a reference to a armv7hf
supervisor on the target state. One of the ways this can happen is if
an aarch64 device is added to an armv7hf fleet and the target supervisor
is set before the device fully provisions.

If that happens, the previous filtering for the supervisor app (which
relied on the architecture in device-type.json) would
fail and the user would end up with two supervisor containers, one
running correctly and the other crash looping.

This fixes the filtering and just checks if the supervisor uuid/service
name belongs to a group of known uuids.

Closes: #2006
Change-type: patch
2022-09-12 16:28:22 -03:00
Balena CI
39cf98243f v14.0.19 2022-09-12 08:17:51 -04:00
bulldozer-balena[bot]
64380003d3
Merge pull request #2009 from balena-os/update-blinking
Update blinking to 0.0.5
2022-09-12 12:16:11 +00:00
Pagan Gazzard
45f71b38d0 Update blinking to 0.0.5
Change-type: patch
2022-09-12 13:01:32 +01:00
Balena CI
7d2df0646e v14.0.18 2022-09-07 11:53:28 -04:00
bulldozer-balena[bot]
63840648a3
Merge pull request #2004 from balena-os/use-es-version
Set desired es-version for downstream modules that support it
2022-09-07 15:47:07 +00:00
Thodoris Greasidis
725a1c9156 Update & deduplicate pinejs-client-request to 7.3.5
Update pinejs-client-request from 7.2.1 to 7.3.5
2022-09-07 17:09:19 +03:00
Thodoris Greasidis
fadd514463 Set desired es-version for downstream modules that support it
Change-type: patch
2022-09-07 17:07:16 +03:00