Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix jemalloc preload path in CI (#42872)

Alan Guo Xiang Tan0a5484770140
diff --git a/.github/workflows/migration-tests.yml b/.github/workflows/migration-tests.yml
index bd8135c60d4..65941b2885d 100644
--- a/.github/workflows/migration-tests.yml
+++ b/.github/workflows/migration-tests.yml
@@ -125,10 +125,9 @@ jobs:
- name: RSpec (Rails integration)
env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
MIGRATIONS_RAILS: "1"
run: |
for gem in core tooling converters importer; do
echo "== migrations-$gem (Rails integration) =="
- (cd "migrations/$gem" && BUNDLE_GEMFILE="$GITHUB_WORKSPACE/Gemfile" bundle exec rspec --tag rails)
+ (cd "migrations/$gem" && LD_PRELOAD="$RUBY_ALLOCATOR" BUNDLE_GEMFILE="$GITHUB_WORKSPACE/Gemfile" bundle exec rspec --tag rails)
done
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 1d01891dc06..0351cdf8790 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -256,9 +256,7 @@ jobs:
- name: Core RSpec
if: matrix.build_type == 'backend' && matrix.target == 'core'
- env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
- run: bin/turbo_rspec --use-runtime-info --format=progress
+ run: LD_PRELOAD="$RUBY_ALLOCATOR" bin/turbo_rspec --use-runtime-info --format=progress
- name: Ember Build
if: matrix.build_type == 'system' || matrix.build_type == 'frontend'
@@ -283,10 +281,8 @@ jobs:
- name: Plugins RSpec
if: matrix.build_type == 'backend' && matrix.target == 'plugins'
- env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
run: |
- bin/rake plugin:turbo_spec['*','--format=progress --use-runtime-info']
+ LD_PRELOAD="$RUBY_ALLOCATOR" bin/rake plugin:turbo_spec['*','--format=progress --use-runtime-info']
- name: Plugins QUnit
if: matrix.build_type == 'frontend' && matrix.target == 'plugins'
@@ -305,39 +301,34 @@ jobs:
- name: Core System Tests
if: matrix.build_type == 'system' && matrix.target == 'core'
env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
CHECKOUT_TIMEOUT: 10
- run: RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --use-runtime-info --format documentation spec/system
+ run: LD_PRELOAD="$RUBY_ALLOCATOR" RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --use-runtime-info --format documentation spec/system
- name: Core Plugins System Tests
if: matrix.build_type == 'system' && matrix.target == 'core-plugins'
env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
CHECKOUT_TIMEOUT: 10
run: |
- RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --exclude-pattern="plugins/chat/*" --use-runtime-info --format documentation plugins/*/spec/system
+ LD_PRELOAD="$RUBY_ALLOCATOR" RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --exclude-pattern="plugins/chat/*" --use-runtime-info --format documentation plugins/*/spec/system
- name: Official Plugins System Tests
if: matrix.build_type == 'system' && matrix.target == 'official-plugins'
env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
CHECKOUT_TIMEOUT: 10
run: |
- RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --exclude-pattern="$(script/list_bundled_plugins '/*' | paste -sd, -)" --use-runtime-info --format documentation plugins/*/spec/system
+ LD_PRELOAD="$RUBY_ALLOCATOR" RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --exclude-pattern="$(script/list_bundled_plugins '/*' | paste -sd, -)" --use-runtime-info --format documentation plugins/*/spec/system
- name: Chat System Tests
if: matrix.build_type == 'system' && matrix.target == 'chat'
env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
CHECKOUT_TIMEOUT: 10
- run: RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --use-runtime-info --format documentation plugins/chat/spec/system
+ run: LD_PRELOAD="$RUBY_ALLOCATOR" RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --use-runtime-info --format documentation plugins/chat/spec/system
- name: Theme System Tests
if: matrix.build_type == 'system' && matrix.target == 'themes'
env:
- LD_PRELOAD: /usr/lib/libjemalloc.so.1
CHECKOUT_TIMEOUT: 10
- run: RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --format documentation tmp/themes/*/spec/system themes/*/spec/system
+ run: LD_PRELOAD="$RUBY_ALLOCATOR" RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error bin/turbo_rspec --format documentation tmp/themes/*/spec/system themes/*/spec/system
- name: Upload failed system test artifacts
uses: actions/upload-artifact@v7
diff --git a/migrations/tooling/config/schema/intermediate_db/ignored.rb b/migrations/tooling/config/schema/intermediate_db/ignored.rb
index 6969a5233b9..c30ff37d4bc 100644
--- a/migrations/tooling/config/schema/intermediate_db/ignored.rb
+++ b/migrations/tooling/config/schema/intermediate_db/ignored.rb
@@ -152,6 +152,7 @@ Migrations::Tooling::Schema.ignored do
tables :admin_dashboard_reports,
:admin_dashboard_sections,
:browser_pageview_country_daily_rollups,
+ :browser_pageview_entry_url_daily_rollups,
:browser_pageview_referrer_daily_rollups,
:category_activity_daily_rollups,
:user_visit_daily_rollups