Skip to content

chore: share bazelrc setup across e2e workspaces - #217

Merged
acozzette merged 1 commit into
mainfrom
try-import
Sep 22, 2026
Merged

acozzette merged 1 commit into
mainfrom
try-import

Conversation

@acozzette

Copy link
Copy Markdown
Contributor

This change moves duplicated bazelrc logic out of e2e workspaces and into a shared file tools/e2e.bazelrc. The %workspace% references in bazelrc files always represent the root of the invoking workspace, so we can only share logic across workspaces at the same depth in the repo. This prevents us from having the root bazelrc use the same shared file.

I also switched from try-import to just import for .aspect/bazelrc, because I don't think there is any realistic situation where we would need to gracefully handle that file being absent.


Changes are visible to end-users: no

Test plan

  • Covered by existing test cases

This change moves duplicated bazelrc logic out of e2e workspaces and into a
shared file `tools/e2e.bazelrc`. The `%workspace%` references in bazelrc files
always represent the root of the invoking workspace, so we can only share logic
across workspaces at the same depth in the repo. This prevents us from having
the root bazelrc use the same shared file.

I also switched from `try-import` to just `import` for `.aspect/bazelrc`,
because I don't think there is any realistic situation where we would need to
gracefully handle that file being absent.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@aspect-workflows

aspect-workflows Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Aspect Workflows Tasks

📅 Tue Sep 22 21:13:13 UTC 2026

Task Results


⏱ Last updated Tue Sep 22 21:15:00 UTC 2026 · 📊 GitHub API quota 760/7,700 (10% used, resets in 50m)
🚀 Powered by Aspect CLI (v2026.38.24)  |  Aspect Build · X · LinkedIn · YouTube

@acozzette
acozzette marked this pull request as ready for review September 22, 2026 21:15
@acozzette
acozzette requested a review from jbedard September 22, 2026 21:15
Comment thread tools/e2e.bazelrc
Comment thread tools/e2e.bazelrc
@acozzette
acozzette merged commit b5db57a into main Sep 22, 2026
56 checks passed
@acozzette
acozzette deleted the try-import branch September 22, 2026 21:34
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.

2 participants