Skip to content

Added host orchestrator endpoint for cvd restart#2088

Open
SuperStrongDinosaur wants to merge 3 commits intogoogle:mainfrom
SuperStrongDinosaur:restart_host_orchestrator_endpoint
Open

Added host orchestrator endpoint for cvd restart#2088
SuperStrongDinosaur wants to merge 3 commits intogoogle:mainfrom
SuperStrongDinosaur:restart_host_orchestrator_endpoint

Conversation

@SuperStrongDinosaur
Copy link
Contributor

b/478814714

@Databean Databean added the kokoro:run Run e2e tests. label Feb 4, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Feb 4, 2026
@adelva1984 adelva1984 requested review from jemoreira and ser-io March 13, 2026 16:55
@adelva1984 adelva1984 force-pushed the restart_host_orchestrator_endpoint branch from daa0e48 to 31685a9 Compare March 13, 2026 16:55
@adelva1984 adelva1984 enabled auto-merge March 13, 2026 17:22
@adelva1984 adelva1984 added the kokoro:force-run Trigger a presubmit build unconditionally. label Mar 16, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Mar 16, 2026
@adelva1984 adelva1984 force-pushed the restart_host_orchestrator_endpoint branch from a8e5e1f to bbdd825 Compare March 17, 2026 22:11
Copy link
Member

@ser-io ser-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-merge was automatically disabled March 18, 2026 12:13

Head branch was pushed to by a user without write access

@SuperStrongDinosaur SuperStrongDinosaur force-pushed the restart_host_orchestrator_endpoint branch from bbdd825 to a41c891 Compare March 18, 2026 12:13
@SuperStrongDinosaur SuperStrongDinosaur force-pushed the restart_host_orchestrator_endpoint branch from a41c891 to 204e12d Compare March 19, 2026 10:00
@SuperStrongDinosaur SuperStrongDinosaur force-pushed the restart_host_orchestrator_endpoint branch from 204e12d to f9bf682 Compare March 19, 2026 13:51
if err != nil {
t.Fatal(err)
}
if uptime > 120 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we didn't restart the device uptime > 120 will still be true.

adb shell uptime -s gives you a timestamp for when the system was started.

cvd create

adb shell uptime -s  --> 2026-03-19 15:34:46

wait 1 second

cvd restart

adb shell uptime -s  --> 2026-03-19 15:34:59

Now we can assert that if the difference between the 1st and 2nd timestamp is more than 1 second the device was indeed restarted.

@SuperStrongDinosaur SuperStrongDinosaur force-pushed the restart_host_orchestrator_endpoint branch from f9bf682 to 2cc2e00 Compare March 19, 2026 16:40
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.

5 participants