Skip to content

Conversation

jemoreira
Copy link
Member

@jemoreira jemoreira commented Jun 16, 2025

Write test archives during test execution instead of depending on existing files. Existing files don't work when the test is executed in a sandboxed environment.

@jemoreira jemoreira requested review from 0405ysj and ser-io June 16, 2025 23:07
@jemoreira jemoreira enabled auto-merge June 16, 2025 23:44
@jemoreira jemoreira force-pushed the main branch 2 times, most recently from 63ba2be to bca271e Compare June 17, 2025 00:30
@jemoreira jemoreira force-pushed the main branch 3 times, most recently from 6c41136 to e1f6ff3 Compare June 17, 2025 23:25
@jemoreira jemoreira changed the title Don't use test files and deprecated functions Don't use test files Jun 17, 2025
Copy link
Collaborator

@0405ysj 0405ysj left a comment

Choose a reason for hiding this comment

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

LGTM. Could you fix other presubmit check failures caused by Golang version? Thanks!

+ go test ./...
go: downloading github.com/google/go-cmp v0.5.9
# github.com/google/android-cuttlefish/frontend/src/host_orchestrator/orchestrator [github.com/google/android-cuttlefish/frontend/src/host_orchestrator/orchestrator.test]
orchestrator/userartifacts_test.go:446:18: undefined: os.CreateTemp
orchestrator/userartifacts_test.go:535:18: undefined: os.CreateTemp
note: module requires Go 1.17
?   	github.com/google/android-cuttlefish/frontend/src/host_orchestrator	[no test files]
?   	github.com/google/android-cuttlefish/frontend/src/host_orchestrator/api/v1	[no test files]
FAIL	github.com/google/android-cuttlefish/frontend/src/host_orchestrator/orchestrator [build failed]
ok  	github.com/google/android-cuttlefish/frontend/src/host_orchestrator/orchestrator/cvd	0.002s
?   	github.com/google/android-cuttlefish/frontend/src/host_orchestrator/orchestrator/debug	[no test files]
?   	github.com/google/android-cuttlefish/frontend/src/host_orchestrator/orchestrator/exec	[no test files]
?   	github.com/google/android-cuttlefish/frontend/src/host_orchestrator/orchestrator/testing	[no test files]
FAIL

@jemoreira jemoreira added this pull request to the merge queue Jun 18, 2025
Merged via the queue into google:main with commit 44556ac Jun 18, 2025
17 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.

3 participants