Skip to content

Declare image contexts and CUDA helper builds - #16308

Merged
copybara-service[bot] merged 2 commits into
masterfrom
test/cl1003651532
Oct 24, 2026
Merged

copybara-service[bot] merged 2 commits into
masterfrom
test/cl1003651532

Conversation

@copybara-service

Copy link
Copy Markdown

Declare image contexts and CUDA helper builds

CUDA test images compiled their sample runners with a separate Go 1.25
Docker stage. The runners were outside Bazel's Go build and analysis
graph, and repository SDK upgrades did not update their compiler.

Build both runners with the repository SDK and package their static
binaries with the image sources. Stage that architecture-selected
context before Make hashes or builds either CUDA image, so helper and
SDK changes invalidate the image cache. The archive also supplies
declared inputs for remote image builds without invoking Bazel from
inside a build action.

Analyzing these programs also exposes a recursive mutex acquisition in
one runner: ExitCode called Done while holding the mutex that Done
takes. Release the lock before waiting, as the other runner already
does, and update both programs to satisfy the newly enabled analyzer
checks.

The ASCII image converter continues to use its separate Go Docker stage.

Assisted-by: OpenAI Codex

Auto-fixed-by: [🤖] @EtiennePerot
FUTURE_COPYBARA_INTEGRATE_REVIEW=#15670 from tamird:cuda-image-contexts 923b3b3

CUDA test images compiled their sample runners with a separate Go 1.25
Docker stage. The runners were outside Bazel's Go build and analysis
graph, and repository SDK upgrades did not update their compiler.

Build both runners with the repository SDK and package their static
binaries with the image sources. Stage that architecture-selected
context before Make hashes or builds either CUDA image, so helper and
SDK changes invalidate the image cache. The archive also supplies
declared inputs for remote image builds without invoking Bazel from
inside a build action.

Analyzing these programs also exposes a recursive mutex acquisition in
one runner: ExitCode called Done while holding the mutex that Done takes.
Release the lock before waiting, as the other runner already does, and
update both programs to satisfy the newly enabled analyzer checks.

The ASCII image converter continues to use its separate Go Docker stage.

Assisted-by: OpenAI Codex
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Oct 24, 2026
@copybara-service
copybara-service Bot merged commit d15d531 into master Oct 24, 2026
2 of 4 checks passed
@copybara-service
copybara-service Bot deleted the test/cl1003651532 branch October 24, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants