Commit Graph

3887 Commits

Author SHA1 Message Date
Thodoris Greasidis
3e960f0f09 Point users to the configuration page for overriding update locks
Change-type: patch
See: https://jel.ly.fish/32cc2ee4-c5a7-4ec8-8e91-1ba4f1379bc4
See: https://www.flowdock.com/app/rulemotion/r-product/threads/9mk8QcdNp4UAwKeEUpXPHVxYM_c
Signed-off-by: Thodoris Greasidis thodoris@balena.io
Co-authored-by: Kyle Harding <kyle@balena.io>
2021-07-07 15:46:38 +03:00
Balena CI
3cdab68df5 v12.9.1 2021-07-06 03:51:12 +03:00
bulldozer-balena[bot]
5ad1917300
Merge pull request #1741 from balena-os/clarify-temp-action
Clarify that /v2/applications/:appId/stop-service is temporary
2021-07-06 00:49:09 +00:00
Miguel Casqueira
3bc3274001 Clarify that /v2/applications/:appId/stop-service is temporary
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-07-05 19:25:04 -04:00
Balena CI
41e745ce85 v12.9.0 2021-07-06 01:50:32 +03:00
bulldozer-balena[bot]
cb76877c1a
Merge pull request #1696 from balena-os/compose-test-improvements
Improve testing for supervisor composition modules
2021-07-05 22:48:45 +00:00
Felipe Lalanne
e04e64763f Improve testing for supervisor composition modules
This PR cleans up testing for supervisor compose modules. It also fixes broken
tests for application manager and removes a lot of dependencies for those tests
on DB and other unnecessary mocks. There are probably a lot of cases that tests
are missing but this should make writing new tests a lot easier.

This PR also creates a new mock dockerode (mockerode) module that should make it
easier to test operations that interact with the engine. All references
to the old mock-dockerode have not yet been removed but that should come
soon in another PR

List of squashed commits:
- Add tests for network create/remove
- Move compose service tests to test/src/compose and reorganize test descriptions
- Add support for image creation to mockerode
- Add additional tests for compose volumes
- Update mockerode so unimplemented fake methods throw. This is to ensure
  tests using mockerode fail if an unimplemented method is used
- Update tests for volume-manager with mockerode
- Update tests for compose/images
- Simplify tests using mockerode
- Clean up compose/app tests
- Create application manager tests

Change-type: minor
2021-07-05 17:50:52 -04:00
Balena CI
5bd53db905 v12.8.12 2021-07-02 01:35:43 +03:00
bulldozer-balena[bot]
765275657c
Merge pull request #1731 from balena-os/dependabot/npm_and_yarn/color-string-1.5.5
Bump color-string from 1.5.3 to 1.5.5
2021-07-01 22:33:57 +00:00
dependabot[bot]
4518c93fca Bump color-string from 1.5.3 to 1.5.5
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.5.5)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 18:27:22 -04:00
Balena CI
71555f7a4d v12.8.11 2021-06-30 18:42:56 +03:00
bulldozer-balena[bot]
b05493d9ad
Merge pull request #1734 from balena-os/remove-codeowners
Remove codeowners file
2021-06-30 15:39:51 +00:00
Miguel Casqueira
3d4c720d0b Remove codeowners file
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-06-30 11:31:50 -04:00
Balena CI
b397ccef35 v12.8.10 2021-06-30 08:12:20 +03:00
bulldozer-balena[bot]
a53f584049
Merge pull request #1723 from balena-os/1459-lock-while-hup-breadcrumbs
Prevent updates/reboots with locks when HUP breadcrumbs present
2021-06-30 05:08:47 +00:00
Christina Wang
a9028e58ec
Prevent updates/reboots with locks when HUP breadcrumbs present
On HUP, some healthceck services need to complete before
it's safe for the Supervisor to reboot the device when
applying state changes. rollback-{health|altboot}-breadcrumb
are the two files that Supervisor looks for and locks the device
on when present in this patch.

Not closing issue 1459 because there is a possible case where,
on altboot rollback, the breadcrumbs are not present. 1459
may be closed when this edge case is investigated.

Change-type: patch
Connects-to: #1459
See: https://www.flowdock.com/app/rulemotion/r-supervisor/threads/cL7YfNOLSfTPfw05h59GEW0kfOt
Signed-off-by: Christina Wang <christina@balena.io>
2021-06-30 13:27:03 +09:00
Balena CI
5223262557 v12.8.9 2021-06-29 08:36:50 +03:00
bulldozer-balena[bot]
168f5df2dd
Merge pull request #1730 from balena-os/wrong-delta-source
Fix supervisor using wrong source for deltas
2021-06-29 05:35:08 +00:00
Felipe Lalanne
2fa0d3dc43 Fix supervisor using wrong source for deltas
This fixes a specific issue when the supervisor cannot find the right
source for deltas (e.g. after the DB gets deleted), where legacy
behavior was to look for any image in the app.

Change-type: patch
Relates-to: #1729
2021-06-25 16:24:51 -04:00
Balena CI
cacbcfd2b1 v12.8.8 2021-06-18 15:15:45 +03:00
bulldozer-balena[bot]
1bfcd6b791
Merge pull request #1725 from balena-os/add_revpi_boards_to_raspberrypi_variants
Add revpi-connect, revpi-core-3 to Raspberry Pi variants
2021-06-18 12:13:52 +00:00
Florin Sarbu
7c26480ada
Add revpi-connect, revpi-core-3 to Raspberry Pi variants
We need the supervisor to be able to manage config.txt changes for these
Revolution Pi boards too.

Change-type: patch
Signed-off-by: Florin Sarbu <florin@balena.io>
2021-06-18 20:33:27 +09:00
Balena CI
5486a74b82 v12.8.7 2021-06-14 14:15:43 +03:00
bulldozer-balena[bot]
ac957c07a7
Merge pull request #1722 from balena-os/dependabot/npm_and_yarn/normalize-url-4.5.1
Bump normalize-url from 4.5.0 to 4.5.1
2021-06-14 11:11:06 +00:00
dependabot[bot]
ece3be6d45
Bump normalize-url from 4.5.0 to 4.5.1
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Change-type: patch
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 19:24:08 +09:00
Balena CI
3974aacdc7 v12.8.6 2021-06-14 13:18:55 +03:00
bulldozer-balena[bot]
aea770ebe8
Merge pull request #1721 from balena-os/firewall-documentation
Document the current state of HOST_FIREWALL_MODE
2021-06-14 10:16:48 +00:00
Christina Wang
3961fbf1e7
Document the current state of HOST_FIREWALL_MODE
This set of docs can provide info for support agents until
issue 1482 is resolved. Expect this document to change as firewall
implementation is improved.

Connects-to: #1482
Connects-to: #1525
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-06-09 16:56:17 +09:00
Balena CI
7db799efa4 v12.8.5 2021-06-08 23:02:15 +03:00
bulldozer-balena[bot]
f5382be077
Merge pull request #1720 from balena-os/device-state-typings
Improve target state typings
2021-06-08 20:00:29 +00:00
Pagan Gazzard
ee4d919fca Improve target state typings
Change-type: patch
2021-06-08 13:45:44 +01:00
Balena CI
27405d910b v12.8.4 2021-06-03 10:02:33 +03:00
bulldozer-balena[bot]
eec1a32fc7
Merge pull request #1718 from balena-os/found-unmanaged-volume
Refactor debug log when unmanaged volume is found
2021-06-03 07:00:43 +00:00
Miguel Casqueira
ab4fb454e0 Refactor debug log when unmanaged volume is found
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-06-02 13:07:24 -04:00
Balena CI
b76fb36249 v12.8.3 2021-05-29 03:11:23 +03:00
bulldozer-balena[bot]
35d9a32a6d
Merge pull request #1715 from balena-os/1673-prevent-recursive-state-report
Prevent a recursive loop when reporting current state
2021-05-29 00:09:14 +00:00
Miguel Casqueira
55a344dceb Prevent a recursive loop when reporting current state
Closes: #1673
Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
2021-05-28 16:20:27 -04:00
Balena CI
a4be293ec4 v12.8.2 2021-05-26 17:58:13 +03:00
bulldozer-balena[bot]
ab3e3d5b00
Merge pull request #1712 from balena-os/fix-bullet-points-in-docs
Revert multiline bullet points in notes
2021-05-26 14:56:16 +00:00
Christina Wang
5524b5e986
Revert multiline bullet points in notes
Docs engine cannot support > - markdown pattern.

Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-26 17:13:50 +09:00
Balena CI
20a23155c1 v12.8.1 2021-05-25 07:07:45 +03:00
bulldozer-balena[bot]
67f8c97e2f
Merge pull request #1708 from balena-os/specify-restart-add-uuid-quotes
Specify that all restart API endpoints remove and recreate containers
2021-05-25 04:05:41 +00:00
Christina Wang
a355dcf8b9
typo: bandwith -> bandwidth in HARDWARE_METRICS entry
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-19 11:36:40 +09:00
Christina Wang
7c4d232439
Specify that all restart API endpoints remove and recreate containers
This is intended behavior.

Also add quotes around UUID in examples to reduce confusion, and format responses
as multiline JSON for clarity.

Closes: #1620
Closes: #1681
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-19 11:36:01 +09:00
Balena CI
b77fdbb249 v12.8.0 2021-05-18 21:19:13 +03:00
bulldozer-balena[bot]
e8e441bea3
Merge pull request #1666 from balena-os/1645-hardware-metrics-config-var
Add toggleable `SUPERVISOR_HARDWARE_METRICS` config
2021-05-18 18:17:27 +00:00
Christina Wang
5004cc5fd2
Add SUPERVISOR_HARDWARE_METRICS to config documentation
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-13 14:47:15 +09:00
Christina Wang
dcd863eed8
Add toggleable SUPERVISOR_HARDWARE_METRICS config
On devices with bandwidth sensitivity, this config var
disables sending system information such as memory
usage or cpu temp as current state.

Closes: #1645
Change-type: minor
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-13 13:59:07 +09:00
Christina Wang
ea3e50e96e
Create & unify src/device-state/current-state tests
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-12 18:33:01 +09:00
Christina Wang
39601473c0
Fix undervoltage regex, add undervoltage tests, move sysinfo suite to test/src
Signed-off-by: Christina Wang <christina@balena.io>
2021-05-12 18:33:01 +09:00