Skip to content

[#31504] macOS test: Skip anonymizer-backup tests on non-Linux platforms#31505

Open
ellabaron-code wants to merge 1 commit into
yugabyte:masterfrom
Shopify:fix-yb-backup-during-ddl-test-on-macos
Open

[#31504] macOS test: Skip anonymizer-backup tests on non-Linux platforms#31505
ellabaron-code wants to merge 1 commit into
yugabyte:masterfrom
Shopify:fix-yb-backup-during-ddl-test-on-macos

Conversation

@ellabaron-code
Copy link
Copy Markdown
Collaborator

@ellabaron-code ellabaron-code commented May 7, 2026

Summary

YBBackupWithAnonymizerTest and the tests derived from its fixture (RestoreAfterRoleRenameWithAnonymizer and CloneAfterRoleRenameWithAnonymizer) require YB Controller, which is only built/supported on Linux. On non-Linux platforms (e.g. macOS) the fixture's SetUp() fails rather than skipping, so the tests are reported as failures.

This change skips the fixture's setup on non-Linux platforms via GTEST_SKIP(), which causes both tests to be reported as skipped on macOS instead of failing.

Fixes #31504.

Test plan

  • On macOS:
    • RestoreAfterRoleRenameWithAnonymizer and CloneAfterRoleRenameWithAnonymizer are reported as skipped instead of failing.
  • On Linux:
    • Both tests continue to run as before (no behavioral change).

CSI

YB Controller is only built/supported on Linux, so skip the
YBBackupWithAnonymizerTest fixture's SetUp on other platforms.
This skips both RestoreAfterRoleRenameWithAnonymizer and
CloneAfterRoleRenameWithAnonymizer (whose fixture inherits from
YBBackupWithAnonymizerTest) on macOS rather than failing.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 7, 2026

Deploy Preview for infallible-bardeen-164bc9 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e97f3c6
🔍 Latest deploy log https://app.netlify.com/projects/infallible-bardeen-164bc9/deploys/69fd193c525eb20008e6ad07
😎 Deploy Preview https://deploy-preview-31505--infallible-bardeen-164bc9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the YBBackupWithAnonymizerTest in yb-backup-during-ddl-test.cc to skip execution on non-Linux platforms using GTEST_SKIP(), as the YB Controller is only supported on Linux. There are no review comments to address, and I have no further feedback to provide.

@rahulb-yb
Copy link
Copy Markdown
Contributor

trigger jenkins

@hari90
Copy link
Copy Markdown
Contributor

hari90 commented May 7, 2026

Jenkins build has been triggered. Results will be posted once it completes. CSI


JenkinsBot

@yamen-haddad yamen-haddad self-requested a review May 8, 2026 00:03
@hari90
Copy link
Copy Markdown
Contributor

hari90 commented May 8, 2026

Jenkins build for commit e97f3c66: Fail
CSI
Reason: CSI status: FAIL

Errors:

Checking for number of tests planned versus executed.

Type C++ Plan Java Plan Planned Executed Status
PR31505-alma8-clang21-release #1 24 0 24 6 FAILURE
PR31505-ubuntu22.04-clang21-debug #1 0 0 0 0 Okay
PR31505-alma8-clang21-tsan #1 24 0 24 0 FAILURE
PR31505-arm-mac14-clang21-release #1 0 0 0 0 Okay
PR31505-mac14-clang21-release #1 0 0 0 0 Okay
PR31505-arm-alma8-clang21-release #1 24 0 24 24 Okay
PR31505-alma8-gcc12-fastdebug #1 24 0 24 0 FAILURE
PR31505-alma9-clang21-asan #1 24 0 24 24 Okay

🔨 DB Build/Test Job Summary

Build Total Passed Failed Failed After Retries
PR31505-alma8-clang21-release 14 8 0 0
PR31505-ubuntu22.04-clang21-debug 2 2 0 0
PR31505-alma8-clang21-tsan 2 2 0 0
PR31505-arm-mac14-clang21-release 2 2 0 0
PR31505-mac14-clang21-release 2 2 0 0
PR31505-arm-alma8-clang21-release 26 26 0 0
PR31505-alma8-gcc12-fastdebug 2 2 0 0
PR31505-alma9-clang21-asan 26 2 0 0

JenkinsBot

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.

[DocDB] Skip anonymizer-backup tests on non-Linux platforms

4 participants