install: report a failed cleanup after an error without an observer (interim) #22
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-module-manager#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
install() and install_local() create a work directory and remove it after
verification. If the removal fails after the operation itself failed, the
primary error stays the result and the failed removal is only reported as a
progress event (
phase = "cleanup",state = "failed") throughon_progress.If the caller passes no
on_progress, that report is lost.This is an interim state:
on_progressstands in for the event delivery ofthe host, which does not exist yet.
Scope
(no optional observer), report the failed removal through it in every case
Acceptance criteria
a caller-supplied observer
The description is partly outdated. The observer is now opts.emit, an optional sink for daw_event/v1 events; on_progress no longer exists. The INTERIM comment 'without a sink (opts.emit) this report is lost' stands in four places, not two: activate.lua, index_update.lua, install/init.lua and install/install_local.lua. The issue stays blocked until events reach the host through a channel that is always there.