Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cgrindel
Copy link
Member

@cgrindel cgrindel commented Sep 7, 2025

Summary

  • Add complete Rails example demonstrating Bazel integration with rules_ruby
  • Include comprehensive README with setup instructions and implementation notes
  • Add Rails test macros for Bazel integration
  • Set up CI configuration for the example

Changes

  • Initial Rails application files with Bazel BUILD configuration
  • Rails test setup with rails_test.bzl macros for model/controller and system tests
  • Comprehensive documentation including:
    • Environment setup with direnv
    • Rails command usage
    • Bazel testing workflow
    • Implementation notes for sandbox patches
  • CI configuration for automated testing

🤖 Generated with Claude Code

cgrindel and others added 9 commits September 7, 2025 14:10
- Add Rails test setup section explaining rails_test.bzl configuration
- Reorganize sections with Bazel testing first
- Clarify Rails command usage for development tasks
- Add note about Bazel managing gems (no bundle install needed)
- Improve wording and fix file path references

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@cgrindel cgrindel self-assigned this Sep 7, 2025
cgrindel and others added 4 commits September 7, 2025 17:32
Add clarification that tests use SQLite in-memory database for fast,
isolated test execution in the Rails example documentation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@cgrindel cgrindel requested a review from p0deje September 8, 2025 00:02
@cgrindel cgrindel marked this pull request as ready for review September 8, 2025 00:02
@cgrindel
Copy link
Member Author

@p0deje Gentle ping for a code review.

Copy link
Member

@p0deje p0deje left a comment

Choose a reason for hiding this comment

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

Amazing, thank you for putting all that to work!


# Use the Bazel binary specified by the integration test. Otherise, fall back
# to bazel.
bazel="${BIT_BAZEL_BINARY:-bazel}"
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, why do we need this? I've never encountered BIT before.

)

bazel_dep(
name = "bazel_env.bzl",
Copy link
Member

Choose a reason for hiding this comment

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

TIL, I will see how to use it to make IDE integrations easier in other projcts.

@p0deje p0deje merged commit 3e83250 into main Sep 30, 2025
52 checks passed
@p0deje p0deje deleted the gh0144_rails_example branch September 30, 2025 15:16
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.

3 participants