Commit Graph

3798 Commits

Author SHA1 Message Date
Felipe Lalanne
9c1d10dc31 Remove version tag from livepush generated image
The `start-resin-supervisor` script in newer OS version no longer uses the
SUPERVISOR_TAG environment variable setup on supervisor.conf and
update-supervisor.conf.

This change removes the need for that variable with livepush supervisor
to make it compatible with older and newer OS versions

Change-type: patch
2021-04-30 15:51:10 -04:00
Pagan Gazzard
9e52bb33ac Update balena-register-device and send extra info at provision time
This extra info will mean the API is able to immediately set default
config vars based on the os/supervisor version so that they are
available on the first target state fetch rather than having a delay
whilst waiting for the supervisor to report them as part of a state
patch

Update balena-register-device from 6.1.6 to 7.2.0

Change-type: patch
2021-04-29 13:44:30 +00:00
Balena CI
c8600ff22c v12.6.1 2021-04-28 01:59:29 +03:00
bulldozer-balena[bot]
dba9bf1576
Merge pull request #1663 from balena-os/remove-deprecated-dependencies
Remove mz, mkdirp, body-parser dependencies
2021-04-27 22:57:20 +00:00
Christina Wang
b8deb757d6
Update blinking to 0.0.4
Signed-off-by: Christina Wang <christina@balena.io>
2021-04-28 07:20:16 +09:00
Christina Wang
4a2ac557ef
Remove mz, mkdirp, body-parser dependencies
'mz' can be safely replaced with fs.promises
and util.promisify for faster native methods.
'mkdirp' after Node v8 uses native fs.mkdir, thus
is redundant. 'body-parser' is deprecated and
contained within express v4.x.

Closes: #1567
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-04-28 07:20:15 +09:00
Balena CI
f40cde8372 v12.6.0 2021-04-27 21:22:51 +03:00
bulldozer-balena[bot]
404f5c77d7
Merge pull request #1676 from balena-os/test-improvements
Bump dockerode types to 2.5.34
2021-04-27 18:20:51 +00:00
Felipe Lalanne
95fb568aae Bump dockerode types to 2.5.34
This commit updates dockerode types to the latest 2.x version, removing the need
for custom composer types for network.

This commit also modifies network tests to use the new types

Change-type: minor
2021-04-27 13:00:56 -04:00
Felipe Lalanne
c70aedf044 Fix mock dockerode module
Tests using the mock `testWithData` method were not restoring the dockerode
prototype to the default values, making some tests behave differently
when run individually that when run with the suite.

This commit fixes the `testWithData` method and some malfunctioning v1
API tests because of the change. It doesn't fix all the tests
2021-04-27 13:00:56 -04:00
Balena CI
e2d54e9d6c v12.5.16 2021-04-27 19:49:06 +03:00
bulldozer-balena[bot]
8ab395dbb4
Merge pull request #1679 from balena-os/enable-docker-layer-cache
Enable docker layer caching on CircleCI
2021-04-27 16:46:56 +00:00
Miguel Casqueira
dd2df215f0 Enable docker layer caching on CircleCI
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-04-27 12:38:13 -04:00
Balena CI
7908d19f9e v12.5.15 2021-04-26 23:53:04 +03:00
bulldozer-balena[bot]
6ad7ed3409
Merge pull request #1678 from balena-os/add-clean-step
Added clean step to remove previous builds before running tests
2021-04-26 20:50:50 +00:00
Balena CI
c1f2ac9c58 v12.5.14 2021-04-26 22:53:02 +03:00
bulldozer-balena[bot]
09cab9c3f3
Merge pull request #1641 from balena-os/rename-resin-vars
balena-supervisor: replace references to resin-vars
2021-04-26 19:51:16 +00:00
Miguel Casqueira
6f4030634a Added clean step to remove previous builds before running tests
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-04-26 19:51:07 +00:00
Balena CI
10b56658e6 v12.5.13 2021-04-26 21:09:43 +03:00
bulldozer-balena[bot]
d30116217a
Merge pull request #1664 from balena-os/typescript-4
Update supervisor to typescript 4
2021-04-26 18:07:41 +00:00
Balena CI
5b7bc8a870 v12.5.12 2021-04-21 02:01:06 +03:00
bulldozer-balena[bot]
52279a9e84
Merge pull request #1665 from balena-os/dependabot/npm_and_yarn/ssri-6.0.2
Bump ssri from 6.0.1 to 6.0.2
2021-04-20 22:57:56 +00:00
dependabot[bot]
ae8dc8ff22 Bump ssri from 6.0.1 to 6.0.2
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 18:46:53 -04:00
Mark Corbin
6ca9507beb balena-supervisor: replace references to resin-vars
Replace all references to the 'resin-vars' script with
'balena-config-vars' as it has been renamed. Add a conditional
test for compatibility with legacy systems.

Change-type: patch
Changelog-entry: balena-supervisor: replace references to resin-vars
Signed-off-by: Mark Corbin <mark@balena.io>
2021-04-20 09:58:04 +00:00
Felipe Lalanne
fd06c06092 Update supervisor to typescript 4
Change-type: patch
2021-04-19 15:18:21 +00:00
Balena CI
2b30ce3b49 v12.5.11 2021-04-16 03:02:26 +03:00
bulldozer-balena[bot]
fc5ac75171
Merge pull request #1659 from balena-os/remove-nuc-from-extra-uenv
Refactor extra_uEnv to not match with intel nuc
2021-04-15 23:57:17 +00:00
Miguel Casqueira
e6eda0fca7 Refactor extra_uEnv to not match with intel nuc
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-04-14 01:20:26 -04:00
Balena CI
5a7511b1a2 v12.5.10 2021-04-13 01:04:59 +03:00
bulldozer-balena[bot]
192589d19e
Merge pull request #1655 from balena-os/vipul/fix-getcpuid
patch: Fix substring end parameter to get accurate CPU ID
2021-04-12 22:01:44 +00:00
Vipul Gupta (@vipulgupta2048)
50a2f3d313 patch: Fix the sysInfo.getCpuId() test
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
2021-04-13 03:19:46 +05:30
Vipul Gupta (@vipulgupta2048)
d058f43feb patch: Fix substring end parameter for accurate CPU ID
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
2021-04-13 03:18:56 +05:30
Balena CI
14efec2c7d v12.5.9 2021-04-10 01:44:44 +03:00
bulldozer-balena[bot]
0acfd4809f
Merge pull request #1656 from balena-os/1648-ipam-validation
Fix broken IPAM network validation
2021-04-09 22:42:37 +00:00
Felipe Lalanne
fdb37191e7 Fix broken IPAM network validation
Network validaton was failing to identify a bad IPAM network
configuration leading to supervisor failures (see #1618)

Change-type: patch
Closes: #1618
2021-04-09 17:49:09 -04:00
Felipe Lalanne
d0762298a5 Update mocha options for recursive test lookup
Mocha will now recursively lookup *.spec.ts files under the `test/` folder
2021-04-09 13:02:29 -04:00
Balena CI
6c0df43f1a v12.5.8 2021-04-09 16:29:30 +03:00
bulldozer-balena[bot]
c434e54a8e
Merge pull request #1651 from balena-os/1609-detect-all-data-partitions
Improved mutable (/data) file system detection
2021-04-09 13:27:40 +00:00
Miguel Casqueira
6860c50646 Skip localmode test suite
These tests have been failing and prevent new tests from passing

Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-04-08 17:34:27 -04:00
Miguel Casqueira
204475d3dc Improved mutable (/data) file system detection
Change-type: patch
Closes: #1609
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-04-08 17:34:27 -04:00
Balena CI
d78165b966 v12.5.7 2021-04-06 18:36:31 +03:00
bulldozer-balena[bot]
934d85f89f
Merge pull request #1615 from balena-os/vipul/refer-v2
Add message to refer to v2 endpoints
2021-04-06 15:34:20 +00:00
Vipul Gupta (@vipulgupta2048)
732950fb9e Add message to refer to v2 endpoints
Change-type: patch
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
2021-04-06 14:16:12 +00:00
Balena CI
6651ab4f2e v12.5.6 2021-04-05 19:10:53 +03:00
bulldozer-balena[bot]
36e22d1463
Merge pull request #1635 from balena-os/patch/purge-image-removal-fix
Prevent unintended image removal when calling purge endpoints to remove volumes
2021-04-05 16:08:44 +00:00
Christina Wang
31effed426 Prevent unintended image removal when calling purge endpoints to remove volumes
Using safeStateClone within doPurge to applyIntermediateTarget after
successful volume purge has led to various type deficiencies being revealed
in common.js. Add several inline types in common.js to satisfy
the type checker (credit: Page <page@balena.io>). Delete common.d.ts
since it's not required and might mistakenly mask true I/O types of
functions in common.js.

Closes: #1611
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-04-05 12:10:09 +00:00
Balena CI
b7eb4c30a7 v12.5.5 2021-04-05 13:15:32 +03:00
bulldozer-balena[bot]
5476013139
Merge pull request #1644 from balena-os/patch/update-readme-sv-org
Update setup section to reflect switch to balena-os org
2021-04-05 10:13:46 +00:00
Balena CI
0f906fd9d8 v12.5.4 2021-04-02 03:42:01 +03:00
bulldozer-balena[bot]
b1c5a56740
Merge pull request #1643 from balena-os/1636-purge-null-volumes
Patch list volumes to always return an array
2021-04-02 00:39:41 +00:00