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

[improve][test] Move most flaky tests to flaky group #22433

Merged
merged 7 commits into from
Apr 4, 2024

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Apr 4, 2024

Motivation & Modifications

Move most flaky tests to flaky group until they are fixed since this causes a lot of delays and unnecessary builds.

Issues to track the moved tests:

The solution for excluding methods added to the "flaky" group at the method level with @Test(groups = "flaky") didn't work. This PR contains changes to ensure that flaky test methods are isolated.
Flaky group was previously only support in the pulsar-broker module. However some flaky tests are in the managed-ledger module. This PR contains changes to run tests in all other modules too.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 3.3.0 milestone Apr 4, 2024
@lhotari lhotari requested review from nodece and dao-jun April 4, 2024 14:51
@lhotari lhotari self-assigned this Apr 4, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Apr 4, 2024
@lhotari lhotari requested review from heesung-sn and Technoboy- April 4, 2024 14:52
@lhotari lhotari marked this pull request as draft April 4, 2024 15:21
@lhotari
Copy link
Member Author

lhotari commented Apr 4, 2024

The solution doesn't seem to work yet. When the flaky test is at the method level, it seems to inherit the test group from the class level and append the method also to the flaky test group. I'll look for a way to handle this.

@lhotari lhotari marked this pull request as ready for review April 4, 2024 16:14
@lhotari lhotari merged commit 5f31ec3 into apache:master Apr 4, 2024
49 of 51 checks passed
lhotari added a commit that referenced this pull request Apr 4, 2024
- also add solution for running test methods added to flaky group since that was missing

(cherry picked from commit 5f31ec3)

# Conflicts:
#	pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicAuthZTest.java
lhotari added a commit that referenced this pull request Apr 4, 2024
- also add solution for running test methods added to flaky group since that was missing

(cherry picked from commit 5f31ec3)

# Conflicts:
#	pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicAuthZTest.java
#	pulsar-broker/src/test/java/org/apache/pulsar/client/impl/TransactionEndToEndTest.java
lhotari added a commit that referenced this pull request Apr 4, 2024
- also add solution for running test methods added to flaky group since that was missing

(cherry picked from commit 5f31ec3)

# Conflicts:
#	pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicAuthZTest.java
#	pulsar-broker/src/test/java/org/apache/pulsar/client/impl/TransactionEndToEndTest.java
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 5, 2024
- also add solution for running test methods added to flaky group since that was missing

(cherry picked from commit 5f31ec3)

# Conflicts:
#	pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicAuthZTest.java
#	pulsar-broker/src/test/java/org/apache/pulsar/client/impl/TransactionEndToEndTest.java
(cherry picked from commit 097805d)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 8, 2024
- also add solution for running test methods added to flaky group since that was missing

(cherry picked from commit 5f31ec3)

# Conflicts:
#	pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicAuthZTest.java
#	pulsar-broker/src/test/java/org/apache/pulsar/client/impl/TransactionEndToEndTest.java
(cherry picked from commit 097805d)
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
- also add solution for running test methods added to flaky group since that was missing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants