Skip to content

Test/ci monolithic container pr199 - #29452

Open
tonyliaoss wants to merge 2 commits into
mainfrom
test/ci-monolithic-container-pr199
Open

tonyliaoss wants to merge 2 commits into
mainfrom
test/ci-monolithic-container-pr199

Conversation

@tonyliaoss

Copy link
Copy Markdown
Member

No description provided.

@tonyliaoss
tonyliaoss requested a review from a team as a code owner August 26, 2026 21:44
@tonyliaoss
tonyliaoss requested review from amanda-tarafa and removed request for a team August 26, 2026 21:44
@tonyliaoss
tonyliaoss force-pushed the test/ci-monolithic-container-pr199 branch from 2a46990 to 0a5367c Compare August 26, 2026 21:48
…finitions.

BEGIN_PUBLIC
Support plug-and-play monolithic Docker testing across Bazel build definitions.

To support the multi-language monolithic test container (introduced in build-support#199), Protocol Buffers needs to build and test cleanly under wildcard target expansion (`bazel test //...`) in fully hermetic, isolated container environments.

Currently, executing `bazel test //...` out-of-the-box in containerized toolchains encounters multiple analysis, runtime, and environment errors:
- Leaked internal Google3 labels and repo-relative paths in Starlark macros cause target analysis failures when exported to OSS.
- Containerized runtime runners lack environment isolation (e.g., .NET CLI attempting to write to restricted home paths, non-standard Python interpreter paths), causing sandboxed execution failures.
- Starlark C++ proto aspects crash when analyzing headerless/empty proto libraries.
- Legacy network-dependent tests and deprecated blocklist targets break offline test suites during wildcard evaluation.

This change updates the build definitions, test runner scripts, and Copybara export rules so that the entire test suite resolves hermetically and passes seamlessly in both local container environments and CI workflows without external dependencies or manual overrides.
END_PUBLIC

R=mkruskal,sandyzhang
CC=protocol-devel+reviews
CONV=746be3bf-c8f0-4a89-8ce8-056b27cfe8fa
MARKDOWN=true
RELEASE_NOTES=no
TAG=agy
Configure .github/workflows/test_monolithic_container.yml to validate
us-docker.pkg.dev/protobuf-build/containers/test/linux/monolithic:latest-pr199
across the full language test matrix (cpp, java, python, ruby, rust, csharp, php, bazel-all)
on pushes to test/ci-monolithic-* and pull requests.

Authenticate container runner with GAR_SERVICE_ACCOUNT credentials and
pin actions/checkout to immutable commit SHA per Zizmor security policy.
@tonyliaoss
tonyliaoss force-pushed the test/ci-monolithic-container-pr199 branch from 0a5367c to 901255f Compare August 26, 2026 22:21
@amanda-tarafa
amanda-tarafa removed their request for review September 21, 2026 16:56

This branch has not been deployed

No deployments
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.

1 participant