CI test. Please ignore - #17869
Conversation
PR Summary by QodoBazel: force remote cache invalidation via action/test env and compiler defines
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules 1. Unscoped Bazel cache busting
|
| build --action_env=INVALIDATE_ALL_REMOTE_CACHE_ENTRIES=yes-absolutely-1 | ||
| build --test_env=INVALIDATE_ALL_REMOTE_CACHE_ENTRIES=yes-absolutely-1 | ||
| build --copt=-DINVALIDATE_ALL_REMOTE_CACHE_ENTRIES="yes-absolutely-1" | ||
| build --host_copt=-DINVALIDATE_ALL_REMOTE_CACHE_ENTRIES="yes-absolutely-1" |
There was a problem hiding this comment.
1. Unscoped bazel cache busting 🐞 Bug ➹ Performance
The added unconditional .bazelrc options change action environment and compilation flags for all Bazel builds, which will broadly invalidate existing cache hits and increase build/test latency. This also impacts RBE runs that rely on the configured remote cache, increasing remote execution/cache load.
Agent Prompt
### Issue description
`.bazelrc` now unconditionally injects an env var and compiler defines into the build, which changes Bazel action keys and causes widespread cache misses (local and remote). This will slow down CI and local development, and increases load on the configured remote cache.
### Issue Context
The repo uses an RBE config with `--remote_cache` in `.bazelrc.remote`. The new flags are added as plain `build ...` options (not under a dedicated config), so they apply broadly.
### Fix Focus Areas
- .bazelrc[153-156]
### Suggested fix
- Remove these lines entirely, **or**
- Move them under an opt-in config (e.g. `build:cache_bust ...`) or a CI-only config (e.g. `build:rbe-ci ...`) so normal builds keep benefiting from caches.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
The failure look like flakes. @titusfortner could you rerun CI please to verify? |
|
@Yannic |
This will trigger a build to validate some changes we (EngFlow) made to the RBE backend. Not for merging