Skip to content

kola/coretest: directly test update_engine DBus interface - #931

Draft
amanmaurya92 wants to merge 1 commit into
flatcar:mainfrom
amanmaurya92:fix/dbus-test
Draft

kola/coretest: directly test update_engine DBus interface#931
amanmaurya92 wants to merge 1 commit into
flatcar:mainfrom
amanmaurya92:fix/dbus-test

Conversation

@amanmaurya92

Copy link
Copy Markdown
Contributor

This resolves a FIXME in TestUpdateEngine by replacing the CLI wrapper execution with a direct gdbus call to the org.chromium.UpdateEngine DBus system interface.

This natively verifies that the update_engine daemon is alive, successfully attached to the system bus, and capable of responding to RPC calls, which matches exactly how external controllers (like Kubernetes reboot agents) integrate with the service.

How to use

Reviewers can validate this PR by running the internet-dependent tests and ensuring the UpdateEngine step successfully completes over the DBus interface:

kola run cl.internet

Testing done

Executed $env:GOOS="linux"; cd kola/tests/coretest; go build to syntactically verify the package logic and ensure no compilation regressions occurred in the modified goroutine.

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

This resolves a FIXME in TestUpdateEngine by replacing the CLI wrapper execution with a direct gdbus call to the org.chromium.UpdateEngine DBus system interface. This natively verifies that the update_engine daemon is alive, attached to the system bus, and capable of responding to RPC calls, which matches how external controllers integrate with the service.

Signed-off-by: amanmaurya92 <amanmaurya9209@gmail.com>
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.

1 participant