-
Notifications
You must be signed in to change notification settings - Fork 8
Local bazelrc file approach for passing gcloud auth credentials #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes update the Bazel configuration and documentation. In the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Bazel
User->>Bazel: Initiates build
Bazel->>Config: Reads .bazelrc
alt .bazelrc.local exists
Bazel->>Config: Import .bazelrc.local
else
Bazel-->>Config: Continue without local config
end
Possibly related PRs
Suggested reviewers
Poem
Warning Review ran into problems🔥 ProblemsGitHub Actions and Pipeline Checks: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository. Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
devnotes.md (1)
83-89: Minor documentation improvements needed.Apply these improvements:
-Create a new .bazelrc.local file with the following content. Also feel free to specify any local overrides to the build/test options here. +Create a new .bazelrc.local file with the following content. Also, feel free to specify any local overrides to the build/test options here. This file is git-ignored. -``` +```bazel -build --google_credentials=/Users/{username}/.config/gcloud/application_default_credentials.json +build --google_credentials=${HOME}/.config/gcloud/application_default_credentials.json<details> <summary>🧰 Tools</summary> <details> <summary>🪛 LanguageTool</summary> [uncategorized] ~84-~84: Possible missing comma found. Context: ....local file with the following content. Also feel free to specify any local override... (AI_HYDRA_LEO_MISSING_COMMA) </details> <details> <summary>🪛 markdownlint-cli2 (0.17.2)</summary> 86-86: Fenced code blocks should have a language specified null (MD040, fenced-code-language) </details> </details> </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used: CodeRabbit UI** **Review profile: CHILL** **Plan: Pro (Legacy)** <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 656d3ed6c57fe6847f41b30bf791bdde98a54502 and 2231991f533c4f9d1cfabd2c09d2dd16c9408298. </details> <details> <summary>📒 Files selected for processing (3)</summary> * `.bazelrc` (1 hunks) * `.gitignore` (1 hunks) * `devnotes.md` (1 hunks) </details> <details> <summary>✅ Files skipped from review due to trivial changes (1)</summary> * .gitignore </details> <details> <summary>🧰 Additional context used</summary> <details> <summary>🪛 LanguageTool</summary> <details> <summary>devnotes.md</summary> [uncategorized] ~84-~84: Possible missing comma found. Context: ....local file with the following content. Also feel free to specify any local override... (AI_HYDRA_LEO_MISSING_COMMA) </details> </details> <details> <summary>🪛 markdownlint-cli2 (0.17.2)</summary> <details> <summary>devnotes.md</summary> 86-86: Fenced code blocks should have a language specified null (MD040, fenced-code-language) </details> </details> </details> <details> <summary>🔇 Additional comments (3)</summary><blockquote> <details> <summary>.bazelrc (2)</summary> `1-1`: **LGTM! Good use of try-import.** The `try-import` directive safely handles missing local configuration files. --- `1-2`: **Verify local configuration loading.** Let's ensure the local configuration is properly loaded. </details> <details> <summary>devnotes.md (1)</summary> `83-89`: **Verify gcloud credentials path.** Let's ensure the credentials path is valid across different environments. <details> <summary>🧰 Tools</summary> <details> <summary>🪛 LanguageTool</summary> [uncategorized] ~84-~84: Possible missing comma found. Context: ....local file with the following content. Also feel free to specify any local override... (AI_HYDRA_LEO_MISSING_COMMA) </details> <details> <summary>🪛 markdownlint-cli2 (0.17.2)</summary> 86-86: Fenced code blocks should have a language specified null (MD040, fenced-code-language) </details> </details> </details> </blockquote></details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
devnotes.md (1)
83-89: Add language specification to the code block.The documentation looks good, but the code block should specify the language for better syntax highlighting.
-``` +```bazelrc build --google_credentials=/Users/{username}/.config/gcloud/application_default_credentials.json<details> <summary>🧰 Tools</summary> <details> <summary>🪛 markdownlint-cli2 (0.17.2)</summary> 86-86: Fenced code blocks should have a language specified null (MD040, fenced-code-language) </details> </details> </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used: CodeRabbit UI** **Review profile: CHILL** **Plan: Pro (Legacy)** <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 2231991f533c4f9d1cfabd2c09d2dd16c9408298 and d2079abd9dbb008d85dc212d71627188c2ccd780. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `devnotes.md` (1 hunks) </details> <details> <summary>🧰 Additional context used</summary> <details> <summary>🪛 markdownlint-cli2 (0.17.2)</summary> <details> <summary>devnotes.md</summary> 86-86: Fenced code blocks should have a language specified null (MD040, fenced-code-language) </details> </details> </details> <details> <summary>⏰ Context from checks skipped due to timeout of 90000ms (2)</summary> * GitHub Check: bazel_config_tests * GitHub Check: enforce_triggered_workflows </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
## Summary Adds support for creating a new `.bazelrc.local` file specifying custom build/test bazel options which can be used for passing gcloud auth credentials ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the build configuration to optionally load a user-specific settings file, replacing the automatic use of preset credentials. - **Documentation** - Enhanced guidance with a new section detailing steps for setting up personal authentication credentials. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary Adds support for creating a new `.bazelrc.local` file specifying custom build/test bazel options which can be used for passing gcloud auth credentials ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the build configuration to optionally load a user-specific settings file, replacing the automatic use of preset credentials. - **Documentation** - Enhanced guidance with a new section detailing steps for setting up personal authentication credentials. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary Adds support for creating a new `.bazelrc.local` file specifying custom build/test bazel options which can be used for passing gcloud auth credentials ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the build configuration to optionally load a user-specific settings file, replacing the automatic use of preset credentials. - **Documentation** - Enhanced guidance with a new section detailing steps for setting up personal authentication credentials. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary Adds support for creating a new `.bazelrc.local` file specifying custom build/test bazel options which can be used for passing gcloud auth credentials ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the build configuration to optionally load a user-specific settings file, replacing the automatic use of preset credentials. - **Documentation** - Enhanced guidance with a new section detailing steps for setting up personal authentication credentials. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary Adds support for creating a new `.bazelrc.local` file specifying custom build/test bazel options which can be used for passing gcloud auth credentials ## Cheour clientslist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the build configuration to optionally load a user-specific settings file, replacing the automatic use of preset credentials. - **Documentation** - Enhanced guidance with a new section detailing steps for setting up personal authentication credentials. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Adds support for creating a new
.bazelrc.localfile specifying custom build/test bazel options which can be used for passing gcloud auth credentialsChecklist
Summary by CodeRabbit