Skip to content

Conversation

guyinyou
Copy link
Contributor

  • Remove Assume.assumeFalse(MixAll.isMac()) calls from test methods
  • Remove macOS platform detection conditions in setUp/tearDown methods
  • Update RocksdbTransferOffsetAndCqTest.notToBeExecuted() to return false
  • Remove unused imports: org.junit.Assume and org.apache.rocketmq.common.MixAll
  • Enable full test coverage on macOS platform

Affected modules:

  • Broker config management tests (ConsumerOffsetManagerV2, SubscriptionGroupManagerV2, TopicConfigManagerV2)
  • RocksDB related tests (LmqConsumerOffsetManager, OffsetSerializeWrapper, TransferOffsetAndCq)
  • POP consumer tests (PopConsumerCache, PopConsumerRocksdbStore)
  • Store layer tests (HAServer, CombineConsumeQueueStore, RocksDBConsumeQueueOffsetTable)
  • Other component tests (CQType, ExportRocksDBConfigToJsonRequestHeader)

This change improves platform compatibility by ensuring all tests run on macOS instead of being skipped due to platform detection.

Change-Id: I59af05d0b1159107b6f1fbd10290d283f87e0e41
Co-developed-by: Cursor noreply@cursor.com

Which Issue(s) This PR Fixes

Fixes #9738

Brief Description

How Did You Test This Change?

- Remove Assume.assumeFalse(MixAll.isMac()) calls from test methods
- Remove macOS platform detection conditions in setUp/tearDown methods
- Update RocksdbTransferOffsetAndCqTest.notToBeExecuted() to return false
- Remove unused imports: org.junit.Assume and org.apache.rocketmq.common.MixAll
- Enable full test coverage on macOS platform

Affected modules:
- Broker config management tests (ConsumerOffsetManagerV2, SubscriptionGroupManagerV2, TopicConfigManagerV2)
- RocksDB related tests (LmqConsumerOffsetManager, OffsetSerializeWrapper, TransferOffsetAndCq)
- POP consumer tests (PopConsumerCache, PopConsumerRocksdbStore)
- Store layer tests (HAServer, CombineConsumeQueueStore, RocksDBConsumeQueueOffsetTable)
- Other component tests (CQType, ExportRocksDBConfigToJsonRequestHeader)

This change improves platform compatibility by ensuring all tests run on macOS
instead of being skipped due to platform detection.

Change-Id: I59af05d0b1159107b6f1fbd10290d283f87e0e41
Co-developed-by: Cursor <noreply@cursor.com>
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.16%. Comparing base (64999c1) to head (c08fe34).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9739      +/-   ##
=============================================
- Coverage      48.19%   48.16%   -0.03%     
+ Complexity     12168    12151      -17     
=============================================
  Files           1313     1313              
  Lines          93340    93340              
  Branches       11962    11962              
=============================================
- Hits           44988    44961      -27     
- Misses         42777    42804      +27     
  Partials        5575     5575              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

guyinyou added 2 commits September 26, 2025 15:10
Change-Id: Ia9da2718c0ce8e09a656cdd312215c472be29390
Change-Id: Ib0769407fd88c055127afeca306f94f857785769
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Remove macOS platform skip logic from test cases to improve cross-platform compatibility

2 participants