Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set lengthier timeout for CVD creation under Docker #476

Merged
merged 5 commits into from
Mar 21, 2024

Conversation

k311093
Copy link
Collaborator

@k311093 k311093 commented Mar 15, 2024

Running CVD under docker can take much longer time to complete creation. To prevent CVD instance being killed by host orchestrator while booting instance, set lengthier timeout for CVD creation.

@k311093 k311093 requested a review from ikicha March 15, 2024 06:30
@k311093
Copy link
Collaborator Author

k311093 commented Mar 15, 2024

b/317170946 for the context

@k311093 k311093 added the kokoro:force-run Trigger a presubmit build unconditionally. label Mar 15, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Mar 15, 2024
@k311093 k311093 added the kokoro:run Run e2e tests. label Mar 18, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Mar 18, 2024
@k311093 k311093 added the kokoro:run Run e2e tests. label Mar 19, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Mar 19, 2024
@jemoreira
Copy link
Member

The failing test is unrelated to your code, I will update the branch (so that a change with a larger timeout applies) and re-run it, if it fails again just push it bypassing the test.
The failing test is load_aosp_main_x64_phone_x2

frontend/src/host_orchestrator/main.go Outdated Show resolved Hide resolved
frontend/src/host_orchestrator/orchestrator/controller.go Outdated Show resolved Hide resolved
@k311093 k311093 added the kokoro:run Run e2e tests. label Mar 20, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Mar 20, 2024
frontend/src/host_orchestrator/main.go Outdated Show resolved Hide resolved
frontend/src/host_orchestrator/orchestrator/controller.go Outdated Show resolved Hide resolved
@@ -24,6 +24,10 @@ orchestrator_https_port=2443
# Defaults to "/tmp/<uid>/cvd_artifacts"
orchestrator_cvd_artifacts_dir=/var/lib/cuttlefish-common
#
# Timeout for CVD creation
# Defaults to 7 mins
orchestrator_cvd_creation_timeout=7
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this line be uncommented? I think there's a default value in golang code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to comment and also changed value of the variable.

docker/arm-server/Dockerfile Outdated Show resolved Hide resolved
@k311093 k311093 added the kokoro:run Run e2e tests. label Mar 20, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Mar 20, 2024
@k311093 k311093 requested review from 0405ysj and ser-io March 20, 2024 06:49
k311093 added 2 commits March 21, 2024 10:29
Running CVD under docker can take much longer time to complete
creation. To prevent CVD instance being killed by host orchestrator
while booting instance, set lengthier timeout for CVD creation.
k311093 added 3 commits March 21, 2024 10:29
…imeout

Change docker specific CVD creation timeout configuration to generic
CVD with 7 mins default, and change the configuration for docker to 30
mins.
To be more clear for the timeout value of CVD creation, change unit
to seconds and specified the unit at names.
Change orchestrator_cvd_creation_timeout_secs to comment and
orchestrator will use golang default value for this.

This simplifies making custom option for specific environment.

Change Dockerfile to use echo command to apply
orchestrator_cvd_creation_timeout_secs
@k311093 k311093 added the kokoro:run Run e2e tests. label Mar 21, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Mar 21, 2024
@k311093 k311093 merged commit 43f99aa into google:main Mar 21, 2024
5 checks passed
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.

6 participants