Skip to content

Add a boot timeout thread.#2593

Open
3405691582 wants to merge 1 commit into
google:mainfrom
3405691582:508320217_1
Open

Add a boot timeout thread.#2593
3405691582 wants to merge 1 commit into
google:mainfrom
3405691582:508320217_1

Conversation

@3405691582
Copy link
Copy Markdown
Collaborator

Add a timeout thread to the state machine. Once both threads start, the timeout thread will wait until the boot completion event is received, the boot affirmatively fails, or the timeout gets triggered. Then we attempt to inform the launcher, otherwise we abend. This way, we should have more deterministic stopping conditions.

We should perhaps expose the timeout flag more to the user, but this will suffice for now.

Bug: 508320217

@3405691582 3405691582 requested a review from Databean May 20, 2026 19:24
@3405691582 3405691582 force-pushed the 508320217_1 branch 2 times, most recently from 4bc1140 to 7fc6ed3 Compare May 20, 2026 19:30
Comment thread base/cvd/cuttlefish/host/commands/run_cvd/boot_state_machine.cc
Comment thread base/cvd/cuttlefish/host/commands/run_cvd/boot_state_machine.cc
Comment thread base/cvd/cuttlefish/host/commands/run_cvd/boot_state_machine.cc Outdated
Comment thread base/cvd/cuttlefish/host/commands/run_cvd/boot_state_machine.cc Outdated
Comment thread base/cvd/cuttlefish/host/commands/run_cvd/boot_state_machine.cc Outdated
@3405691582 3405691582 force-pushed the 508320217_1 branch 4 times, most recently from 1e33e53 to 27c007e Compare May 21, 2026 15:55
Add a timeout thread to the state machine. Once both threads start, the
timeout thread will wait until the boot completion event is received,
the boot affirmatively fails, or the timeout gets triggered. Then we
attempt to inform the launcher, otherwise we abend. This way, we should
have more deterministic stopping conditions.

We should perhaps expose the timeout flag more to the user, but this
will suffice for now.

Bug: 508320217
@3405691582 3405691582 added the kokoro:run Run e2e tests. label May 22, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label May 22, 2026
@3405691582 3405691582 enabled auto-merge May 22, 2026 15:24
@3405691582 3405691582 added this pull request to the merge queue May 22, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 22, 2026
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.

3 participants