diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml deleted file mode 100644 index 15a74cc24..000000000 --- a/.github/workflows/valgrind.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Valgrind - -on: - push: - branches: - - master - pull_request: - paths: - - "ext/**" - - "include/**" - - "src/**" - merge_group: {} - workflow_dispatch: - -jobs: - valgrind: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "3.4" - bundler-cache: none - - name: Set working directory as safe - run: git config --global --add safe.directory $(pwd) - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y libdb-dev curl autoconf automake m4 libtool python3 valgrind - - name: Update rubygems & bundler - run: | - ruby -v - gem update --system - - name: bin/setup - run: | - bin/setup - - run: bundle exec rake test:valgrind - env: - RUBY_FREE_AT_EXIT: 1 - RBS_SKIP_TESTS: test/rbs_skip_tests_valgrind diff --git a/Gemfile b/Gemfile index 96c44c08a..cf2982acd 100644 --- a/Gemfile +++ b/Gemfile @@ -38,7 +38,6 @@ group :profilers do gem 'stackprof' gem 'memory_profiler' gem 'benchmark-ips' - gem "ruby_memcheck", platform: :ruby end # Test gems diff --git a/Gemfile.lock b/Gemfile.lock index bbe2d2e76..d5410b93b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -92,7 +92,6 @@ GEM logger (1.7.0) marcel (1.1.0) memory_profiler (1.1.0) - mini_portile2 (2.8.9) minitest (6.0.1) prism (~> 1.5) minitest-mock (5.27.0) @@ -102,9 +101,6 @@ GEM net-smtp (0.5.1) net-protocol nkf (0.2.0) - nokogiri (1.19.0) - mini_portile2 (~> 2.8.2) - racc (~> 1.4) ostruct (0.6.3) parallel (1.27.0) parser (3.3.10.1) @@ -173,8 +169,6 @@ GEM lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) ruby-progressbar (1.13.0) - ruby_memcheck (3.0.1) - nokogiri securerandom (0.4.1) stackprof (0.2.27) stringio (3.2.0) @@ -231,7 +225,6 @@ DEPENDENCIES rubocop rubocop-on-rbs rubocop-rubycw - ruby_memcheck stackprof steep! tempfile diff --git a/Rakefile b/Rakefile index 5fee4db17..ebc2abc6e 100644 --- a/Rakefile +++ b/Rakefile @@ -35,18 +35,6 @@ end Rake::TestTask.new(test: :compile, &test_config) -unless Gem.win_platform? - begin - require "ruby_memcheck" - - namespace :test do - RubyMemcheck::TestTask.new(valgrind: :compile, &test_config) - end - rescue LoadError => exn - STDERR.puts "🚨🚨🚨🚨 Skipping RubyMemcheck: #{exn.inspect} 🚨🚨🚨🚨" - end -end - multitask :default => [:test, :stdlib_test, :typecheck_test, :rubocop, :validate, :test_doc] task :lexer do diff --git a/test/rbs_skip_tests_valgrind b/test/rbs_skip_tests_valgrind deleted file mode 100644 index 74622c17f..000000000 --- a/test/rbs_skip_tests_valgrind +++ /dev/null @@ -1 +0,0 @@ -RBS::CliTest Flaky