Verify Module Build
Testing & Qualityverify-module-buildVerify Module Build is an Agent Skill for testing & quality published in the bazelbuild/bazel-central-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Sets up and verifies local presubmit repository builds for modules in the Bazel Central Registry (BCR). Use when reproducing presubmit builds, testing module dependencies locally.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/bazelbuild/bazel-central-registry/blob/HEAD/.agent/skills/verify_module_build/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/verify-module-build, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Verify Module Build
This skill provides instructions for setting up and verifying module builds locally in the Bazel Central Registry (BCR).
Procedure
Copy this checklist and track progress:
- Step 1: Setup presubmit repositories
- Step 2: Run tests
- Step 3: Troubleshoot stale cache if necessary
1. Setup
Prepare the local repositories for the module version:
bazel run //tools:setup_presubmit_repos -- --module {module_name}@{version}
2. Test
Run the specific build or test command provided by the setup tool's output.
3. Troubleshoot
If local changes are not reflected during testing, clear the bazel cache:
bazel clean --expunge