This commit is contained in:
Balena CI 2023-04-10 18:15:44 +00:00
parent 8259dae691
commit 66cbe53b03
No known key found for this signature in database
GPG Key ID: E2ADEC9754128402
6 changed files with 37 additions and 6 deletions

View File

@ -1,3 +1,29 @@
- commits:
- subject: Log uncaught promise exceptions on the app entry
hash: 676464142690da2e36a810cb35e4ea4d0d751636
body: >
Node 15 [changed the way it treats unhandled promise
rejections](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V15.md#throw-on-unhandled-rejections---33021)
from a warning to a throw.
For this reason errors like a corrupt migration directory, that happens when trying to
roll back to a previous supervisor version were no longer showing a
message but dumping the full minimized code into the journal logs.
This PR adds a catchall on app.ts to log the exception and throw an exit
code of 1.
footer:
Change-type: patch
change-type: patch
author: Felipe Lalanne
nested: []
version: 14.10.4
title: ""
date: 2023-04-10T18:15:41.878Z
- commits: - commits:
- subject: Fix assertion error in restart-service - subject: Fix assertion error in restart-service
hash: b9e1464d96824f5332c71324d753d94ddbdecf90 hash: b9e1464d96824f5332c71324d753d94ddbdecf90

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! automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/). This project adheres to [Semantic Versioning](http://semver.org/).
# v14.10.4
## (2023-04-10)
* Log uncaught promise exceptions on the app entry [Felipe Lalanne]
# v14.10.3 # v14.10.3
## (2023-04-10) ## (2023-04-10)

View File

@ -1 +1 @@
14.10.3 14.10.4

View File

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

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "balena-supervisor", "name": "balena-supervisor",
"version": "14.10.3", "version": "14.10.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "balena-supervisor", "name": "balena-supervisor",
"version": "14.10.3", "version": "14.10.4",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@balena/happy-eyeballs": "0.0.6", "@balena/happy-eyeballs": "0.0.6",

View File

@ -1,7 +1,7 @@
{ {
"name": "balena-supervisor", "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.", "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": "14.10.3", "version": "14.10.4",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
"type": "git", "type": "git",
@ -146,6 +146,6 @@
} }
}, },
"versionist": { "versionist": {
"publishedAt": "2023-04-10T15:17:59.424Z" "publishedAt": "2023-04-10T18:15:42.730Z"
} }
} }