Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 6 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ permissions: {}

on:
push:
branches: [ main ]
branches:
- main
- release*
pull_request:
branches: [ main ]
branches:
- main
- release*

env:
LLVM_VERSION: 20
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,15 @@ jobs:
logs/*
test/**/*.{log,xml}
retention-days: 5
- name: Upload crash logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}-${{ github.run_attempt }}-${{ matrix.ruby }}-crash
path: |
~/Library/Logs/DiagnosticReports/
/Library/Logs/DiagnosticReports/
retention-days: 5
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4.1.0
if: always()
Expand Down Expand Up @@ -616,6 +625,15 @@ jobs:
logs/*
test/**/*.{log,xml}
retention-days: 5
- name: Upload crash logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}-${{ github.run_attempt }}-${{ matrix.ruby }}-crash
path: |
~/Library/Logs/DiagnosticReports/
/Library/Logs/DiagnosticReports/
retention-days: 5
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4.1.0
if: always()
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/pkg/
/test/reports/
/tmp/
/logs/
/vendor/bundle/
Gemfile.lock
Makefile
Expand Down
15 changes: 3 additions & 12 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ group :development do
gem "gem-compiler"
gem "grpc-tools", "~> 1.59"
gem "heckle"
gem "minitest", "~> 5.27"
gem "irb"
# TODO(SA): review https://minite.st/docs/History_rdoc.html#label-6.0.0+-2F+2025-12-17
gem "minitest", "< 6.0"
gem "minitest-reporters"
gem "mutex_m"
gem "rack"
Expand All @@ -44,15 +46,4 @@ group :development do
gem "ruby-lsp", require: false
gem "simplecov-cobertura"
gem "yard"

# Resolves https://github.com/ruby/openssl/issues/949 which we encounter when downloading gocaves on macOS on CI
# This has been fixed in openssl versions 3.1.2, 3.2.2, 3.3.1.
# The latest dot-patch version of Ruby 3.3 and 3.4 now comes with a new enough openssl version by default.
if RUBY_PLATFORM.include?("darwin")
if RUBY_VERSION.start_with?('3.2')
gem "openssl", "~> 3.2.2"
elsif RUBY_VERSION.start_with?('3.1')
gem "openssl", "~> 3.1.2"
end
end
end
14 changes: 14 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if ARGV.delete("--trace-loaded-features") || ENV["COUCHBASE_TRACE_LOADED_FEATURES"]
Copy link
Member Author

Choose a reason for hiding this comment

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

I will leave this tool as it helped me to debug this issue

loaded_before = $LOADED_FEATURES.dup
set_trace_func lambda { |event, file, line, id, _binding, _klass|
if event == 'c-return' && [:require, :load].include?(id)
new_loads = $LOADED_FEATURES - loaded_before
unless new_loads.empty?
puts "#{file}:#{line}"
new_loads.each { |path| puts " LOADED: #{path}" }
loaded_before.concat(new_loads)
end
end
}
end

require "bundler/setup"
require "irb"
require "open3"
Expand Down
2 changes: 1 addition & 1 deletion ext/couchbase
Loading