Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark test-suite-builder suites and related code as @AndroidIncompatible. #7632

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

@copybara-service copybara-service bot commented Jan 24, 2025

Mark test-suite-builder suites and related code as @AndroidIncompatible.

(Along the way, break out SynchronizedSetTest.TestSet into a top-level type LockHeldAssertingSet, which should also make it easier to run each test in an individual build target someday.)

(I did also sneak in one change to the backport copy of IteratorsTest. It resolve a diff that we accidentally introduced in cl/613629330.)

Such code is already not run when we run our tests under Android emulators. (The Android JUnit 3 runner just ignores suite() methods, I want to say?) However, it's still built for them. Besides being a waste, this requires pulling in the whole suite-builder ecosystem, which is again causing problems when I try to bump various things related to Android version—quite possibly a sign that the Android runner starts actually using suite() methods, whose large numbers of tests (at least in common.collect) are just too much for that environment? By adding @AndroidIncompatible, I configure our Android test build to strip the code altogether.

RELNOTES=n/a

@copybara-service copybara-service bot force-pushed the test_719363315 branch 3 times, most recently from 380427f to ae25449 Compare January 25, 2025 15:54
…ble`.

(Along the way, break out `SynchronizedSetTest.TestSet` into a top-level type `LockHeldAssertingSet`, which should also make it easier to run each test in an individual build target someday.)

(I did also sneak in one change to the backport copy of `IteratorsTest`. It resolve a diff that we accidentally introduced in cl/613629330.)

Such code is already not run when we run our tests under Android emulators. (The Android JUnit 3 runner just ignores `suite()` methods, I want to say?) However, it's still _built_ for them. Besides being a waste, this requires pulling in the whole suite-builder ecosystem, which is again causing problems when I try to bump various things related to Android version—quite possibly a sign that the Android runner starts actually using `suite()` methods, whose large numbers of tests (at least in `common.collect`) are just too much for that environment? By adding `@AndroidIncompatible`, I configure our Android test build to strip the code altogether.

RELNOTES=n/a
PiperOrigin-RevId: 719651707
@copybara-service copybara-service bot merged commit 1d3cbf8 into master Jan 25, 2025
2 checks passed
@copybara-service copybara-service bot deleted the test_719363315 branch January 25, 2025 16:19
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.

1 participant