Skip to content

ci: write CI Bazel flags to user.bazelrc instead of removed repo.bazelrc - #1638

Merged
fei-deng merged 3 commits into
envoyproxy:mainfrom
tomjzzhang:fix-ci-user-bazelrc
Oct 20, 2026
Merged

fei-deng merged 3 commits into
envoyproxy:mainfrom
tomjzzhang:fix-ci-user-bazelrc

Conversation

@tomjzzhang

Copy link
Copy Markdown
Contributor

When #1627 synced .bazelrc with upstream Envoy PR envoyproxy/envoy#47806, it removed try-import %workspace%/repo.bazelrc from the bottom of .bazelrc. However, .github/workflows/_ci.yml still writes the CI compiler and resource configurations to repo.bazelrc, so Bazel no longer loads those settings during CI runs.

This PR replaces repo.bazelrc with user.bazelrc in .github/workflows/_ci.yml (and adds the upstream Envoy fallback in ci/do_ci.sh to copy repo.bazelrc to user.bazelrc if present), as user.bazelrc remains imported at the bottom of .bazelrc and ignored by .gitignore.

When envoyproxy#1627 synced .bazelrc with upstream Envoy PR envoyproxy/envoy#47806, it removed try-import %workspace%/repo.bazelrc from the bottom of .bazelrc. However, .github/workflows/_ci.yml still writes the CI compiler and resource configurations to repo.bazelrc, so Bazel no longer loads those settings during CI runs.

This PR replaces repo.bazelrc with user.bazelrc in .github/workflows/_ci.yml (and adds the upstream Envoy fallback in ci/do_ci.sh to copy repo.bazelrc to user.bazelrc if present), as user.bazelrc remains imported at the bottom of .bazelrc and ignored by .gitignore.

Signed-off-by: tomjzzhang <[email protected]>
@tomjzzhang tomjzzhang added the waiting-for-review A PR waiting for a review. label Oct 19, 2026
@tomjzzhang
tomjzzhang requested a review from fei-deng October 20, 2026 00:11

@fei-deng fei-deng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch on the missing import regression.

@fei-deng
fei-deng merged commit c08a488 into envoyproxy:main Oct 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-review A PR waiting for a review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants