Skip to content

Commit 924ef56

Browse files
committed
[backport] Fix CI issues
* lock minitest version < 6 for now (the upgrade requires extra review) release notes: https://minite.st/docs/History_rdoc.html#label-6.0.0+-2F+2025-12-17 * tune workflows to pull crash reports on macos and also run linters for maintenance branches * update gocaves mock to latest version * update core to pickup fix CXXCBC-766 Backport of #211
1 parent 05f2e89 commit 924ef56

File tree

6 files changed

+43
-4
lines changed

6 files changed

+43
-4
lines changed

.github/workflows/linters.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ permissions: {}
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches:
7+
- main
8+
- release*
79
pull_request:
8-
branches: [ main ]
10+
branches:
11+
- main
12+
- release*
913

1014
env:
1115
LLVM_VERSION: 20

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,15 @@ jobs:
555555
logs/*
556556
test/**/*.{log,xml}
557557
retention-days: 5
558+
- name: Upload crash logs
559+
if: failure()
560+
uses: actions/upload-artifact@v4
561+
with:
562+
name: ${{ github.job }}-${{ github.run_attempt }}-${{ matrix.ruby }}-crash
563+
path: |
564+
~/Library/Logs/DiagnosticReports/
565+
/Library/Logs/DiagnosticReports/
566+
retention-days: 5
558567
- name: Publish Test Report
559568
uses: mikepenz/[email protected]
560569
if: always()
@@ -616,6 +625,15 @@ jobs:
616625
logs/*
617626
test/**/*.{log,xml}
618627
retention-days: 5
628+
- name: Upload crash logs
629+
if: failure()
630+
uses: actions/upload-artifact@v4
631+
with:
632+
name: ${{ github.job }}-${{ github.run_attempt }}-${{ matrix.ruby }}-crash
633+
path: |
634+
~/Library/Logs/DiagnosticReports/
635+
/Library/Logs/DiagnosticReports/
636+
retention-days: 5
619637
- name: Publish Test Report
620638
uses: mikepenz/[email protected]
621639
if: always()

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/pkg/
1919
/test/reports/
2020
/tmp/
21+
/logs/
2122
/vendor/bundle/
2223
Gemfile.lock
2324
Makefile

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ group :development do
3030
gem "gem-compiler"
3131
gem "grpc-tools", "~> 1.59"
3232
gem "heckle"
33-
gem "minitest"
33+
gem "irb"
34+
# TODO(SA): review https://minite.st/docs/History_rdoc.html#label-6.0.0+-2F+2025-12-17
35+
gem "minitest", "< 6.0"
3436
gem "minitest-reporters"
3537
gem "mutex_m"
3638
gem "rack"

bin/console

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
if ARGV.delete("--trace-loaded-features") || ENV["COUCHBASE_TRACE_LOADED_FEATURES"]
19+
loaded_before = $LOADED_FEATURES.dup
20+
set_trace_func lambda { |event, file, line, id, _binding, _klass|
21+
if event == 'c-return' && [:require, :load].include?(id)
22+
new_loads = $LOADED_FEATURES - loaded_before
23+
unless new_loads.empty?
24+
puts "#{file}:#{line}"
25+
new_loads.each { |path| puts " LOADED: #{path}" }
26+
loaded_before.concat(new_loads)
27+
end
28+
end
29+
}
30+
end
31+
1832
require "bundler/setup"
1933
require "irb"
2034
require "open3"

ext/couchbase

0 commit comments

Comments
 (0)