Skip to content
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

Adopt FFI #10221

Closed
wants to merge 57 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
35665db
Passes all unit tests under JRuby 9.3.4.0
JasonLunn Jul 6, 2022
0ace85f
Passes all unit tests under JRuby 9.3.4.0
JasonLunn Jul 6, 2022
1a14400
Merge remote-tracking branch 'origin/ffi' into ffi
JasonLunn Jul 6, 2022
0418090
Remove question marks from FFI method names to appease non-JRuby impl…
JasonLunn Jul 6, 2022
b7dec29
Undelete file erroneously removed during conflict resolution.
JasonLunn Jul 6, 2022
36a027a
Module.const_set raises an exception when invoked with a lowercase sy…
JasonLunn Jul 6, 2022
f8e0276
Remove expected conformance test failures from JRuby that aren't also…
JasonLunn Jul 6, 2022
585c914
Remove call to internal_build_java from JRuby builds, as it is no lon…
JasonLunn Jul 6, 2022
3933fd8
Copy ext directory when setting up 3.0 conformance tests so that FFI …
JasonLunn Jul 6, 2022
6401791
Unify the code path for running conformance and compatibility tests b…
JasonLunn Jul 6, 2022
5c5d36d
Exempt "upto" from codespell, as it is a Ruby method defined on integ…
JasonLunn Jul 6, 2022
a677aa1
Debugging the Docker-based build process used by Kokoro.
JasonLunn Jul 7, 2022
980a4bc
Add support for begin-less and endless ranges for repeated fields.
JasonLunn Jul 8, 2022
69269ec
Remove generated *_pb.rb files from Makefile.am.
JasonLunn Jul 8, 2022
f2d7ffb
Build tweaks
JasonLunn Jul 8, 2022
ba43fa0
Remove field_mask.rb as well.
JasonLunn Jul 8, 2022
7658242
Revert switch from Dir.glob to FileList.
JasonLunn Jul 8, 2022
bc8acf0
Move wildcard expression within call to glob().
JasonLunn Jul 8, 2022
d937a71
Use #unshift instead of #prepend.
JasonLunn Jul 8, 2022
b8b1926
Align the macOS script with changes from the linux version.
JasonLunn Jul 8, 2022
7625da7
Remove strong typing for the declaration of `free_arena` since it use…
JasonLunn Jul 11, 2022
ac05a70
Merge branch 'protocolbuffers:main' into ffi
JasonLunn Jul 11, 2022
c904160
Remove inspect_message_value and replace it with calls to `convert_up…
JasonLunn Jul 11, 2022
51dc44d
Remove accessor methods for `msg` and `arena` from Message classes
JasonLunn Jul 18, 2022
fa03ff8
Define dynamic methods to avoid slower path through method_missing.
JasonLunn Jul 19, 2022
24e0628
Assorted cleanups
JasonLunn Aug 9, 2022
03b07c2
Memoize calls.
JasonLunn Aug 9, 2022
5d1acc8
Expose inline `upb_Arena_Malloc` as `upb_Arena_FastMalloc` and use it…
JasonLunn Aug 22, 2022
eba6175
Remove ASAN build flags.
JasonLunn Aug 22, 2022
a0aa279
Cleanup, prepare to merge back to ffi branch.
JasonLunn Aug 22, 2022
827808a
Merge remote-tracking branch 'origin/master' into ffi
JasonLunn Aug 23, 2022
c101694
Make dynamically defined Message classes inherit from `AbstractMessage`.
JasonLunn Aug 26, 2022
f6ef0a4
Update blaze rules to reflect the removal of the Java-specific source…
JasonLunn Aug 26, 2022
d994c87
Cleanup lingering Java-specific references
JasonLunn Aug 26, 2022
ddff689
Use the latest version of bundler; `Gemfile.lock` is not in the repo …
JasonLunn Aug 26, 2022
d5a7e84
Fix reference to private constant `AbstractMessage`.
JasonLunn Aug 26, 2022
b9f504d
Fix bug where `method_missing` treated the `method_name` argument as …
JasonLunn Aug 26, 2022
5821f4c
Remove dependencies on `rake-compiler` and `rake-compiler-dock`.
JasonLunn Aug 26, 2022
44adb29
Remove reference to `rake/extensiontask`.
JasonLunn Aug 26, 2022
5a289c6
Realign the failure list for JRuby to match Ruby.
JasonLunn Aug 26, 2022
db1aef8
Explicitly invoke `bundle install` before building via `rake`.
JasonLunn Aug 26, 2022
9cfc8e5
Restore `target_compatible_with` so that only expected conformance te…
JasonLunn Aug 26, 2022
29cdf0f
Revert attempt to call `bundle install` from genrule.
JasonLunn Aug 26, 2022
46bb239
Expose the `GEM_HOME` environment variable to build actions.
JasonLunn Aug 26, 2022
edf6d6c
Workaround missing type aliases on `aarch64`.
JasonLunn Aug 26, 2022
4f6591e
Merge remote-tracking branch 'origin/master' into ffi
JasonLunn Aug 26, 2022
ef47295
Fix typo.
JasonLunn Aug 26, 2022
73bba0c
Fix order of arguments to `typedef`.
JasonLunn Aug 26, 2022
2843e49
Extend the timeout for `gc_test`, and skip running it entirely under …
JasonLunn Aug 26, 2022
975cda8
Restore `cmd`.
JasonLunn Aug 26, 2022
67f3a14
Implement workaround for test failures caused by symlinks.
JasonLunn Aug 28, 2022
39e1592
Move setting BAZEL environment variable to bazel.sh for consistency.
JasonLunn Aug 28, 2022
9c709de
Set BAZEL environment variable when invoking via travis-test.sh on ma…
JasonLunn Aug 28, 2022
0e16b81
Set `BAZEL` using `--test_env` in the same place as other environment…
JasonLunn Aug 28, 2022
56562b1
Merge branch 'main' into ffi
JasonLunn Aug 29, 2022
d07eee8
Consolidate environment variable setting in ``.blazerc`.
JasonLunn Aug 29, 2022
af4ba90
Remove vestigial reference to `IN_DOCKER`.
JasonLunn Aug 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
common --action_env=PATH
common --action_env=GEM_HOME
common --action_env=GEM_PATH
common --test_env=BAZEL=true
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
with:
check_filenames: true
skip: ./.git,./conformance/third_party,*.snk,*.pb,*.pb.cc,*.pb.h,./src/google/protobuf/testdata,./objectivec/Tests,./python/compatibility_tests/v2.5.0/tests/google/protobuf/internal,./.github/workflows/codespell.yml
ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,optin,streem,sur,falsy"
ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,optin,streem,sur,falsy,upto"
40 changes: 3 additions & 37 deletions conformance/failure_list_jruby.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Recommended.FieldMaskNumbersDontRoundTrip.JsonOutput
Recommended.FieldMaskPathsDontRoundTrip.JsonOutput
Recommended.FieldMaskTooManyUnderscore.JsonOutput
Recommended.Proto2.JsonInput.FieldNameExtension.Validator
Recommended.Proto2.ProtobufInput.ValidDataRepeated.BOOL.PackedInput.PackedOutput.ProtobufOutput
Recommended.Proto2.ProtobufInput.ValidDataRepeated.BOOL.UnpackedInput.PackedOutput.ProtobufOutput
Expand Down Expand Up @@ -30,33 +27,6 @@ Recommended.Proto2.ProtobufInput.ValidDataRepeated.UINT32.PackedInput.PackedOutp
Recommended.Proto2.ProtobufInput.ValidDataRepeated.UINT32.UnpackedInput.PackedOutput.ProtobufOutput
Recommended.Proto2.ProtobufInput.ValidDataRepeated.UINT64.PackedInput.PackedOutput.ProtobufOutput
Recommended.Proto2.ProtobufInput.ValidDataRepeated.UINT64.UnpackedInput.PackedOutput.ProtobufOutput
Recommended.Proto3.JsonInput.BoolFieldAllCapitalFalse
Recommended.Proto3.JsonInput.BoolFieldAllCapitalTrue
Recommended.Proto3.JsonInput.BoolFieldCamelCaseFalse
Recommended.Proto3.JsonInput.BoolFieldCamelCaseTrue
Recommended.Proto3.JsonInput.BoolFieldDoubleQuotedFalse
Recommended.Proto3.JsonInput.BoolFieldDoubleQuotedTrue
Recommended.Proto3.JsonInput.BoolMapFieldKeyNotQuoted
Recommended.Proto3.JsonInput.DoubleFieldInfinityNotQuoted
Recommended.Proto3.JsonInput.DoubleFieldNanNotQuoted
Recommended.Proto3.JsonInput.DoubleFieldNegativeInfinityNotQuoted
Recommended.Proto3.JsonInput.FieldMaskInvalidCharacter
Recommended.Proto3.JsonInput.FieldNameDuplicate
Recommended.Proto3.JsonInput.FieldNameNotQuoted
Recommended.Proto3.JsonInput.FloatFieldInfinityNotQuoted
Recommended.Proto3.JsonInput.FloatFieldNanNotQuoted
Recommended.Proto3.JsonInput.FloatFieldNegativeInfinityNotQuoted
Recommended.Proto3.JsonInput.Int32MapFieldKeyNotQuoted
Recommended.Proto3.JsonInput.Int64MapFieldKeyNotQuoted
Recommended.Proto3.JsonInput.JsonWithComments
Recommended.Proto3.JsonInput.StringFieldSingleQuoteBoth
Recommended.Proto3.JsonInput.StringFieldSingleQuoteKey
Recommended.Proto3.JsonInput.StringFieldSingleQuoteValue
Recommended.Proto3.JsonInput.StringFieldSurrogateInWrongOrder
Recommended.Proto3.JsonInput.StringFieldUnpairedHighSurrogate
Recommended.Proto3.JsonInput.StringFieldUnpairedLowSurrogate
Recommended.Proto3.JsonInput.Uint32MapFieldKeyNotQuoted
Recommended.Proto3.JsonInput.Uint64MapFieldKeyNotQuoted
Recommended.Proto3.ProtobufInput.ValidDataOneofBinary.MESSAGE.Merge.ProtobufOutput
Recommended.Proto3.ProtobufInput.ValidDataRepeated.BOOL.PackedInput.UnpackedOutput.ProtobufOutput
Recommended.Proto3.ProtobufInput.ValidDataRepeated.BOOL.UnpackedInput.UnpackedOutput.ProtobufOutput
Expand Down Expand Up @@ -86,10 +56,6 @@ Recommended.Proto3.ProtobufInput.ValidDataRepeated.UINT32.PackedInput.UnpackedOu
Recommended.Proto3.ProtobufInput.ValidDataRepeated.UINT32.UnpackedInput.UnpackedOutput.ProtobufOutput
Recommended.Proto3.ProtobufInput.ValidDataRepeated.UINT64.PackedInput.UnpackedOutput.ProtobufOutput
Recommended.Proto3.ProtobufInput.ValidDataRepeated.UINT64.UnpackedInput.UnpackedOutput.ProtobufOutput
Required.Proto3.JsonInput.EnumFieldNotQuoted
Required.Proto3.JsonInput.Int32FieldLeadingZero
Required.Proto3.JsonInput.Int32FieldNegativeWithLeadingZero
Required.Proto3.JsonInput.Int32FieldPlusSign
Required.Proto3.JsonInput.RepeatedFieldWrongElementTypeExpectingStringsGotBool
Required.Proto3.JsonInput.RepeatedFieldWrongElementTypeExpectingStringsGotInt
Required.Proto3.JsonInput.StringFieldNotAString
Required.Proto3.JsonInput.DurationNegativeNanos.JsonOutput
Required.Proto3.JsonInput.DurationNegativeNanos.ProtobufOutput
Required.Proto3.JsonInput.DurationNegativeSeconds.JsonOutput
2 changes: 1 addition & 1 deletion kokoro/linux/jruby92/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.2.20.1-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.2.20.1-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/jruby92/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.2.20.1-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.2.20.1-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/jruby93/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.3.4.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.3.4.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/jruby93/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.3.4.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.3.4.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby25/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.5.1-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.5.1-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby25/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.5.1-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.5.1-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby26/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.6.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.6.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby26/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.6.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.6.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby27/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.7.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.7.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby27/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.7.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-2.7.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby30/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.0.2-2f706fd1ab49f4e97af769388be486069b63efee"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.0.2-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby30/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.0.2-2f706fd1ab49f4e97af769388be486069b63efee"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.0.2-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby31/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.1.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.1.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
2 changes: 1 addition & 1 deletion kokoro/linux/ruby31/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ timeout_mins: 120

env_vars {
key: "CONTAINER_IMAGE"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.1.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
value: "gcr.io/protobuf-build/ruby/linux:ruby-3.1.0-ef6c39622a830821ce540804f815a8466b8fdc27"
}

env_vars {
Expand Down
4 changes: 2 additions & 2 deletions kokoro/release/ruby/linux/ruby/ruby_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export PROTOC=$PWD/protoc

umask 0022
pushd ruby
gem install bundler -v 2.1.4
bundle update && bundle exec rake gem:native
gem install bundler
bundle update && bundle exec rake gem
ls pkg
mv pkg/* $ARTIFACT_DIR
popd
3 changes: 1 addition & 2 deletions kokoro/release/ruby/linux/ruby/ruby_build_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ set +ex
[[ -s /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh
set -e # rvm commands are very verbose
rvm --default use ruby-2.4.1
# The version needs to be updated if the version specified in Gemfile.lock is changed
gem install bundler -v '1.17.3'
gem install bundler
set -ex
3 changes: 2 additions & 1 deletion kokoro/release/ruby/macos/ruby/ruby_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export PROTOC=$PWD/bazel-bin/protoc

umask 0022
pushd ruby
bundle update && bundle exec rake gem:native
gem install bundler
bundle update && bundle exec rake gem
ls pkg
mv pkg/* $ARTIFACT_DIR
popd
3 changes: 1 addition & 2 deletions ruby/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
*.bundle
tags
.idea/
lib/google/protobuf_java.jar
protobuf-jruby.iml
*.iml
target/
pkg/
tmp/
Expand Down
33 changes: 13 additions & 20 deletions ruby/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,43 +26,31 @@ filegroup(
name = "srcs",
srcs = glob([
"lib/**/*.rb",
"src/**/*.proto",
"ext/**/*.{c,h}}",
]) + [
"Gemfile",
"Rakefile",
"google-protobuf.gemspec",
"pom.xml",
],
)

internal_ruby_extension(
name = "protobuf_c_mac",
extension = "lib/google/protobuf_c.bundle",
extension = "ext/google/x86_64-darwin/libprotobuf_c.bundle",
deps = glob(["ext/google/protobuf_c/*"]),
target_compatible_with = select({
":java_ruby": ["@platforms//:incompatible"],
"@platforms//os:linux": ["@platforms//:incompatible"],
"//conditions:default": ["@platforms//os:osx"],
}),
)

internal_ruby_extension(
name = "protobuf_c",
extension = "lib/google/protobuf_c.so",
extension = "ext/google/x86_64-linux/libprotobuf_c.so",
JasonLunn marked this conversation as resolved.
Show resolved Hide resolved
deps = glob(["ext/google/protobuf_c/*"]),
target_compatible_with = select({
":java_ruby": ["@platforms//:incompatible"],
"@platforms//os:osx": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
)

internal_ruby_extension(
name = "protobuf_java",
extension = "lib/google/protobuf_java.jar",
deps = glob(["src/**/*.java"]),
target_compatible_with = select({
":java_ruby": [],
"//conditions:default": ["@platforms//:incompatible"],
"//conditions:default": ["@platforms//os:linux"],
}),
)

Expand All @@ -72,7 +60,6 @@ filegroup(
":srcs",
"//third_party/utf8_range:all_files",
] + select({
":java_ruby": [":protobuf_java"],
"@bazel_tools//src/conditions:darwin": [":protobuf_c_mac"],
"//conditions:default": [":protobuf_c"],
}),
Expand Down Expand Up @@ -116,7 +103,7 @@ inline_sh_test(
],
cmd = """
pushd `dirname $(location Rakefile)`
RUBYLIB=../src:tests:. BAZEL=true rake test
JasonLunn marked this conversation as resolved.
Show resolved Hide resolved
RUBYLIB=../src:tests:. rake test
popd
""",
)
Expand All @@ -134,9 +121,15 @@ inline_sh_test(
],
cmd = """
pushd `dirname $(location Rakefile)`
RUBYLIB=../src:tests:. BAZEL=true rake gc_test
RUBYLIB=../src:tests:. rake gc_test
popd
""",
timeout = "long",
# Under JRuby, GC.stress is a no-op, so skip running this test.
target_compatible_with = select({
":java_ruby": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
)

conformance_test(
Expand Down
6 changes: 0 additions & 6 deletions ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ To build this Ruby extension, you will need:
* Ruby development headers
* a C compiler

To Build the JRuby extension, you will need:

* Maven
* The latest version of the protobuf java library (see ../java/README.md)
* Install JRuby via rbenv or RVM

First switch to the desired platform with rbenv or RVM.

Then install the required Ruby gems:
Expand Down
Loading