Skip to content

test(updater): add hermetic end-to-end suite for the update and deploy-hold flows - #357

Draft
gmmcosta15 wants to merge 2 commits into
devfrom
test/updater-integration-suite
Draft

gmmcosta15 wants to merge 2 commits into
devfrom
test/updater-integration-suite

Conversation

@gmmcosta15

Copy link
Copy Markdown
Collaborator

Description

  • Feature
  • Bug Fix
  • Code Refactor
  • Documentation

Hermetic end-to-end suite for the updater daemon, split out of #353 at review.

Changes

  • tests/integration/updater/conftest.py: fake git remotes, fake systemctl (per-unit ActiveState) and a real daemon instance, no device or network
  • test_updater_git_flow.py: 20 tests, update, rollback and branch-switch paths
  • test_updater_daemon_flow.py: 10 tests, busy/status signals and the fix(updater): hold update overlay until the whole update finishes #353 deploy hold, including the 900s cap

Motivation

Unit tests cover the updater piece by piece; this runs the whole update path against fakes, so regressions in the field-update flow fail CI instead of a printer.

Tests

  • make test-fast-integration: 30 passed

@gmmcosta15 gmmcosta15 added the testing Tests only label Oct 19, 2026
@gmmcosta15 gmmcosta15 self-assigned this Oct 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant