Compare commits

..

3 Commits

Author SHA1 Message Date
flowzone-app[bot]
01585c688e
v17.0.2 2025-04-02 20:16:11 +00:00
flowzone-app[bot]
eeac56efc3
Merge pull request #2415 from balena-os/local-leftover-locks
Fix search for app leftover locks
2025-04-02 20:15:12 +00:00
Felipe Lalanne
d475b1d830
Fix search for app leftover locks
The leftover locks search was creating an array rather than an object
keyed by the appId. This could affect the lock cleanup and make leftover
locks from one app affect the install of the app in local mode.

Change-type: patch
2025-04-01 17:56:06 -03:00
7 changed files with 32 additions and 8 deletions

View File

@ -1,3 +1,18 @@
- commits:
- subject: Fix search for app leftover locks
hash: d475b1d8301c83b932ce272d3496bf4aac0ef1ad
body: |
The leftover locks search was creating an array rather than an object
keyed by the appId. This could affect the lock cleanup and make leftover
locks from one app affect the install of the app in local mode.
footer:
Change-type: patch
change-type: patch
author: Felipe Lalanne
nested: []
version: 17.0.2
title: ""
date: 2025-04-02T20:16:09.754Z
- commits:
- subject: Clarify firewall docs on behavior with host network containers
hash: caed4dcca0043f848f6dd5a3d1a2f82a2466e8d6

View File

@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
# v17.0.2
## (2025-04-02)
* Fix search for app leftover locks [Felipe Lalanne]
# v17.0.1
## (2025-03-25)

View File

@ -1 +1 @@
17.0.1
17.0.2

View File

@ -2,6 +2,6 @@ name: balena-supervisor
description: 'Balena Supervisor: balena''s agent on devices.'
joinable: false
type: sw.application
version: 17.0.1
version: 17.0.2
provides:
- slug: sw.compose.long-volume-syntax

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "balena-supervisor",
"version": "17.0.1",
"version": "17.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "balena-supervisor",
"version": "17.0.1",
"version": "17.0.2",
"license": "Apache-2.0",
"dependencies": {
"@balena/systemd": "^0.5.0",

View File

@ -1,7 +1,7 @@
{
"name": "balena-supervisor",
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
"version": "17.0.1",
"version": "17.0.2",
"license": "Apache-2.0",
"repository": {
"type": "git",
@ -137,6 +137,6 @@
"yargs": "^17.7.2"
},
"versionist": {
"publishedAt": "2025-03-25T20:41:20.717Z"
"publishedAt": "2025-04-02T20:16:10.284Z"
}
}

View File

@ -187,8 +187,12 @@ export async function inferNextSteps(
const currentAppIds = Object.keys(currentApps).map((i) => parseInt(i, 10));
const targetAppIds = Object.keys(targetApps).map((i) => parseInt(i, 10));
const withLeftoverLocks = await Promise.all(
currentAppIds.map((id) => hasLeftoverLocks(id)),
const withLeftoverLocks = Object.fromEntries(
await Promise.all(
currentAppIds.map(
async (id) => [id, await hasLeftoverLocks(id)] as [number, boolean],
),
),
);
const bootTime = getBootTime();