Commit Graph

4259 Commits

Author SHA1 Message Date
bulldozer-balena[bot]
7297b74a2d
Merge pull request #2000 from balena-os/accept_more_label_chars
Allow most printable ASCII chars for service label key
2022-10-17 12:07:06 +00:00
Ken Bannister
91f93952db Allow most printable ASCII chars for service label key
Change-type: patch
Signed-off-by: Ken Bannister <kb2ma@runbox.com>
2022-10-14 20:50:25 -04:00
Balena CI
eec12faa02
v14.2.10 2022-10-13 16:09:18 +00:00
bulldozer-balena[bot]
a57f02cf63
Merge pull request #2031 from balena-os/inherited-secrets
Use inherited secrets for flowzone
2022-10-13 16:08:01 +00:00
Balena CI
076d95d0d2
v14.2.9 2022-10-10 19:42:06 +00:00
bulldozer-balena[bot]
dfcaa2ecb8
Merge pull request #2035 from balena-os/parallel-start
Start state engine and API binder in parallel
2022-10-10 19:40:51 +00:00
Pagan Gazzard
080d112f3e Use inherited secrets for flowzone
Change-type: patch
2022-10-07 21:04:50 +00:00
Balena CI
ef0dcc39dc
v14.2.8 2022-10-03 20:37:37 +00:00
bulldozer-balena[bot]
6466fcbb8c
Merge pull request #2036 from balena-os/update-type-deps
Update type dependencies
2022-10-03 20:36:07 +00:00
Pagan Gazzard
0237bd7cf4 Update type dependencies
Change-type: patch
2022-10-03 14:38:42 -05:00
Felipe Lalanne
b4514631b1 Start state engine and API binder in parallel
The state engine and preloading is performed before the device gets a
chance to register, while this is desirable for preloaded apps, it
introduces a delay on registration which is known to cause issues since
the VPN is also trying to connect at the same time.

This triggers a simultaneous start of the device engine, the API binder
and the supevisor API to avoid delays.

Change-type: patch
2022-09-30 19:38:10 +00:00
Balena CI
24fafd6e9d
v14.2.7 2022-09-28 15:37:47 +00:00
bulldozer-balena[bot]
7b1c1882c0
Merge pull request #1998 from balena-os/test-refactor
Refactor (part of) the test suite into unit/integration
2022-09-28 15:36:24 +00:00
Felipe Lalanne
6ecff9d5b4 Remove blink tests
Blink tests really are testing functionality of the dependency and not
any local behavior.
2022-09-28 10:37:41 -03:00
Felipe Lalanne
209b409129 Migrate contract test to integration 2022-09-28 10:37:41 -03: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
f835db9509 Migrate legacy db test to integration folder 2022-09-28 10:37:41 -03:00
Felipe Lalanne
f19f70d690 Migrate update-lock tests as integration tests
Update-lock tests now use the actual filesystem for testing, instead of
relying on stubs and spies.

This commit also fixes a small bug with update-lock that would cause a
`PromiseRejectionHandledWarning` when the lock callback would throw.
2022-09-28 10:37:41 -03:00
Felipe Lalanne
0fb1de2a1a Migrate tests for image manager 2022-09-28 10:37:41 -03:00
Felipe Lalanne
b81294431e Migrate compose/app and compose/app-manager tests
compose/app is run as part of the unit test suite
compose/application-manager is run as part of the integration test suite
2022-09-28 10:37:41 -03:00
Felipe Lalanne
a69fbf6eac Migrate volume-manager tests to integration
Now the tests are ran against the actual docker engine instead of
against mockerode.

The new tests actually caught a bug in
`volumeManager.removeOrphanedVolumes`, where that function would try to
remove volumes for stopped containers, causing an exception.
This commit also fixes that bug.
2022-09-28 10:37:41 -03:00
Felipe Lalanne
18c2f8cec9 Migrate lib/legacy tests to integration tests
This also sets up a dbus container as part of the test environment. This
container exposes a socket that the sut container can use
2022-09-28 10:37:41 -03:00
Felipe Lalanne
a4da25c1ef Disable logs globally using mocha hooks 2022-09-28 10:37:41 -03:00
Felipe Lalanne
a5a24e6462 Split compose/service tests into unit/integration 2022-09-28 10:37:41 -03:00
Felipe Lalanne
cdc9868d29 Split compose/network test in unit/integration
Integration tests are ran in the engine instead of mockerode.
2022-09-28 10:37:40 -03:00
Felipe Lalanne
4113dde45d Split compose/volume tests into unit/integration
This also needs to modify the test environment as database migrations
will look for `config.json` in the location given by the variable
`CONFIG_MOUNT_POINT`.

The volume tests now run against the actual docker engine setup via dind

Change-type: patch
2022-09-28 10:37:40 -03:00
Felipe Lalanne
7833fa1ff3 Un-skip fs-utils test 2022-09-28 10:37:40 -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
bulldozer-balena[bot]
4863303270
Merge pull request #2033 from balena-os/knex-bug-2032
Fix migrations hardcode to work with knex 0.95.15
2022-09-28 00:19:49 +00:00
Felipe Lalanne
bf0d9ee836 Fix migrations hardcode to work with knex 0.95.15
The latest upgrade of knex broke the webpack loader that hardcodes the
migration paths in the built code, that cause supervisors 14.2.3 to
14.2.5 (inclusive) to break anytime migrations needed to be ran (see linked issue).

This commit fixes the loader to work with the included knex version.

Relates-to: #2032
Change-type: patch
2022-09-27 19:28:32 -03:00
Balena CI
e1b12c28fe
v14.2.5 2022-09-27 04:50:53 +00:00
bulldozer-balena[bot]
bbcabc3bdc
Merge pull request #2029 from balena-os/docs/clarify-testing-after-updates
Add test troubleshooting case that appears after upgrading system
2022-09-27 04:49:39 +00:00
Christina Ying Wang
c6d5ad7a89 Add test troubleshooting case that appears after upgrading system
The error may be something to the effect of `failed to add the host
(vethd6242de) <=> sandbox (veth8e47b1a) pair interfaces: operation not supported`.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-09-26 20:05:53 -07:00
Balena CI
1e84f8f59f
v14.2.4 2022-09-26 20:17:29 +00:00
bulldozer-balena[bot]
e783be2fa4
Merge pull request #2028 from balena-os/custom_finalize
Add custom flowzone action to finalize staging releases
2022-09-26 20:15:50 +00:00
Balena CI
6c1a9cadb2
v14.2.3 2022-09-26 19:24:16 +00:00
bulldozer-balena[bot]
4d515fe51f
Merge pull request #2030 from balena-os/knex
Update dependencies to fix NPM build
2022-09-26 19:22:40 +00:00
Felipe Lalanne
943004cf43 Add custom flowzone action to finalize staging releases
Change-type: patch
2022-09-26 18:36:55 +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
bulldozer-balena[bot]
d183d0e3e1
Merge pull request #2023 from balena-os/webpack-5
Update to webpack 5
2022-09-22 21:40:53 +00:00
Pagan Gazzard
e8baa63fdd Update typescript target to es2021
Change-type: patch
2022-09-22 21:07:44 +01:00
Pagan Gazzard
47dca8604b Update to webpack 5
Change-type: patch
2022-09-22 21:07:44 +01:00
Balena CI
0e053b6706
v14.2.1 2022-09-22 20:07:29 +00:00
Page-
90a9d6e738
Merge pull request #2025 from balena-os/custom-publish
Publish to staging with a custom publish composite job
2022-09-22 21:06:13 +01:00
Pagan Gazzard
29ae778e39 Publish to staging with a custom publish composite job
Change-type: patch
2022-09-22 18:58:55 +01:00
Balena CI
ac1fa4d491
v14.2.0 2022-09-20 17:55:22 +00:00
bulldozer-balena[bot]
437a24e2f1
Merge pull request #1989 from balena-os/disable-events
Disable event tracking
2022-09-20 17:54:06 +00:00
Felipe Lalanne
b207c01988 Fix livepush to work with node 16
This also improves the memory efficiency of the sync mechanism by
calculating the stage ids on the fly instead of storing the full
build output in memory and then parsing the string.
2022-09-20 14:23:21 -03:00