Skip to content

Return v1 image lookup error in NewTestWorkflow - #692

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1032774109
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1032774109

Conversation

@copybara-service

Copy link
Copy Markdown

Return v1 image lookup error in NewTestWorkflow

NewTestWorkflow previously called GetImageFromFamily or GetImage without
checking err before overwriting it with the Beta image lookup. When the v1
lookup failed and the Beta lookup succeeded, t.Image remained nil and
dereferencing t.Image.Architecture panicked with SIGSEGV.

Check err immediately after the v1 image lookup and add unit tests covering
both image family and image name lookups.

@copybara-service
copybara-service Bot force-pushed the test_1032774109 branch 2 times, most recently from a3a60af to e6cedcb Compare November 30, 2026 19:41
`NewTestWorkflow` previously called `GetImageFromFamily` or `GetImage` without
checking `err` before overwriting it with the Beta image lookup. When the v1
lookup failed and the Beta lookup succeeded, `t.Image` remained nil and
dereferencing `t.Image.Architecture` panicked with SIGSEGV.

Check `err` immediately after the v1 image lookup and add unit tests covering
both image family and image name lookups.

PiperOrigin-RevId: 1032774109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 participants