Skip to content

updater: map ProgressInstallationFinished to EventTypeInstallComplete - #1462

Open
princexpoddar wants to merge 2 commits into
flatcar:mainfrom
princexpoddar:fix/updater-installation-finished-event
Open

updater: map ProgressInstallationFinished to EventTypeInstallComplete#1462
princexpoddar wants to merge 2 commits into
flatcar:mainfrom
princexpoddar:fix/updater-installation-finished-event

Conversation

@princexpoddar

Copy link
Copy Markdown

Fixes #1460

Description

progressToEventRequest in updater/updater.go mapped ProgressInstallationFinished to omaha.EventTypeInstallStarted instead of omaha.EventTypeInstallComplete, causing installation completion to be reported using the same Omaha event type as installation start.

Changes

  • Update ProgressInstallationFinished to return omaha.EventTypeInstallComplete.
  • Add TestProgressToEventRequest to verify that each progress value maps to the expected Omaha event type and result.
  • Add a test ensuring invalid progress values return nil.

Verification

Ran the updater unit tests:

ok  	github.com/flatcar/nebraska/updater	2.590s

Fix a copy-paste error in progressToEventRequest where ProgressInstallationFinished was mapped to omaha.EventTypeInstallStarted instead of omaha.EventTypeInstallComplete. Add TestProgressToEventRequest to verify that all progress enum values map to their expected Omaha event types and results.

Fixes flatcar#1460

Signed-off-by: Prabal Poddar <prabalpoddar73@gmail.com>
@princexpoddar
princexpoddar requested a review from a team as a code owner August 1, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

updater: ProgressInstallationFinished maps to EventTypeInstallStarted instead of EventTypeInstallComplete

1 participant